How-To: Create Custom Actions for Phatch in the Thunar File Manager
How-To:
Add Phatch Droplets as Custom Actions in the Thunar File Manager.
- Let's get started!
- Install Phatch.
- Create a Droplet. You can create an: Action List Droplet, or a Phatch Recent Droplet for use with Thunar's Custom Actions.
- Remember that an Action List Droplet is single-purpose, while the Phatch Recent Droplet is multi-purpose.
- We will use the Phatch Recent Droplet for the puroposes of the How-To since it is a more versatile tool.
- Remember, the same procedure will apply to creating a Custom Action in Thunar with the Action List Droplet.
- In Phatch go to the (File > Create Droplet From… > Copy Recent as Command to Clipboard) menu.
- Go to the (Applications > Accessories > Thunar File Manager) menu.
- This will open the Thunar File Manager.
- In the Thunar application, go to the (Edit > Configure Custom Actions) menu.
- A Custom Actions Dialog Box will appear.
- On the Top Right Hand side of the Dialog Box you will find a "+" Button.
- Go ahead and Click it now.
- You will now be presented with a Create Action Dialog Box.
- Paste the Phatch Recent Droplet Command in the field labeled "Command:".
- Go to the "Name:" field and enter something useful such as "Phatch Recent" or "PHoto & bATCH", you get the idea.
- In the "Description:" field enter something useful such as "Process Photos according to a recent Action List" or whatever works for you.
- Click on the "No Icon" button.
- A new Select an Icon for "Phatch Recent" (i.e. the "Name:" you entered) Dialog Box will open.
- Click on an icon. On your keyboard press the letter "p" followed by the letter "h".
- This is a shortcut to scrolling down to the "phatch" icon. You can of course simply use the scroll bar and scroll down to the "p" section of the Application Icons list.
- The phatch icon, if you aren't already familiar with it, looks like an eye with a green gear for the iris.
- Once the "phatch" icon is selected, Click the OK Button.
- The "phatch" icon will now appear in the Create Action Dialog Box.
- Almost done!
- You must now click on the "Appearance Conditions" Tab.
- Under the section: "Appears if selection contains:" Check the following boxes: "Directories", "Image Files". Deselect the "Text Files" Checkbox.
- Now click the OK Button.
- In the Custom Actions Dialog Box you should now see an entry labeled Phatch Recent, with the Description: Process Photos according to a recent Action List.
- Now Click the Close Button.
- That's it! You made it! You now have a Custom Action that will appear whenever you Right Click on the Icon of a Directory/Folder or Image File.
- Let's test it out!
- In the Thunar File Manager, navigate to a folder of screenshots or backgrounds or any other kind of photos.
- Right Click on the Directory/Folder Icon.
- You will see a "phatch" icon and the label Phatch Recent near the bottom of the pop-up menu that appears upon Right Clicking.
- Click on "Phatch Recent" in the pop-up menu.
- You will be presented with a Phatch Dialog Box.
- Select an Action List from the list in the Dialog Box.
- Go ahead and select "Round Corners Shadow".
- Now Click the OK Button.
- Phatch will now display the Drag & Drop Dialog Box. Here you can select the options that suit your needs.
- Lets accept the defaults for now (you can play later!).
- Click the Batch Button to begin processing your folder full of photos.
- If, like me, you have some image files Phatch (or more accurately, The Python Imaging Library (PIL for short) is unable to handle, you will get an error message. With my work I often run into interlaced PNG files whick PIL currently can't handle.
- This is no show-stopper. Just Click the Checkbox on the Error Dialog named "Apply for future errors" and select the "Skip To Next Image" Button.
- Phatch will now skip all unreadable files but continue processing the entire batch so you can walk away from your desk, go get coffee, engage in watercooler gossip, or take care of something urgent, like the phone that's ringing in the background.
- With the "Round Corners Shadow" Action List, it is set up to write output files to a folder with the same name as the source folder, but amended with "_round". So if your folder was named "Screenshots" you will now find another folder in the parent directory named "Screenshots_round".
- I hope you have enjoyed this How-To Guide, and will be able to further enjoy your interaction with Phatch and Thunar.
Unfold
How-To: Create Custom Actions for Phatch in the Thunar File Manager by
elliio, 04 Feb 2008 19:05














