• 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
Re: Can't get finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Can't get finder selection (From: Robert Poland <email@hidden>)
 >Re: Can't get finder selection (From: Michelle Steiner <email@hidden>)
 >Re: Can't get finder selection (From: Skeeve <email@hidden>)
 >Re: Can't get finder selection (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Can't get finder selection
  • Next by Date: Re: Find and Replace in Word 2008
  • Previous by thread: Re: Can't get finder selection
  • Next by thread: Re: Can't get finder selection
  • Index(es):
    • Date
    • Thread