• 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: Script to Get Finder Selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to Get Finder Selection?


  • Subject: Re: Script to Get Finder Selection?
  • From: John Delacour <email@hidden>
  • Date: Mon, 4 Aug 2003 14:21:24 +0100

At 7:50 am -0400 4/8/03, Paul Skinner wrote:

It is possible to alter a selection and break a script.

tell application "Finder"
repeat with i from 1 to (length of (get selection))
set ls to item i of (get selection)
delay 1
say (i as text)
end repeat
end tell

That's just plain stupid! And it has nothing to do with the point I was making. If you wanted to do what you're suggesting, you'd do it like this:


tell app "Finder"
set n to 0
repeat with i in (get selection)
set n to n + 1
say "" & n
end
end

-- JD




.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Script to Get Finder Selection?
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Script to Get Finder Selection? (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Script to Get Finder Selection?
  • Next by Date: Re: Script to Get Finder Selection?
  • Previous by thread: Re: Script to Get Finder Selection?
  • Next by thread: Re: Script to Get Finder Selection?
  • Index(es):
    • Date
    • Thread