View Single Post
Old 11-08-2012, 09:15 PM   #404
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 5,444
Karma: 5446662
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
@BetterRed: Have you looked at the Open With plugin? You should be able to configure an entry to open your executable against the file you want to change in the list. Maybe you will need to wrap it in a batch file to parse the folder path out.

I think what you are planning to do is from the directory path, read the metadata.opf file in the directory, determine the name of the RTF or PDF file and then execute a command on that file using the data from the metadata.opf. If so, I think calling a batch file with Open With get you were you want to be.

If that doesn't work, you can look at the plugins code to see how it gets the paths.
davidfor is online now   Reply With Quote