• 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: Jonathan del Strother <email@hidden>
  • Date: Fri, 19 Aug 2005 00:22:58 +0100

For future reference, one way of getting unicode into Applescript is to pass the unicode section as a string contained in an NSAppleEventDescriptor into an Applescript handler.
This wrapper makes that very easy:
http://weblog.scifihifi.com/2004/04/15/calling-applescript-handlers- from-cocoa


Jon


On 19 Aug 2005, at 00:08, Jerry Brace wrote:

The solution was pretty ugly so I recoded my app to play a playlist by its ID instead of name. A lot less prone to error.

Thanks for the help.

Jerry

On 18-Aug-05, at 8:25 PM, Matt Neuburg wrote:


On Wed, 17 Aug 2005 11:42:51 -0200, Jerry Brace <email@hidden> said:


tell application "iTunes"
   play playlist "?????"
end tell

NOTE: "??????" is suppose to be the special Unicode characters



But it can never be, because a literal string in AppleScript is MacRoman
only. There ways of creating a Unicode string in AppleScript, but they are
ugly, and that's now how you do it. See my book for more (or just write me
offline). m.


--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40steelskies.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Re: Unicode in AppleScript (From: Matt Neuburg <email@hidden>)
 >Re: Unicode in AppleScript (From: Jerry Brace <email@hidden>)

  • Prev by Date: Re: Unicode in AppleScript
  • Next by Date: Re: Unicode in AppleScript
  • Previous by thread: Re: Unicode in AppleScript
  • Next by thread: Re: Unicode in AppleScript
  • Index(es):
    • Date
    • Thread