Page 1 of 1

openwith file

Posted: 25 Jun 2018 11:05
by swan_x
i have one script on manage commands with keyboard shortcut assigned:

openwith "D:\apps\Calibre\edit-book.exe", , "D:\000\ePub\nevermind\ab.epub";

what this correct syntax to open all .epub files (not only single title) with my prog on this specific folder?? I have only one file each time, but the title change...
with *.epub not work correctly... or openwith support only one single file??

Re: openwith file

Posted: 25 Jun 2018 11:53
by highend
Maybe reading would solve your problem(s)...

Code: Select all

help "idh_scripting_comref.htm#idh_sc_openwith";
It even has an example that perfectly matches...

Re: openwith file

Posted: 25 Jun 2018 18:26
by swan_x
I have read help file, before your post, and after your post...
but the help file treat on example with one file selected...
I want, with my assigned letter, run my program with each file ePub on this folder mentioned on my previous post, without file selection...
I repeat, I have only one file ePub on this folder, but every time the name of this file is different...it’s possible this?

Re: openwith file

Posted: 26 Jun 2018 03:21
by jupe
Something like this should work:

Code: Select all

openwith "D:\apps\Calibre\edit-book.exe", , listfolder("D:\000\ePub\nevermind", "*.epub", 1);

Re: openwith file

Posted: 26 Jun 2018 11:14
by swan_x
@ jupe
oh yeeesss! many tanxs to your great reply!