Re: get path of selected file
Re: get path of selected file
- Subject: Re: get path of selected file
- From: Camilla <email@hidden>
- Date: Wed, 03 Apr 2002 21:57:54 +0100
This from Matt Binkowski - dated 3/4/02 09.27 pm:
>
i used to have a handly little script that could retrieve the path of any
>
selected file or folder
tell application "Finder" to get selection as string
That will return the path. Up to you what you do with it next, but if you
want to do anything like store it on the clipboard, you should probably
activate the Finder first, as the SysUIServer becomes frontmost when it's
running scripts from the menu.
I only tested that line of script in OS 9, but it should work in X.
Camilla
_______________________________________________
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.