Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
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. – Ralph Shillington Dec 31 '11 at 13:38
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 might be a better solution. – patrix Dec 31 '11 at 14:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.