• 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: Scripts works with OSX 10.5 but not earlier because of Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripts works with OSX 10.5 but not earlier because of Unicode
      • From: has <email@hidden>
    • Re: Scripts works with OSX 10.5 but not earlier because of Unicode
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Scripts works with OSX 10.5 but not earlier because of Unicode (From: Paul Taylor <email@hidden>)
 >Re: Scripts works with OSX 10.5 but not earlier because of Unicode (From: Christopher Nebel <email@hidden>)
 >Re: Scripts works with OSX 10.5 but not earlier because of Unicode (From: Paul Taylor <email@hidden>)

  • Prev by Date: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Next by Date: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Previous by thread: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Next by thread: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Index(es):
    • Date
    • Thread