I have set the Box SimpleShare app to start at login, but the app launches its preferences pane right after it loads its icon in the menu bar. Setting it to start in “hidden” mode in System Preferences > Users & Goups > Login Items doesn’t change that behavior.
I tried to create an AppleScript, saved as an app, to launch the SimpleShare app at login and hide the pref pane, but it doesn’t work as expected.
set tApp to "Box SimpleShare" tell application tApp to launch tell application "System Events" set visible of process "Box SimpleShare" to false end tell
This launches the app but it does not close the Box SimpleShare preferences pane. What would be the proper code to do that?
Thank you in advance for your help!