How to avoid this error: The application cannot be opened for an unexpected reason

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-26-2022 06:48 AM
We have a script that is running with a trigger of login and some machines it runs without issues on, some we get the following when it fails:
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10673 "(null)" UserInfo={_LSLine=3878, _LSFunction=_LSOpenStuffCallLocal}
The script is pretty simple:
#!/bin/sh
CU=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
su "$CU" -c 'open https://company.sharepoint.com'
Any help would be appreciated. Thanks
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 10-05-2022 10:43 AM
Were you ever able to figure this out?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 10-06-2022 06:40 AM
Nope.
