Hello, I'm relatively new to scripting, and need some help writing up a 
script that may need extension in the future. I write and compile LaTeX 
documents in BBEdit, and my workflow is  to create a build.sh (in the same 
folder) file with the following code that's enough to compile the latex 
code in the folder:

#!/bin/sh
latexmk -xelatex -verbose -pv

I was wondering if it was possible to create a script (stored in scripts 
folder) that is called every time I hit the keys Cmd+R together, *when the 
frontmost open text file is a .tex file*. In the future, I hope to extend 
this script for other filetypes. Anyone have any tips or a template script 
I can work with? 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/70fdee46-af19-458b-bbfb-d2fff1bbc2a8n%40googlegroups.com.

Reply via email to