On 8/14/20 at 9:33 AM, [email protected] (consiglieri) wrote:

The problem I am having is that when running pandoc script in bbedit script folder to convert a markdown file to pdf BBedit saves the generated pdf in a root folder and not in the same folder as the mark-down file.,

One presumes that if you have the path for the Markdown file you're processing (however you came by it), deriving the path for the generated PDF should be possible.

BB_DOC_PATH (as I said, it is set when running scripts from the Scripts menu, at least in current versions) doesn't really figure in to that calculation.

I suggest modifying your script to use `printenv` to dump the whole environment, and inspect the output when running from the Scripts menu.

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
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/r480Ps-10146i-A9069F71F3B846E28DB5A4F348174A87%40Stormwind.local.

Reply via email to