Re: path to selection
Re: path to selection
- Subject: Re: path to selection
- From: Philippe GRUCHET <email@hidden>
- Date: Fri, 7 Mar 2003 06:03:27 +0100
From: Simon Brown <email@hidden>
if selection = 1 then alias result
What does this line mean? I thought I always got a list, even if it's
only got one item.
Oops, sorry Simon!
This line worked 'as is' OMM/10.2.4, just before going to bed :-)
Literally, it's a non-sense. So:
==================
tell application "Finder"
if selection = {} then return
set {theList, AppleScript's text item delimiters, textHolder} to
{selection as list, ",", ""}
repeat with i from 1 to items's number in theList
copy ((theList's item i as alias) & return & textHolder) to textHolder
end repeat
set the clipboard to textHolder
set AppleScript's text item delimiters to ""
display dialog (textHolder as string) buttons {"OK"} default button
"OK"
end tell
==================
Please, let me know if it works under 9.1.
Thanks!
Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.