Scripts works with OSX 10.5 but not earlier because of Unicode
Scripts works with OSX 10.5 but not earlier because of Unicode
- Subject: Scripts works with OSX 10.5 but not earlier because of Unicode
- From: Paul Taylor <email@hidden>
- Date: Thu, 10 Apr 2008 21:43:33 +0100
Hi, I have a script that now works fine on OSX 10.5 (Applescript 2?) but
fails on 10.4 and earlier when the filename contains unicode characters.
This ties in with this link
http://www.apple.com/applescript/features/unicode.html, it seems I have
to use the Unicode text class but I cant work out to use it so that it
works on 10.5 and 10.4
Please help Im guessing this is quite trivial for regular applescript
developers but not for me.
(in the script below the problem is the ǿ at the end of bee)
tell app "iTunes"
set new_playlist to (make user playlist with properties
{name:"Jaikoz:4/10/08 1:31 PM"})
add(POSIX file "/Users/paul/Music/iTunes/iTunes Music/beeǿ/A Hard Days
Night/When I Get Home.mp3") to new_playlist
repeat with nexttrack in (get every track of new_playlist)
refresh nexttrack
end repeat
end tell
Thanks Paul
_______________________________________________
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