Re: Scripts works with OSX 10.5 but not earlier because of Unicode
Re: Scripts works with OSX 10.5 but not earlier because of Unicode
- Subject: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 11 Apr 2008 16:32:24 -0400
You can do AppleEvents natively from Java. See the Apple extensions doc here:
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/index.html
As to how to use Christopher's example syntax in AppleScript:
set filename to "/Users/paul/Music/iTunes/iTunes Music/bee" & («data
utxt01ff» as unicode text) & "/A Hard Days Night/When I Get Home.mp3"
add POSIX file filename to new_playlist
If you're generating AS from Java, you essentially have to look at
each char in the string and if its value is > 127 output the data utxt
form.
If I understand Chris right, «data utxt01ff» might need to be «data
utxtff01» on some machines. I'd expect that to be Intel boxes, but
utxt01ff works on my Intel-based iMac - however, that could be just
because it's running Leopard.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden