Recently I added context menu under services to execute python script but I think it would be convenient if I add a button on the Finder toolbar, like next to New Folder Button in below image.
Is this possible at add button on Finder Toolbar that triggers a python script and passes the current folder as argument ?
Best Answer
See if this works.
Download the Get first Finder Window Path BETA 10.9 automator action from from my blog : my_very_first_automator_action
The action returns the path of the front most finder window. It does not take any input from above actions. The post explains it all :-)
Create a new Application document in Automator and add the Get first Finder Window Path to it. Then just add you Run shell script after it.
Save as Application. And then do the drag and drop.
I would test it with your code but I do not have the python slideshow...
Note from Apple documentation in regard to Third party Actions.