I'm attempting to use the following command in Terminal on MacOS 13.2.1 to add WebDrive.app to my login items hidden (or even just minimized) on MacOS, since there appears to be no way to do it with the new Login items UI under the Settings "General" tab:
/usr/bin/osascript -e ‘tell application “System Events” to make login item at end with properties {path:”/Applications/WebDrive.app”, hidden:true, name:”WebDrive”}’
While I'm not sure this approach would even work if it were syntactically valid, this gives me a 0:1: syntax error: A unknown token can’t go here. (-2740)
error. I'm just not seeing what token osascript is complaining about, so any help with this would be very appreciated.