AppleScript: iTunes: if playlist "XY" is empty ...?

Xallo

Aktives Mitglied
Thread Starter
Dabei seit
23.08.2005
Beiträge
245
Reaktionspunkte
2
Hi,

möchte überprüfen ob eine Wiedergabeliste leer ist. Wie kann ich das anstellen?
PHP:
if playlist "XY" is empty
...geht nicht und mit count of tracks of Playlist "XY" = 0 hatte ich auch nicht mehr erfolg

xallo
 
Hallo,

Code:
tell application "iTunes" to if ((every track of playlist 1) is {}) then display alert "Ergenis" message "leer"

Erst überlegen... ;-)

Viele Grüße
 
Zurück
Oben Unten