osascript.py
osascript.py copied to clipboard
osascript 2020.12.3 and python 3.6.9
Hello,
Thanks for creating this, it looks like a cool project.
I tried running the example command that you have on your README.md from inside a virtualenv that had a python 3.6.9 (I know it's pretty old) and got the following stacktrace:
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import osascript as osa
>>> code, out, err = osa.run('display dialog "42"')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/milia/.venvs/osx/lib/python3.6/site-packages/osascript/__init__.py", line 24, in run
r = runcmd.run(cmd, background=background)
File "/home/milia/.venvs/osx/lib/python3.6/site-packages/runcmd/__init__.py", line 150, in run
return Command().run(args, cwd=cwd, background=background)
File "/home/milia/.venvs/osx/lib/python3.6/site-packages/runcmd/__init__.py", line 142, in run
process = subprocess.Popen(args, **kwargs)
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'osascript': 'osascript'
Version of osascript I'm running
(osx) milia@Newton:~$ pip list |grep osascript
osascript 2020.12.3
Friendly request:
- Can you please let me know if I'm doing something wrong?
- Is your library
osascript(version2020.12.3) backwards compatible with older versions of python3? - If yes, and you don't need any additional info from me, could you look into this when possible?
Thank you in advance !