I have the following script that imports the content of a path into iTunes on my server.
with timeout of 800 seconds
set folder_alias to POSIX file “/path/to/files/”
tell application “iTunes”
add folder_alias to library playlist 1
The issue is that i get an error when to script ends:
“end of <> doesn’t understand the run message”
I’m running this every night to update the iTunes, so my appleTV has all my data.
The script leaves zombie processes that takes up all the ram, so i have to manually kill the scripts.
Does anyone know how to end this script cleanly?