Re: badly decomposed
Re: badly decomposed
- Subject: Re: badly decomposed
- From: Christopher Nebel <email@hidden>
- Date: Wed, 29 Mar 2006 11:12:37 -0800
On Mar 28, 2006, at 3:39 PM, otempores wrote:
Problem; iTunes 6.0.4 returns badly decomposed path of track
locations if that path contains accented characters.
For example sacute is decomposed into s+acute accent instead of s
+combining acute accent. This poses major problems for I'm unable
to process this files unix shells?
Suggestions anybody?
I can't reproduce this problem with Mac OS X 10.4.5 and iTunes
6.0.4. For example:
tell application "iTunes"
tell library playlist 1
set p to location of track "sound_bubbles"
end tell
end tell
do shell script "ls -l " & (quoted form of POSIX path of p)
--> "-rw-rw-r-- 1 nebel apple_sw 444572 Jun 15 2005 /Users/
nebel/Bugs/problem/élève/sound_bubbles.wav"
If you're having a problem, it's most likely in your script. iTunes'
"location" property is returned as an alias, for which the concept of
composition is meaningless. Do you, perchance, say "as string" at
any point between getting the location and asking for the POSIX
path? Because a "string" object in AppleScript will only use
composed characters, and that change will be propagated through the
"POSIX path" part. The solution is simple: don't do that. "POSIX
path" applies perfectly well to an alias.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden