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 02:49:11 +0100
- Mac-eudora-version: 6.0a16
At 2:43 pm -1000 2/5/03, Reinhold Penner wrote:
No, actually I construct the path like this:
set applSup to ((path to application support from user domain) as text)
So may be I should use "as Unicode text" instead?
It makes no difference. I don't like 'as text' but it works fine in
this case. Even more I don't like spaces in file names -- I'm
joining the aliens :-) -- and that's your problem I guess. If you
make sure to get the thing quoted properly, you'll have no problem.
Of course, 'quoted form' is no good if Madam calls her disk Madam's
Hard Disk; then you have to use escaped double quotes, and if she
calls it Madam's "Hard Disk"... ah well, time for bed.
tell application "Finder"
set f to item 1 of (get selection) as text
--> "dx:Users:jd:tr<egrave>s dur:"
set pp to POSIX path of f
--> "/Users/jd/tr<egrave>s dur/"
do shell script "open " & quoted form of pp
-- works fine
end tell
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.