I have an applescript (scpt) script that I would like to run on login of a user.
I would like the script not be visible in the dock, menu bar, etc. (This would probably mean running it in the background or something.)
What would be the best way to do this?
Preferably, I would like it that it would not be easily noticeable that the script is being auto-run. Also, a way to somewhat easily remove the script from login would be helpful.
If needed, I'll attach a copy of the script. It's supposed to be a prank using the say command, any tips for improving the script would be nice 😉
Best Answer
Instead of launching Terminal You can make something like:
You can save it as an app and then change its Info.plist file to hide it from Dock. Simply add this line inside
Hello.app/Contents/Info.plist
:To launch it on login You can add this app to Login Items.