I am trying to create a application in OSX through UNIX that will run a script to mount an image from a CD-ROM and run the application which it corresponds to, all with double clicking on a icon in OSX. Any thoughts or ideas?
-Mad
Hi.
Could you please explain what you mean with "mount an image from a CD-ROM "
Do you just want to mount the cdrom or do you have a image file
on a cdrom so you need to mount the cdrom and then mount the image???
What do you mean by "run the application which it corresponds "?
Please expain some more!
/Unix Peter
The best way I can describe what I am talking about is when you have any file with a .dmg on the end, Mac OSX uses a utility called Disk Copy which "mounts" the file on to your Desktop, I'm to figure out how to execute that same or a similar command in UNIX that will do the same thing. About the program which it corresponds to: I have a game that will not play unless the .dmg file is mounted onto the desktop, I am trying to figure out how to write a script or create an application in OSX that will mount the disk image and execute the game all with one command or click on an application, its basically just a little project I am trying to see if something like that is possible. Sorry its not really clear, but maybe you catch my drift.
I'm thinking it would be a lot easier, since you want to double click to activate the sequence of events, to make this an applescript.
Give the applescript the same name as the application you want to run.
If you really want to be confused later, paste the icon of the target application on there also. 
Unix is really powerful stuff, but for gui, you might want to use other tools.
If you created a unix deamon that waited for the application to launch, it would already be too late to do the other tasks, since the application depends on the resources being available before launch.
Just my .125 cents
edit --> By the way. It is possible to do this with applescript. I did a while ago for exactly the same scenario. 