Hi,
Trying to launch a very simple python script from folder action applescript just to test it out.
My current applescript is as follows I tried it originally without the cd command, but i thought this might be needed:
set script_folder to "$HOME/py_scripts"
do shell script "cd /Users/glucosamigos; python3 " & script_folder & "pdftopng.py"
The python script I am trying to launch is a script that just logs something to a readme.txt file. eventually it will be a script to accept commandline args and change a pdf to png file, but for now i’m just doing as follows in order to test it and make sure the very basics work, which it does not. the python script has execute permissions:
#!/usr/bin/env python
with open('readme.txt', 'w') as f:
f.write('test')```