Add iTunes Media With Services And Automator 4

Automator

Add iTunes Media With Services And Automator

Hey

I hope everyone had a good Christmas and New Year. I ended up having lots of fun and being as busy as ever. The first post of the year will be dedicated to adding iTunes media, music, videos etc using the Services menu and an Automator application. iTunes 9 added a new feature called “Automatically Add To iTunes” its simply a folder that iTunes is always looking at found in your iTunes music folder. Add a file to the folder and iTunes will add it to your library. A very good way of quickly adding files and folders. In this tutorial I am going to show you how to add a Services menu to take advantage of this menu. I will also show you how you can use it in other ways.

The first step is to understand what is going on. This is what will happen. You select a file in Finder > Select the Services menu option > Copy (or move) the file to the required folder > iTunes then analysis this new file > iTunes copies it to your library and you are ready to play it. Simple. To start open Automator in your Applications folder. When asked by the pop up select the Services menu option. This will only appear for Snow Leopard users. If you are on an older version you can create an application, more on the application option later.

Within Automator at the top of the work flow area (right hand side of the screen) select “files or folders” for the first drop down and “Finder” for the second. This will make sure the Service menu option only runs for files and folders, which is what you want. From the library of actions on the left hand side of the screen select “Copy Finder Items” from the list, it is under Files & Folders, drag this to your workflow. Within the options change the folder to “Automatically Add To iTunes” under Users/[name]/Music/iTunes/iTunes Music. If you want to copy the music file, as a result, leave the original music file in its original place select “Copy Finder Items” from the library of actions. This is ok, however you end up with a lot of duplicate files. Its better to select “Move Finder Items” from the list of available actions. This will move the music file and keep your Hard Drive less cluttered. At this point it is worth pointing out in iTunes I would select “Keep iTunes Media Folder Organised” and “Copy Files To iTunes Media folder when adding to library” under Preferences > Advanced.

automator screen shot

We now have our Automator work flow set up. Lets put it to use. Save the work flow with a useful name “Move to iTunes” or “Copy To iTunes” are good names depending on which work flow option you have selected. When you hit OK the service option will now be present in your Service menu, simply select a music file in Finder.

services screen shot

At this point its not that useful, but we can add a Shortcut. Open System Preferences > Keyboard > Keyboard Shortcuts. Select Services and find your new Service menu under Files and Folders. Double click in the area to the right of the Service menu option. Add a shortcut, I recommend one with a couple of modifier keys (eg Command + Option + Shift + A). When you are done test you new short cut out.

If you are into drag and drop, create an Automator application workflow in the same way (select Application instead of Service at the very beginning). With the application save it to a useful location. Then drag this option to the toolbar on Finder. Everytime you drag a music file onto the workflow it should add it to iTunes.

I hope you find this tutorial useful. If you have any questions please leave a comment.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

4 Responses to “Add iTunes Media With Services And Automator”

  1. 1

    Don’t you then have all the music in both places – in the /Music folder and in the /Music/iTunes/iTunes Music folder? Correct me if I’m wrong but that option takes up double the space?

    Comment By silvestre on January 3rd, at 10:06 pm

  2. 2

    If you drag it into the “Add to iTunes” folder. You should only have one copy of your music as iTunes will organise the file for you. You would only have two copies if you use the copy function and not the move function.

    Comment By admin on January 3rd, at 11:28 pm

  3. 3

    Thanks for this. In Tiger I had a right click option to add selected files to Itunes. I still had to delete them afterwards. Moving them removes that step. Would importing audio files have a different outcome? Leaving the files in two places? I noticed two importing audio options in the music actions and I am curious.

    Thanks again.

    David

    Comment By David Bevington on February 25th, at 10:58 pm

  4. 4

    Can this be modified so that I can do the following?

    1. Everytime a music file is added / downloaded to a folder (ex. Downloads), it’s automatically copied to the ‘Add To ITunes Folder’.
    2. And then moved to my Nas disk (where I keep my Sonos library)

    Help will be much appreciated :)

    Comment By Chris on April 20th, at 10:48 pm

Leave a Reply

You can use: <a href> <h1 - h6> <acronym> <code> <em> <strike> <strong> <i> <b>