Script end error?

Hi all,

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
end tell
end timeout
end run

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?

Cheers

Stevns

you could try…
tell me to quit

Tom

Browser: Safari 528.17
Operating System: Mac OS X (10.5)

Hi,

without a corresponding on run line the end run line is useless.
Just delete it, the script will end normally