Re: path to selection
Re: path to selection
- Subject: Re: path to selection
- From: Philippe GRUCHET <email@hidden>
- Date: Thu, 6 Mar 2003 03:44:04 +0100
From: Thomas Strohmaier <email@hidden>
how can i get a path like "mydisk:myfolder1:myfolder2:myfile" from a
selection in the finder?
Something like this:
tell application "Finder"
if selection = {} then return
if selection = 1 then alias result
if selection !A 1 then
set theList to selection as list
set AppleScript's text item delimiters to ","
repeat with i from 1 to items's number in theList
set thisPathname to theList's item i as alias
end repeat
set AppleScript's text item delimiters to ""
end if
end tell
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.