Apfelscript songs in playlist

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 :smiley:

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

hi,

ich würde gerne diesen code bei meinem itunes auch zum laufen kriegen, weiß allerdings nicht wie und wo ich ihn eingeben muss.
kann mir vielleicht jemand helfen?

ich bedanke mich schon mal im voraus :smile:

mfg dagmar

sry, da kann ich dir nich helfen, ich habs jetzt einfach so gemacht das wenn ich das script starte einfach immer alle songs hinyugefuegt werden, ist zwar nich ganz das was ich wollte aber nach ner formatierung ist das doch ganz praktisch

hi,

so eine schnelle antwort, damit habe ich nicht gerechnet. danke :smile:

wie starte ich denn das script? wo gebe ich es ein? ich habe null ahnung, leider.

hm also nur so vornweg, das script das oben steht geht nich und ich habs auch nie hinbekommen :frowning:, aber in Programme gibt es einen ordner “applescript” wo ein skrtipeditor drinne ist, mit dem kannsu dann deine skripte schreiben

ok, danke für deine hilfe :smile:

mfg