I have a problem with specific apps, but it should interest forum members who regularly have to ping pong files between 2 apps.
I often work in 2 apps:
one is an outline app, the excellent OmniOutliner Pro
the other is a Mind Mapping app called Simple Mind Pro which makes complex outlines much easier to read and to use as decision trees.
See example below.
I would like to create a macro which would allow me to automate the tedious process of constantly exporting importing, etc as per the following:
Outline app ➤ create outline ➤ save outline ➤ export outline as .opml ➤ close outline ➤ open MindMapping app ➤ import .opml outline ➤ make any changes ➤ save, export as .opml and close ➤ reopen in outliner etc
Best way is to create a temporary folder (name it Tmp or _Tmp or whatever) at the root of your Home directory. That way it is outside of iCloud Documents Sync, but, besides that, the system (and KM) will treat it just as any other folder in your Home directory.
Then, for testing macros, scripts, etc. just copy-drag the whole folder hierarchy of one of your real data folders into that Tmp folder. That way you can test your stuff on a perfect clone of the file/folder tree, and all you need to do, once the macro is finished, is to change the root directory variable in the macro. (From Tmp to the directory where your real files are located).
For additional convenience set up Hazel so that it cleanse that Tmp folder. For example make it remove any file that has not been opened in the last two weeks and delete any empty folder that hasn’t been touched in the last two days. Or so.