Trouble Getting Into AppleScript
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