Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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
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. –  patrix Dec 31 '11 at 14:42
add comment

Your Answer

 
discard

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.