Q: Is there any way of enabling this behaviour for Scapple ?
I have written some scripts which parse both .scap file XML, and any Scapple content (com.scapple.internal.pboardType) in the clipboard.
These let me:
1. Create a linked Scapple sub-file for a selected node in a scapple diagram, and
2. Save as OPML with nested indents where the Scapple content is 'acyclic' (consists of tree-like structures rather than loops)
I would, however, also like to be able to script some graphic rearrangements - for example, updating note position information in the XML file to tidy a tree diagram while it is open, and get updates on the screen without having to repeatedly go through the Save -> Dialog -> Accept sequence.
On Scapple, the default behaviour when the XML of an open .scap is changed externally (by an another app or script) is:
- No immediate update of display, and
- user choice dialog on next Save,
Scapple does, however, automatically update the display when a .scap file is changed by a second running instance of Scapple
(We can open the same .scap in two different instances of the Scapple app using a Bash shell line like:
Code: Select all
open -n -a Scapple "$HOME/Desktop/dag.scap"
In other words:
1. Scapple CAN immediately update a display when it notices a file change,
2. But, by default, it only does so when the change is made by a process which is owned by another Scapple instance.
Is there any way of allowing it to accept file changes made by other processes, in the manner of BBEdit etc?