Re: Posix path and High Ascii Characters
Re: Posix path and High Ascii Characters
- Subject: Re: Posix path and High Ascii Characters
- From: John Delacour <email@hidden>
- Date: Tue, 10 Sep 2002 20:28:13 +0100
[ encoded "UNICODE-2-0-UTF-7" ]
At 10:03 pm -0700 9/9/02, Christopher Nebel wrote:
2. None of these work when talking with Terminal, unfortunately :
set thePath to POSIX path of "U:Users:ac:Desktop:photos e'te'"
tell application "Terminal"
activate
do script "cd " & quoted form of thePath in window frontmost
end tell
Or
tell ...
do script ("echo " & quoted form of thePath) in window frontmost
Works fine for me, but it requires that the Terminal be set to
UTF-8. Did you change yours to MacRoman?
Chris,
Here is the result of dragging a file into a variable in the Terminal
(with window set to UTF-8.
[eremita:~] jd% set
FILE=/Users/jd/e+AscC3Q-te+AscC3QAA-
[eremita:~] jd% echo $FILE
/Users/jd/e+AscC3Q-te+AscC3QAA-
[eremita:~] jd% open $FILE
2002-09-10 20:03:15.835 open[2247]
No such file:
/Users/jd/e\\303te\\303
so $FILE is e<#255><#253>
or, in octal, e\173\171
I get a beep when I drag the file, as well I might!
Can you explain how this matches your claim that things are OK in 10.2?
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.