From aea4df92def02d9c61febd6176001394d35e5549 Mon Sep 17 00:00:00 2001 From: maltekliemann Date: Fri, 29 Jan 2021 21:13:03 +0100 Subject: [PATCH] No longer use playlist for adding tracks (Fixes a problem where the playlist are not deleted on retries.) --- flacToItunes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flacToItunes.py b/flacToItunes.py index cc88276..2075762 100755 --- a/flacToItunes.py +++ b/flacToItunes.py @@ -45,13 +45,11 @@ def mkScriptHead(filename): return [ 'set thisFile to POSIX file \"' + filename + '\" as alias', 'tell application \"Music\"', - 'set plist to make new user playlist', - 'set thisTrack to add thisFile to plist', + 'set thisTrack to add thisFile' ] def mkScriptTail(): return [ - 'delete plist', 'end tell' ]