I tried searching what error -10810 is but nothing came up on Google. Any idea on how to fix this or go around this?
Asked
Active
Viewed 1,141 times
6
1 Answers
5
When opening an application with the open command, you should use the -a option, e.g:
open -a "Safari"
From the man page for the open command:
-a application
Specifies the application to use for opening the file
Note: If you use the -a option, you typically do not need to specify the pathname or even use the .app extension. Just the format as in the example shown above should work.
In Terminal, the executable permission (and others) output of:
ls -l /Applications/Safari.app/Contents/MacOS/Safari
Should be:
-rwxr-xr-x
If not, then in Terminal, run the following command:
sudo chmod 0755 /Applications/Safari.app/Contents/MacOS/Safari
This will ensure the proper permissions on the Safari executable and should stop you from getting the error you've got.
Pang
- 437
user3439894
- 58,676
-
-
If there's a permissions problem, "Fix Permissions" in Disk Utility should deal with it. – Barmar Feb 13 '18 at 04:43
-
@Barmar, Fix Permissions has been removed from Disk Utility for some time now, so it depends on what version of the OS the OP is running. That said, there is nothing wrong with manually checking it in order to eliminate it as the cause of the issue and if so manually applying the proper permissions. – user3439894 Feb 13 '18 at 09:53
-
lol I bet they removed it because users were using it any time they had a problem, but permissions were rarely the cause. Now this user needs it and it's not there. :) – Barmar Feb 13 '18 at 09:59

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user– user3439894 Feb 12 '18 at 22:50