Re: mac to unix path names
Re: mac to unix path names
- Subject: Re: mac to unix path names
- From: John Delacour <email@hidden>
- Date: Sat, 3 May 2003 01:18:45 +0100
- Mac-eudora-version: 6.0a16
At 1:27 pm -1000 2/5/03, Reinhold Penner wrote:
Well, that's what I thought, but I have a user whose disk is called
called "disc trhs dur" (I'm sure the mail server will screw this
up). Anyway, it's an accented "e" like [e`] and I can't address it
with a properly quoted POSIX path. Spaces an other chars work though.
Provided it's their startup disk then it's posix path is "/"
I have created a folder ~/disc tr<egrave>d dur/
If you drag a file named "disc tr<egrave>d dur" to the terminal, the
accent will be lost, and that is definitely a bug.
But I can get the posix path of it from the Finder like this:
tell application "Finder"
set _Upath to POSIX path of (item 1 of (get selection) as Unicode text)
do shell script "open \"" & _Upath & "\""
end tell
or like this, not necessarily using " & (ASCII character 143) & " but
just tying the egrave.
set _Upath to "/Users/jd/tr" & (ASCII character 143) & "s dur/"
do shell script "open \"" & _Upath & "\""
I don't really see what the problem is, especially as you seem to be
talking of the startup disk.
JD
_______________________________________________
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.