Serpens
Gast
Hallo, weiß jemand wie ich überprüfen kann ob ein lied in einer playlist drinne ist, ich versuch das jetzt schon seit tagen mit allen möglciehn kombinationen aber nix klappt, hab das gefühl ich spiele lotto
hier mal n bissl code
schonmal thx

Code:
on input(dir, defPL)
tell application "Finder"
set dirName to name of dir
set array to every item of dir
end tell
repeat with cItem in array
try
set cName to name of cItem
if kind of cItem is "Ordner" then
if dirName is "Library" then
tell application "iTunes" to if not (exists playlist cName) then make new playlist with properties {name:cName}
input(cItem, cName)
else
input(cItem, defPL)
end if
else
--tell application "iTunes" to tell playlist defPL to if not (exists track cName) then
tell application "iTunes"
set tList to every track of playlist defPL
if cName is in tList then say "Hi"
--if not (exists track cName) then
-- add (cItem as alias) to playlist defPL
--say "hi"
--end if
end tell
end if
end try
end repeat
end input
hier mal n bissl code
schonmal thx