Is it at all possible to create a DMG file which will run a few terminal commands when opened? These are examples for the commands:
- create a new folder with specific name.
- Place it in a specific location.
- Download a few files from my server and save them into that new folder.
What I've done:
I've created a file which include a basic script to create a new folder on my desktop and named it file.command and then opened my terminal and typed chmod +x file.command and then double clicked the file and it ran.
But I don't like this process. I want to be able to bundle a few processes in a DMG file so I can distribute that to my colleagues who are not the tech savvy. And they can simply run that DMG file and it executes a few scripts for them.
Now I'm not sure whether this is at all possible because I have never tried this. So I'm looking for some advice.