rtrouton / First-Boot-Package-Install

MIT License
59 stars 9 forks source link

Packages That Run Applescript Fail #7

Closed spencerhughes closed 6 years ago

spencerhughes commented 6 years ago

I have a few packages I made that call osascript from bash to join our active directory and set the machine name by presenting dialog boxes. When I run the packages on my regular Mac, when Installer gets to 'Running package scripts' the dialog boxes appear and the script runs normally. However, when I install the same packages through First-Boot-Package-Install the package fails to install.

rtrouton commented 6 years ago

The scripts aren't working becauseosascript / AppleScript requires a logged-in user and nobody is logged in when First Boot Package Install is installing packages.

spencerhughes commented 6 years ago

OK many thanks for the clarification.