• 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: Jerry Brace <email@hidden>
  • Date: Thu, 18 Aug 2005 20:56:28 -0230

Thanks Jon - that is very helpful. I just saved the page as a PDF and the DMG for future use -very nice.

Thanks,
Jerry

On 18-Aug-05, at 8:52 PM, Jonathan del Strother wrote:

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

  • Prev by Date: Re: Unicode in AppleScript
  • Next by Date: CoreData Parent Entity Confusion
  • Previous by thread: Re: Unicode in AppleScript
  • Next by thread: Problem with NSView and subviews
  • Index(es):
    • Date
    • Thread