Author Topic: How to customize the “Custom editor” mapping  (Read 94 times)

Offline jeffw

  • Newcomer
  • *
  • Posts: 12
    • View Profile
How to customize the “Custom editor” mapping
« on: Today at 03:45:05 PM »
I’ve search the forums and Google, but have not found anything….

A) How do I customize the Preferences -> Launching -> Set -> Custom editor call ?
B) What variable do I use for the filename ?
C) What variable do I use for the base of the file name ? so that I can add a .gpx to the end
D) How do I “intermix” command options ?
E) What does the call look like if I have multiple files selected ?

What I want to do is 2 things:
1) Use gpsbabel to convert a Z9 gps log file to a .gpx file that PM would understand to apply to my other non-gps enabled cameras ?
   (aka convert Nxxxxx.LOG to Nxxxxx.gpx)
2) Use exiftool to strip the gps location since PM does not have this feature and I really don’t like “null island”

Where are these “Custom editor” short cuts stored ?
  - I’ve looked in AppData… Photo Mechanic and not finding anything
  - I want to make sure these are being “backed up” when I do a “export” and/or copy of the AppData Photo Mechanic folder

I have resorted to calling a windows .cmd script to display the full exif (i.e. exiftool piped into “less”)…
Hey feature request: would be real nice if PM supported that natively :-)
— jeff

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1166
    • View Profile
Re: How to customize the “Custom editor” mapping
« Reply #1 on: Today at 05:11:45 PM »
A) How do I customize the Preferences -> Launching -> Set -> Custom editor call ?
B) What variable do I use for the filename ?
C) What variable do I use for the base of the file name ? so that I can add a .gpx to the end

It sounds like you may be unclear on what the "Custom Editors" do. They are simply there so that a user has an additional option for what application to launch when they right-click a selection of images and choose "Edit Photos with". For example, you typically want to edit photos in Photoshop, but sometimes you just want to open them in MacOS Preview. You'd set Preview as a Custom Editor so that you can launch it from the right-click menu without setting a specific file type to open with MacOS Preview every time you try to edit it. Variables are not used in the context of setting a custom editor. If you want to launch "unknown files" (which is essentially any non image or RAW file type), you can set an editor for the ".PRXY" line. Although GPS Babel doesn't do anything when given a command line parameter, which is what Photo Mechanic is doing when launching an editor.

Quote
D) How do I “intermix” command options ?

Don't know what you mean by this.

Quote
E) What does the call look like if I have multiple files selected ?

If your selection contains, for example, CR2 files and NEF files, and you have Photoshop set to be the editor for CR2 files and Capture NX as the editor for NEF files, then your CR2 file would open in Photoshop and your NEF files would open in Capture NX.


Quote
What I want to do is 2 things:
1) Use gpsbabel to convert a Z9 gps log file to a .gpx file that PM would understand to apply to my other non-gps enabled cameras ?
   (aka convert Nxxxxx.LOG to Nxxxxx.gpx)

Have you looked at the "Import GPS coordinates" feature in Photo Mechanic which will use GPS Babel to import GPS tracks into your images? I don't have a .log file but I assume these are just in NMEA format? The Import GPS Coordinates feature should be able to handle those files, although I don't have a valid NMEA file with files to match it to test with at the moment

Quote
2) Use exiftool to strip the gps location since PM does not have this feature and I really don’t like “null island”

You could drag and drop a selection of images to a terminal window with the exiftool command already typed in and then it would append all of the filenames in your selection to your command.


Quote
Where are these “Custom editor” short cuts stored ?
  - I’ve looked in AppData… Photo Mechanic and not finding anything
  - I want to make sure these are being “backed up” when I do a “export” and/or copy of the AppData Photo Mechanic folder

Any settings you change in Photo Mechanic are stored in com.camerabits.PhotoMechanic.prefsdb
« Last Edit: Today at 05:55:56 PM by Kirk Baker »