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: Mon, 9 Sep 2002 17:42:46 +0100
At 2:26 pm +0200 9/9/02, Alain Content wrote:
Posix path does not change high ascii characters (ie, i h g etc...) which
sometimes make unix paths unapplicable for shell scripts or terminal.
Provided you have named the file with a Mac keyboard layout rather
than a Unicode keyboard layout -- as you almost certainly have --
then you should have no problem using the original Mac characters in
shell scripts, BUT you must either escape the space in the pathname
or enclose the pathname in DOUBLE quotes
[ % == e' -- thanks administrator :-< ]
do shell script "open /Users/ac/Desktop/photos\\ %t%"
-- or
do shell script " open \"/Users/ac/Desktop/photos %t%\""
or simply don't be a Frenchman :-)
It looks to me as if OS X is still very confused about encodings and
no matter how you change the window settings in Terminal, it's hard
to see what's meant to be happening.
Your "/Users/ac/Desktop/photos\ e\314\201te\314\201/" makes no sense
to me in UTF-8.
e'te' should be encoded in UTF-8 as ascii characters
{#195, #169, #116, #195, #169}
Perhaps Chris can clarify this whole issue.
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.