export PATH="$PATH:/usr/local/bin"# in case lame etc is there
cd"${BASH_SOURCE%/*}/../.."# needed on macOS 14, possibly 13
if sw_vers 2>/dev/null|grep ^ProductVersion.*1[2-9];then# macOS 12+
if test$(python3 -c'import tkinter,sys;print(sys.version_info[:3]>=(3,10,1))' 2>/dev/null)="True";then exec python3 gradint.py;fi
osascript -e"tell application (path to frontmost application as text) to display dialog \"macOS 12 bundled a broken version of the GUI libraries: please install Python 3 from python.org before running Gradint\" buttons {\"OK\"} with icon stop"