Thanks for your reply. I was missing the %Variable%path% option to get the variable into the python script. Adding that got me further - the macro window displays the currently selected PDF; however, when I run the script, it pops up an error dialog:
The output of script ‘Unknown’ is:
/bin/sh: null: command not found
Re. the second part of your response - the script is reading command line input - doesn’t %Variable%path% act as the command line string?
Thanks,
Des