Avatar of matthew phung
matthew phung
 asked on

Automatically start installation of pkg file after download

Is it possible to automatically execute a pkg file after it downloads on a macbook with OS X? If so, please share your script or direct me to where I can find the example.
Apple OSMac OS XOS Security

Avatar of undefined
Last Comment
strung

8/22/2022 - Mon
Mark Bullock

Can you use an Automator workflow?
Screen-Shot-2015-07-28-at-10.05.09-PM.pn
strung

You could set up a "watch folder" and use AppleScript to open any file added to the watch folder:

http://www.mactech.com/articles/mactech/Vol.20/20.07/FolderWatching/index.html
matthew phung

ASKER
Mark - Thank you for the response.  I am not able to use Automator because I will be installing the package on macs that I do not have access to.  What I am trying to do is simplify the installation process by automatically starting the installation for the users once the package is downloaded on their macs. This will save them the headache of searching for the package. You and I know that the package is saved in the downloads folder but they apparently do not. A lot of the users are confused on where the package file is downloaded to.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
strung

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.