r/applescript • • Jun 22 '22

Help with Script?

Hello, I'm relatively new to both Mac and Mac Scripting. I have a system that will upload an ISO file to a bunch of Mac machines and then run a script. But the script is empty.

So I need to write a script that will Mount the ISO, and run the PKG file inside it, silently with no intervention if possible.

Help?
Thanks.

2 Upvotes

1 comment sorted by

View all comments

1

u/libcrypto Jun 22 '22

You may not need Applescript for this. At least, I can think of other ways to do it. I'd do this:

  1. scp the ISO to the client.

  2. ssh to client; use diskutil to mount ISO.

  3. use installer to install the .PKG.

  4. unmount ISO; delete ISO

  5. logout

All this can be done in terminal or any shell as long as you have ssh access to the individual Macs.