Calling AppleScript routine using osascript Given the following AppleScript code
on myHandler()
    display dialog (&quot;I'm your Handler!&quot;)
end myHandler

How do I call myHandler from osascript (using Terminal), plain without parameters, but also with?
Found a workaround. Not clean, but it works. In my case with Python:
import subprocess
    
with open(&quot;script.scpt&quot;) as applescript:
    subprocess.run([&quot;/usr/bin/osascript&quot;, &quot;-e&quot;, f&quot;{applescript.read()}\nmyHandler()&quot;])````