Variable ni "missing value", ni "", mais pourtant vide !
Bonjour,
Dans ce programme qui récupère une liste des albums iTunes, je tente sans succès de tester la valeur de albumName, qui ne prend jamais la valeur MISSING mais est tout de même vide pour certains albums...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
tell application "iTunes"
set uniqueNames to {}
set {albumName, artistName} to {album, artist} of every track
repeat with i from 1 to count albumName
if albumName is equal to missing value then
set albumName to "MISSING"
end if
set trackInfo to item i of albumName & ";" & item i of artistName
if trackInfo is not in uniqueNames then
copy trackInfo to beginning of uniqueNames
end if
end repeat
return reverse of uniqueNames
end tell |
Testé avec missing value et "", même résultat.
Ai-je loupé quelque chose ?