External Actions

Registered by kwhitefoot

The basic idea is to have a tool that reads a description of a command line together with a description of the allowed values of the arguments that then either generates the action classes on the fly or write files for later use by Phatch. The description can be a simple text file created by hand but could also be created by a dialog inside Phatch. The syntax of the description should be executable Python. Action descriptons should be converted to action classes on the fly. A proof of concept implementation that creates action files exists in the Phatch forum: Forum » Developpers / Development » Non-Python Actions

Blueprint information

Status:
Complete
Approver:
Stani
Priority:
Essential
Drafter:
kwhitefoot
Direction:
Needs approval
Assignee:
Stani
Definition:
Approved
Series goal:
Accepted for 0.2
Implementation:
Implemented
Milestone target:
milestone icon 0.2.1
Started by
Stani
Completed by
Stani

Related branches

Sprints

Whiteboard

Thanks for filing the blueprint and your coding efforts. Originally I had something else planned as the main focus for Phatch 0.2 (life preview), but maybe I'll have a look at non-python actions first.

I'd love to see this to allow e.g. RAW conversion (see ufraw ( http://ufraw.sourceforge.net/ ) or DCraw ( http://cybercom.net/~dcoffin/dcraw/ ) for more info...

The proof of concept script at http://photobatch.wikidot.com/forum/t-44277/non-python-actions shows how you can do this and of course the template actions that stani has provided in Phatch help a lot.

So if you have a specific excutable that you want to run you can either use that script or just write your own action using one generated as an example. It isn't really that difficult. One good reason for doing it by hand is that you might find things that would need to be provided in a built in external action feature.

Note from Stani:
Phatch will have an open architecture with multiple backends. There are two kinds:
- command line tools (imagemagick, gimp, blender, ...)
- libraries (PIL, GEGL, ...)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.