• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trouble Getting Into AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble Getting Into AppleScript


  • Subject: Trouble Getting Into AppleScript
  • From: Daniel Todd Currie <email@hidden>
  • Date: Sat, 30 Oct 2004 04:41:05 -0700

I'm having just a little trouble figuring out some basics in AppleScript (pardon my undoubtedly droll questions).

I have a script like this, that works perfectly:

set abApp to application "Address Book"
set versionNumber to version of abApp

The event log reads:

tell application "Address Book"
	get version
		"3.1.2"
end tell

However, I go into the "Address Book.asdictionary" and look up some application properties in the Address Book Script Suite, and haphazardly choose "selection". My previous success means to me that I should be able to do the following:


set abApp to application "Address Book"
set selectionList to selection of abApp

This generates an NSCannotCreateScriptCommandError, whatever that means. What am I missing here? Perhaps I have to somehow get a handle for the actual application instance for Address Book.app?


On a side note, if there is a "selection" property, why isn't there a "set selection" command? Perhaps I can set the value of the selection property?

Many thanks in advance,

-- DTC

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Trouble Getting Into AppleScript
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Dice
  • Next by Date: Re: [OT] Typo, someone was asking?
  • Previous by thread: Move an Exchange account message into a Pop account folder in Entourage 2004
  • Next by thread: Re: Trouble Getting Into AppleScript
  • Index(es):
    • Date
    • Thread