Scripting

mn
mnott
Posts: 44
Joined: Fri Nov 18, 2016 1:12 pm
Platform: Mac + Linux

Thu Feb 08, 2018 7:47 pm Post

Hi all,

so bringing my laziness to new heights, I'm wishing for a toolbar button, or hot key, so that I can call an external script that will run within the directory within which the .scriv directory is found. I am using my own post-processor (TeXDown), and I am trying to not having to go myself to a terminal window every time. In fact, I'd like to have it run right out of Scrivener. For such a script, I'd like to define some parameters, but that's not a necessity.

It would be quite helpful since I'm in the process of wrapping the whole TeXDown in a virtual machine so that just about anyone can use it, without understanding how to set up Perl modules. For that, I'd still need a breakout from Scrivener.

Thanks,

M

User avatar
devinganger
Posts: 1072
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272 (CN97au)
Contact:

Fri Feb 09, 2018 2:25 am Post

The hooks to run scripts in Compiler aren't enough?
--
Devin L. Ganger, WA7DLG
Not a L&L employee; opinions are those of my cat
Winner "Best in Class", 2018 My First Supervillain Photo Shoot

mn
mnott
Posts: 44
Joined: Fri Nov 18, 2016 1:12 pm
Platform: Mac + Linux

Sat Mar 31, 2018 8:53 am Post

Which hooks? If I look into the compile window, I must admit, I'm at a complete loss. What I really want is just a way to a) crawl up my binder to find an object that has a certain custom metadata field set to something; and b) call a script (applescript, shell script, or something) with the value of that metadata field.