VikingOSX wrote:
Apple removed the default Python (python 2.7.16) distribution beginning with macOS 12.3 and that broke some of their own solutions (Automator PDF Watermark), and a good deal number of user scripts.
If you install Python3 (e.g. 3.11.2) from Python.org, the Python3 will be found in /usr/local/bin/python3 (a link) and on Automator's Run Shell Script Shell: menu at the same location. Installing the Command Line Tools for Xcode does not place /usr/bin/python3 on that Automator Run Shell Script menu, and one would have to use that location in a Python3 HERE script, which is more complicated…
The Python3 installation from Python.org installs just a fraction of the 3+ GB storage used by the Command Line Tools for Xcode and that Xcode-select --install process.
There is also the possibility that code that references Python2 (e.g. python) may not be compatible with the changes in the Python3 library or Python3 syntax requirements.
While the command line tools includes tools in addition to python3 (i.e gcc), python.org handles macOS updates by not removing the prior versions and I’m left with multiple versions in my App Folder, and in Frameworks. And I only occasionally use python and only with the command line, so IDLE is of no use for me.
The command line tools is an older version (3.9.6) than python.org (3.11.2)
The command line tools python is installed at:
macbook-air:~ Tony% where python3
/usr/bin/python3
/Library/Developer/CommandLineTools/usr/bin//python3
While Automator doesn't reference /usr/bin/python3 in the Run Shell Script menu (but does in Shortcuts, go figure) I had no issues with the Automator Watermark Action once I set up a new workflow (my old workflow didn't convert to Ventura):

Shortcuts:
