• 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: Get UNIX path of selected file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: get path of selected file (From: Camilla <email@hidden>)
 >Get UNIX path of selected file (From: Dave Balderstone <email@hidden>)
 >Re: Get UNIX path of selected file (From: John W Baxter <email@hidden>)

  • Prev by Date: Re: Reading large texts
  • Next by Date: [ANN] Image Info update gets more info incl EXIF and IPTC
  • Previous by thread: Re: Get UNIX path of selected file
  • Next by thread: Re: Failure to connect to database (MySQL)
  • Index(es):
    • Date
    • Thread