Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automator work flow and iTunes

I want to creat a automator work flow to start itune at a specified time daily and ply the songs in the specified playlist for an hour and then stop.


In the automator actions I found "Find iTunes Playlist" and Start iTunes Playing". But the other bits to do the full sequence that I need are missing.


Please help me how to go about it.


Thanks


Badrakumar

iMac, OS X Mountain Lion (10.8.2)

Posted on Jan 9, 2013 3:03 PM

Reply
Question marked as Best reply

Posted on Jan 13, 2013 2:21 PM

Hi,


Here's one way.


In Automator, create a Calendar Alarm. This will have two actions from the Music library.


The first will be "Get Specified iTunes items". Click the Add... button in the action pane and specify your playlist.


The second action will be "Play iTunes playlist". You don't need to modify this, just make sure it's second in the workflow.


Save and close this Calendar Alarm, calling it something like "Play my Playlist". Calendar will activate and will create a new calendar called "Automator" if it doesn't already exist.


In Calendar, schedule this Alarm for every day at waking-up time.


Go back to Automator and create a second Calendar Alarm. This will have a single action, "Run AppleScript" from the Utilities library. Delete all the text in the action ("On run... yadda yadda... End run"). Type in a single line:


tell application "iTunes" to quit


Save this Alarm, calling it something like "Stop iTunes", and again you'll be taken to Calendar. Schedule the Stop iTunes alarm daily to run an hour after the first alarm.


Hope this helps,


H

7 replies
Question marked as Best reply

Jan 13, 2013 2:21 PM in response to Badrakumar

Hi,


Here's one way.


In Automator, create a Calendar Alarm. This will have two actions from the Music library.


The first will be "Get Specified iTunes items". Click the Add... button in the action pane and specify your playlist.


The second action will be "Play iTunes playlist". You don't need to modify this, just make sure it's second in the workflow.


Save and close this Calendar Alarm, calling it something like "Play my Playlist". Calendar will activate and will create a new calendar called "Automator" if it doesn't already exist.


In Calendar, schedule this Alarm for every day at waking-up time.


Go back to Automator and create a second Calendar Alarm. This will have a single action, "Run AppleScript" from the Utilities library. Delete all the text in the action ("On run... yadda yadda... End run"). Type in a single line:


tell application "iTunes" to quit


Save this Alarm, calling it something like "Stop iTunes", and again you'll be taken to Calendar. Schedule the Stop iTunes alarm daily to run an hour after the first alarm.


Hope this helps,


H

Feb 22, 2013 9:55 AM in response to Badrakumar

Hi

Your trick worked. Thanks

I have the following issues.

  1. The itune starts only if I wake the computer up before the alarm time. If the mac is on sleep it does not start.
  2. It plays the same song again and again does not move to next song.
  3. It plays on the computer speaker if it is on. But It does not play in to the Airport system


Any advice would help.


Thaks

Badrakumar

Feb 22, 2013 12:10 PM in response to Badrakumar

Hi,


1) You can schedule a system wake time from System Preferences - Energy Saver (click the Schedule button). But if you have set a login password you would still need to type it in when the Mac wakes up.


2) Have you definitely selected a playlist in the first action? If you click any track names in the dialog below, only those tracks will play.


User uploaded file


You might also want to experiment with the Shuffle and Repeat buttons in the action.


User uploaded file


3) Not sure about that one - it works fine for me over Airport.


Cheers,


HD

Feb 26, 2013 6:31 AM in response to HD

Hi HD

Your advice helped. I scheduled the preference time and it worked. Actually I have a password to open but it still worked with out me requiring to put the passwore.


Where will I find the Automator projects saved. I am thinking of checking what I choose to play to rectify the same song being played?


Thanks


Badrakumar

Automator work flow and iTunes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.