• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unicode in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unicode in AppleScript
      • From: Jerry Brace <email@hidden>
References: 
 >Unicode in AppleScript (From: Jerry Brace <email@hidden>)

  • Prev by Date: Re: CoreData to-many relationship, and "first row selected" issue
  • Next by Date: Re: Communicating between applications
  • Previous by thread: Unicode in AppleScript
  • Next by thread: Re: Unicode in AppleScript
  • Index(es):
    • Date
    • Thread