Re: Universal Binary - AppleScript utxt problem
Re: Universal Binary - AppleScript utxt problem
- Subject: Re: Universal Binary - AppleScript utxt problem
- From: Jerry Brace <email@hidden>
- Date: Thu, 26 Jan 2006 07:23:45 -0330
Thanks for all of the help - I believe I have the solution now.
About the "Library" being renamable - my app doesn't have "Library"
hardcoded in - the user picks a playlist from a NSPopUpButton which
is populated by the iTunes XML and I get the playlist name from
there. I just provided the simplest script possible to illustrate the
problem.
Thanks again
Jerry
On 26-Jan-06, at 6:23 AM, Andrew Farmer wrote:
On 25 Jan 06, at 19:05, Jerry Brace wrote:
I am one step away from making my application Universal. Here is
my problem. One of the functions of the app communicates to iTunes
via AppleScript to tell it to play a particular playlist.
I have been converting the name of the playlist to AppleScript
data to solve any non-Roman character problems when referencing
the name in the AppleScript.
For example to play the "Library" playlist in iTunes:
tell application "iTunes"
play playlist «data utxt004C006900620072006100720079»
end tell
instead of:
tell application "iTunes"
play playlist "Library"
end tell
Note that the library playlist isn't necessarily called "Library".
It's renamable, and may be localized.
_______________________________________________
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