Re: Get UNIX path of selected file
Re: Get UNIX path of selected file
- Subject: Re: Get UNIX path of selected file
- From: Dave Balderstone <email@hidden>
- Date: Thu, 04 Apr 2002 07:11:04 -0600
At 9:27 PM -0800 4/3/02, John W Baxter wrote:
>
Various scripting solutions have been presented, which make sense if this
>
need is in the middle of a script.
I simply want to pass a command to the terminal thusly:
unrar e '/some file path/here"
>
If *you*--the human--select something in Finder and want its path in the
>
Terminal window, drag the thing to the Terminal window. Does it work with
>
bit-8-set characters (or even wilder Unicode characters) in the name? I
>
have no idea...
>
>
...and the answer is "No."
Shouldn't matter. The files in question don't have any odd characters. This
is working fine from the script menu:
tell application "Finder"
set theFile to selection as alias
end tell
set UnrarMe to quoted form of POSIX path of theFile
set TheUnrarScript to "unrar e " & UnrarMe as string
tell application "Terminal"
do script with command TheUnrarScript
end tell
djb
_______________________________________________
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.