Re: Unicode, AppleScript, and the shell
Re: Unicode, AppleScript, and the shell
- Subject: Re: Unicode, AppleScript, and the shell
- From: "Sean McBride" <email@hidden>
- Date: Thu, 24 Jul 2003 13:00:12 -0400
- Organization: Matrox Electronic Systems Ltd.
Paul Berkowitz (email@hidden) wrote on Tue, 22 Jul 2003 15:16:58 -0700:
>
Don't type it in. Even though you can do this in Script Editor 2.0, the
>
AppleScript compiler can't deal with it.
I hope it will be able to eventually!
>
set theFile to choose file
>
set theFolder to choose folder
>
set posixFilePath to quoted form of POSIX path of theFile
>
set posixFolderPath to quoted form of POSIX path of theFolder
>
set command to (("/Developer/Tools/MvMac " as Unicode text) & posixFilePath
>
& " " & posixFolderPath)
>
do shell script command
This has been instructive, thank you (and others that replied!). My only
problem remaining is how to have a literal unicode string in my code, as
I can't use something like 'choose file', I need to hardcode the japanese
names in my script. I am willing to use illegible escape sequences. :)
I tried this:
tell application "Finder"
set a to "hello" as Unicode text
set b to +data utxt30A4; as Unicode text
set c to a & b
end tell
but Script Editor crashes.
Its hard to search for docs for this as all the keywords 'unicode',
'string', and 'applescript' appear everywhere. :(
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer +1-514-822-6000
Matrox Electronic Systems Ltd. Montrial, Quibec, Canada
_______________________________________________
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.