• 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: John W Baxter <email@hidden>
  • Date: Wed, 3 Apr 2002 21:27:40 -0800

At 17:31 -0600 4/3/2002, Dave Balderstone wrote:
>Is there an easy way to get the Unix path of a finder selection? I want to
>pass it to the terminal.

Various scripting solutions have been presented, which make sense if this
need is in the middle of a script.

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."

/Users/john/Desktop/AS_9_1.8.2b3_Release_Notes\ copy.pdf
(copied from Terminal). I had modified the c in copy to be c with cedilla,
and the cedilla appears to have been lost (there was a beep).

If it hurts, don't do it. (That is, I seldom name a file with a non-ASCII
character...this file may be my first in Mac OS X, going back to March 24,
2001.)

--John
--
John W. Baxter Port Ludlow, WA, USA
set emptyRecord to {behindTheCurtain: "Pay no attention to the string
behind the curtain!"}
_______________________________________________
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: Get UNIX path of selected file
      • From: Dave Balderstone <email@hidden>
References: 
 >Re: get path of selected file (From: Camilla <email@hidden>)
 >Get UNIX path of selected file (From: Dave Balderstone <email@hidden>)

  • Prev by Date: Re: Reading large texts
  • Next by Date: Re: Stupify text file
  • Previous by thread: Re: Get UNIX path of selected file
  • Next by thread: Re: Get UNIX path of selected file
  • Index(es):
    • Date
    • Thread