• 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: path to selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: path to selection
      • From: Simon Brown <email@hidden>
  • Prev by Date: Re: FaceSpan?
  • Next by Date: Re: PDF Services Workflow & bookmarks
  • Previous by thread: Re: path to selection
  • Next by thread: Re: path to selection
  • Index(es):
    • Date
    • Thread