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.
matthew phungAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA Engineer IIICommented:
Can you use an Automator workflow?
Screen-Shot-2015-07-28-at-10.05.09-PM.pn
0
strungCommented:
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
0
matthew phungAuthor Commented:
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.
0
strungCommented:
I don't think Apple's security will allow that for obvious reasons.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apple OS

From novice to tech pro — start learning today.