Re: Can't get finder selection
Re: Can't get finder selection
- Subject: Re: Can't get finder selection
- From: Joe <email@hidden>
- Date: Mon, 21 Jan 2008 10:04:39 -0800
tell application "Finder"
first item of (get selection)
end tell
Works
Joe
On Jan 21, 2008, at 9:53 AM, Michelle Steiner wrote:
On Jan 21, 2008, at 10:49 AM, Skeeve wrote:
gives an error "item 1 of selection can't be read" (or whatever it
is in english).
I got bit by a quirk in Applescript.
"selection" is a property, not a list, but it looks just like a list
in the results pane. You're right; you do need "as list".
-- Michelle
--
Will Rogers never met George W. Bush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden