Skip to main content
Question

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

  • July 26, 2022
  • 2 replies
  • 13 views

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
  • Contributor
  • 33 replies
  • October 5, 2022

Were you ever able to figure this out?


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

Were you ever able to figure this out?


Nope.