Hmm, spoke too soon. If I run the code via my Python IDE it works just fine, if I run it via the AMI it fails with the certificate error. Both are using Pyrhon 2.7. What am I missing?
[EDIT]
It looks like it’s the apple script that handles the event.
If I do this it all works but I get no feedback (I’m donwloading playlist versions):
on open location this_URL
do shell script "python2.7 /path/to/python/file.py '" & this_URL & "'"
end open location
In order to get some sort of simple feedback without having to write a full UI I just want to run the code in a terminal, so I do this, which causes the certificate error for some reason:
on open location this_URL
tell application "Terminal"
activate
do script "python2.7 /path/to/python/file.py '" & this_URL & "'"
end tell
end open location
Are there any Apple experts here that coudl help out?
[EDIT2]
Looks like I have a dirty python environment and “python2.7” was not pointing to the python version I expected.
Fixed.
Cheers,
frank