Is it possible to have iTunes do stuff in a script if it isnt open. Maybe like telling “System Events” to do it or something. I want to update my podcasts without having to open iTunes.
If you need an application to perform a task, that application has to be running to perform that task.
How about:
-
Your script looks to see if iTunes is running.
-
If not, it launches iTunes.
-
The script marks your podcasts however you want, etc.
-
If iTunes was running when the script started, it leaves it running; if not, it quits it automatically when finished.
Try this:
tell application “iTunes”
launch
tell application “iTunes” to updateAllPodcasts
end tell