Skip to main content
Question

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


DBrowning
Forum|alt.badge.img+24

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

Forum|alt.badge.img+7

Were you ever able to figure this out?


DBrowning
Forum|alt.badge.img+24
  • Author
  • Esteemed Contributor
  • 668 replies
  • October 6, 2022
DaneAbernathy wrote:

Were you ever able to figure this out?


Nope.  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings