Page 1 of 1

Lost custom button commands

Posted: 07 Nov 2016 09:48
by Anthraquinone
After a computer problem and a new SSD (I really like the speed of this) I have lost a couple of custom scripts I used to use a lot. Both were assigned to buttons. I am sure I picked the info up on how to code them from the What's New info but cannot now find it. If any one can point me in the right direction I will be most greatful

One simply copied the current folder into the other pane whan using dual panes.
The second opened a file or group of liles in a program other that the one normally accociated with it. For example open "my_book.epub" with the main Calibre program NOT the Calibre book reader.

Thanks for any help

AQ

Re: Lost custom button commands

Posted: 07 Nov 2016 10:24
by highend
You mean scripts like these?

Code: Select all

    // Use a specific app to open selected items
    $app = "D:\Tools\Sublime Text\sublime_text.exe";
    $sel = '"' . get("SelectedItemsPathNames", '" "') . '"';
    if ($sel != '""') { run """$application"" $sel"; }

Code: Select all

    // Copy the current folder (that you're in) into the current tab in the
    // inactive pane as a new subfolder (only when dual pane is active)
    if (get("#800")) { copyitem <curpath>, get("path", "i") . "\" . gpc(<curpath>, "base"); }

Re: Lost custom button commands

Posted: 08 Nov 2016 14:02
by Anthraquinone
Thanks for that.

These scripts do not ring any bells with me so prehaps I set it up a different way or I am just getting old. But whatever works.

I will have a look at these scripts and see if I can understand them

AQ