Re: Unicode in AppleScript
Re: Unicode in AppleScript
- Subject: Re: Unicode in AppleScript
- From: ObjM2 <email@hidden>
- Date: Wed, 17 Aug 2005 22:42:34 +0900
On Aug 17, 2005, at 8:59 PM, Jerry Brace wrote:
Here is an example of my problem:
tell application "iTunes"
play playlist "?????"
end tell
When I run the script in the editor it changes the value to this:
tell application "iTunes"
play playlist "ÅöÅöÅöÅöÅö"
end tell
I assume this is why it doesn't work when my Cocoa app calls the
script.
Does anyone have any idea on how I can support these characters?
Either by escaping in the AppleScript or escaping in the NSString
my app uses to build the AppleScript?
Does your app generate the script before it calls it?
If so, then you may want to convert the string to MacOSRoman encoding
before you write the contents into the file and when you do so make
sure the script file is written in MacOSRoman encoding as well.
rgds
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden