Most Apple apps installed with the OS have a new filesystem location
Starting with Mac OS X 10.0.0, Mac apps have traditionally been installed into /Applications or /Applications/Utilities. It appears to be the same on macOS Catalina, but appearances can be deceiving.
As part of implementing a read-only volume for the OS, Apple has moved the apps it installs along with the OS from /Applications to a new location on the read-only volume: /System/Applications
For operations in the Finder, this move won’t make a lot of difference because Apple has made sure that the applications in question still appear in /Applications and /Applications/Utilities.
However, if a script or other command line tool is referencing an app in /Applications or /Applications/Utilities, the new /System/Applications and /System/Applications/Utilities path must be referenced. In my case, I ran across this as part of a script that as part of its work was referencing the Keychain Access app in the following location:
/Applications/Utilities/Keychain Access.app
The script failed because Keychain Access is no longer available at that location on macOS Catalina. To fix this, I updated the script to use the following location:
/System/Applications/Utilities/Keychain Access.app
Once that was done, the script ran without problems again.
This new location on the read-only volume only applies to apps which Apple installs as part of the OS or which are only updated by OS updates. For example, because Safari may be installed or updated separately, the Safari app is not located on the read-only volume in /System/Applications. Instead, Safari remains in /Applications as /Applications/Safari.app.
You could update any scripts that reference /Applications, to set a variable to either contain /System or be empty dependent on the OS version and then use something like this pseudo code:
if <> then
APPL_PREFIX=“/System”
fi
Perform some action on ”$APPL_PREFIX/Applications/Chess.app”
Perhaps any scripts should use logic to test where the required app is. Should Apple have made this backwards compatible some how with symlinks et al?
My test result is different. Can you explain why? I am on macOS 10.15 (19A583).
~ $ open “/Applications/Apple Configurator 2.app”
~ $ open “/System/Applications/Apple Configurator 2.app”
The file /System/Applications/Apple Configurator 2.app does not exist.
Apple Configurator 2 is not an app installed by the operating system, so it’s not included in the set of apps stored in /System/Applications. Apple Configurator 2 is installed via the Mac App Store.
Got it, thank you for your answer. I just checked the system folder to see what apps are installed there. Sorry for my not well thought out question.