A .dmg file is a Disk Image - a kind of virtual disk. This disk can contain any number of files, folders, applications, documents, etc., etc., just like any other disk.
Ok, i’ll try and explain how i got to this point.
I developed an application (download manager) in REALBasic which allowed the download of multiple files from a clients site.
This all works ok. The next part was to trigger this application when a user clicked on the “DOWNLOAD ALL” link. The link was like so
mydowloadmanager://12345
where 12345 is the userid.
In the windows version of this application, i was able to register mydowloadmanager so it would run the download manager passing in the userid as an argument.
I need to do the same in OSX.
I have got as far as registering mydowloadmanager so when clicked on it runs the download manager. The bit i am stuck with is trying to pass in the userid.
This is where i thought Applescript could come in.
My mad cap plan was:
User clicks on link
The applescript is executed, it parses the url and retrieves the userid
The applescript then runs the download manager passing in the userid as an argument
Applescript closes and leaves the download manager running
Does this sound faesible? Possible?
This is why i asked if i could package the download manager and the applescript together.