Re: Unicode in AppleScript
Re: Unicode in AppleScript
- Subject: Re: Unicode in AppleScript
- From: Jerry Brace <email@hidden>
- Date: Wed, 17 Aug 2005 11:42:51 -0200
On Wednesday, August 17, 2005, at 11:12AM, ObjM2 <email@hidden> wrote:
>
>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 eliminate any possible encoding problems with the NSString I've just taken the AppleScript out temporally to get it working on it's own first.
Once I see how to use the unicode characters in this basic script I'll be able to adjust my code to generate the NSString properly.
tell application "iTunes"
play playlist "?????"
end tell
NOTE: "??????" is suppose to be the special Unicode characters - they were removed when I sent the email. An example of a special unicode character would be a star from the Character Palette Stars/Asterisks category. Those are the types of characters I need to be able to support.
Cheers,
Jerry
_______________________________________________
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