Tom Rice
Tom Rice
This can be fixed by adding "/bin/launchctl asuser $userName" before the oascripts calls. I''d make a pull request but there's some other issues I want to work out first.
@ooshnoo I added it before all of the AppleScript calls. Basically before anything that starts with "/usr/bin/osascript" I did find that I got better results by using the User's id...
@mani2care I'm debating how I want to handle some of these changes because as of now even with these additions they still don't allow the script to run on Apple...
@mani2care Try this new updated version