7 Replies Latest reply: Mar 3, 2013 2:30 AM by Badrakumar
Badrakumar Level 1 Level 1 (0 points)

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)
  • 1. Re: Automator work flow and iTunes
    HD Level 4 Level 4 (3,240 points)

    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

  • 2. Re: Automator work flow and iTunes
    Badrakumar Level 1 Level 1 (0 points)

    Hi

    Thanks for your interest to help me out. I atlast set it up now. Will wait and see what happens and let you know tomorrow morning. Sure it will work

     

    Thanks once again for the detailed instructions

  • 3. Re: Automator work flow and iTunes
    Badrakumar Level 1 Level 1 (0 points)

    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

  • 4. Re: Automator work flow and iTunes
    HD Level 4 Level 4 (3,240 points)

    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.

     

    Screen Shot 2013-02-22 at 19.13.52.png

     

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

     

    Screen Shot 2013-02-22 at 19.26.55.png

     

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

     

    Cheers,

     

    HD

  • 5. Re: Automator work flow and iTunes
    Badrakumar Level 1 Level 1 (0 points)

    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

  • 6. Re: Automator work flow and iTunes
    HD Level 4 Level 4 (3,240 points)

    Calendar workflows are in <User>/Library/Workflows/Applications/Calendar. The user library folder is hidden by default. To access it, hold down the Alt (Option) key while clicking the Finder's Go menu.

     

    You can also open recent items from within Automator:

     

    Screen Shot 2013-02-26 at 18.55.11.png

  • 7. Re: Automator work flow and iTunes
    Badrakumar Level 1 Level 1 (0 points)

    Yes got it. Thanks