I'm trying to deliver as a download a collection of audio files such that the user (preferably Win and Mac) would be able to double click on the file (perhaps a DMG? / ZIP) and launch a script that would then add the media to the users iTunes library.

I realize that's big on concept and thin on detail --- At the moment I see it as a number of different problems.

  1. How to create a DMG file
  2. how launch a script for the user to do the add to library when the open the DMG (or zip on Win)
  3. how to actually do the scripting (again obviously different for Mac than Win)

I'm not expecting anybody to do the work for me, but I would appreciate pointers to suitable resources.

1 Answer 1


On the Mac side, you can create a DMG file with Disk Utility. Once started you can either select "New Image" to create a an empty one or use N to create an image based on a folder.

To copy the audio files to iTunes, it's probably easiest to just move/copy them to ~/Music/iTunes/iTunes Media/Automatically Add to iTunes (may be called differently, just look at the folder first) and let iTunes (which must be running) do the rest.

  • OK, I'm liking this idea. I didn't know about the "Add to iTunes automatically" folder. Would there be a way to present this folder as a link in the DMG such that the user could drag and drop the files in the DMG to that folder easily. For example, many software products that ship as a DMG have a link to the Applications folder, and the user just drags the package icon to the link and they're done. Dec 31, 2011 at 13:38
  • 1
    Hmm, might be difficult because /Applications is the same on all machines but /Users/whatever/Music/iTunes/iTunes Media/Automatically... depends on the user name as well as the locale (e.g. the folder is called Automatisch zu iTunes hinzufügen in german). Something like dougscripts.com/itunes/scripts/ss.php?sp=droptoaddandgiveinfo might be a better solution.
    – nohillside
    Dec 31, 2011 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .