Creating dmg with two programs

I want to know how to go about having 2 applications within one dmg.

Reason is that application1 needs to get some information and run application2 with the captured information as arguments.

Would i need to have 2 dmg files called application1.dmg and application2.dmg?

Or can i somehow combine the 2, if so how would i call them?

This is all new to me so be gentle. :slight_smile:

I’m missing something here.

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.

What is it you’re trying to do?

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:

  1. User clicks on link
  2. The applescript is executed, it parses the url and retrieves the userid
  3. The applescript then runs the download manager passing in the userid as an argument
  4. 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.