Yep that’s exactly what I do in Preview your Tinderbox notes using Marked – export code edition
So you just have to decide what you want to export, and then figure out the how. But runCommand
is very useful for this sort of thing.
Yep! As Paul W. mentioned, the Publish from Tinderbox to DEVONthink
script uses that technique.
I tried two approaches: 1) building an AppleScript using Script Editor, and then running that file using runCommand
, and 2) generating the AppleScript within Tinderbox, and passing it to runCommand
. My experience is that the second way works better for passing information to the Script (because we simply embed it directly in the script). Reading command-line arguments and file input from AppleScript has been challenging for me. So while constructing the AppleScript from Tinderbox is conceptually a bit of a mind-bender, it ends up being more effective for accomplishing what I need to.
Anyway, what you want to accomplish should be possible… there are going to be simpler and more complex ways of doing it. So, either go for it or share some more info on what you want to accomplish, and I’ll do my best to share some ideas on how to go about it.