Re: Script to Get Finder Selection?
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.