Have you ever wished you could write in Tinderbox, and preview your notes using Marked? Now you can!
This document demonstrates how. You can find the main action code in
Preview in Marked.
To use it, make sure you have Marked installed on your machine. Then enable the
MyBoolean checkbox above. This triggers an edict which does the following:
- It creates a temporary file and writes the note
$Textto the file
- It checks to see if Marked is previewing the temp file. If not, it tells Marked to preview it.
Now change the note content. When the edict runs, Marked will refresh the note preview.
The simplest way to re-trigger the edict is to command-tab away from Tinderbox, and then command-tab back to it.
(It seems as though Tinderbox doesn’t trigger an edict run when the
If you close the Marked preview window, it won’t come back automatically. This is because the action code uses lsof to determine whether the file is open, and Marked doesn’t release the file until it quits completely. So, to get the preview window back, you have to quit Marked.
$MyBoolean so that this example document will work out of the box (assuming you have Marked installed). You may want to change the attribute names.
The action code only writes
$Text to the temp file, but you could get more sophisticated and use