It may sound strange but I need to run a specific PKG installer whenever I trigger a specific custom keyboard shortcut. On Sierra 12.6 I've assigned a custom keyboard shortcut to sleep/lock-screen the Mac using shellScript/appleScript.
I have no idea how the shell script would look like.
I'd be grateful for any help and participation.
do shell script "open /path/to/filename.pkg"
That said, your question lacks enough specific information for me to post a full and or complete answer. Also Finder and probably System Events can use theiropen
command to start the .pkg file as well. So there is more than one way to go.