Re: Japanese backslash
Re: Japanese backslash
- Subject: Re: Japanese backslash
- From: Takaaki Naganoya <email@hidden>
- Date: Mon, 23 Apr 2007 11:30:25 +0900
In Japanese environment, Yen mark was equal to backslash. Japanese
Yen mark was the escape character.
But the rule was changed in Tiger with NO announcement.
<keyboard input in Tiger>
set a to "¥¥" -- [note] This is not single byte character. To
avoid the silent translation in each language environment
</keyboard input in Tiger>
[compile]
<result>
set a to "\¥"
</result>
If you want to use the Japanese yen mark, you'd better to indicate it
by ascii character code.
It is the best way to write "Japanese safe" script.
<Japanese safe scripting>
set a to ASCII character 92
</Japanese safe scripting>
//// Japanese safe way scripting ////
(1) Use Japanese yen mark in indirect way
(2) If you want to convert alias into text, cast them into string.
And then cast the string into unicode text to normalize the encoding
of Unicode text (But this method can not use if you want to use roman
number characters in file names).
(3) Don't belive the example scripts bundled with each Mac OS X
pachage box. Apple *NEVER* test them in Japanese enviroment before
shipment.
(4) Don't believe Apple :-)
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
On 2007/04/23, at 6:55, email@hidden wrote:
Hello,
I understand there is a long-standing bug in Applescript that
translates backslashes to Yen marks, even when scripts are distributed
in pre-compiled form. I have tried substituting the literal backslash
with its ASCII character number to no avail. So my question is: what's
the work-around? Please tell me there is one...
Cheers,
Fabian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
mark.nu
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden