build 1653 - external tools support

Alpha/Beta versions for early access to new half-cooked features
Post Reply
User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

build 1653 - external tools support

Post by mike » Tue Jun 28, 2016 7:51 am

Hi folks!

After a long-long time a some level of external tools integration is finally here :)

Some other additions in this version:
- Universal F1-F19 buttons access regardless of system setting (should be enabled in Preferences)
- Enabled scriptability with AppleScript (only basic built-in actions are supported)

External tools themselves can be edited in UI and directly in JSON config.
There's a new Tools tab in Preferences window, where a tool's Title, Application Path and Parameter can be altered:
Screen Shot 2016-06-28 at 14.38.45.png
Screen Shot 2016-06-28 at 14.38.45.png (50.26 KiB) Viewed 4939 times
Tool's parameters are composed by parsing a string with placeholders, complete list of placeholders at the moment is below:

Code: Select all

- produces % symbol:  %%
- dialog value: %?, %"some text"?
- directory path: %r, %-r
- current path: %p, %-p
- filename: %f, %-f
- filename without extension: %n, %-n
- file extension: %e, %-e
- selected filenames as parameters: %F, %-F, %10F, %-10F
- selected filepaths as parameters: %P, %-P, %10P, %-10P
- list of selected files:
  - filenames: %LF, %-LF, %L10F, %-L50F
  - filepaths: %LP, %-LP, %L50P, %-L50P
- toggle left/right instead of source/target and vice versa: %-
- limit maxium total amount of files output %2T, %15T
Of course, there's a "+" button with a pop-up menu, showing different placeholders variants:
Screen Shot 2016-06-28 at 14.42.21.png
Screen Shot 2016-06-28 at 14.42.21.png (59.02 KiB) Viewed 4939 times
Even more - UI will check parameters string any time it's changed and in case of a broken syntax - will show information about the issue :ugeek:
Hotkeys for external tools can be altered in Hotkeys tab:
Screen Shot 2016-06-28 at 14.45.22.png
Screen Shot 2016-06-28 at 14.45.22.png (94.51 KiB) Viewed 4939 times
Here's the build itself:
http://magnumbytes.com/downloads/previe ... (1653).zip

For more discussion about tools support please check out this thread: http://magnumbytes.com/forum/viewtopic.php?f=6&t=2

Feedback is very welcome!

Mike.

don
Posts: 134
Joined: Sat Jul 18, 2015 11:03 am
Location: Sydney, AU

Re: build 1653 - external tools support

Post by don » Sat Jul 02, 2016 2:36 am

Love the external terminal feature.

Great work - thank you!

Post Reply