
- #Omniplan pro table edit update#
- #Omniplan pro table edit windows#
Testing and glitch reports particularly welcome on this one – its approach is in the tradition of Rube Goldberg and Heath Robinson GUI scripting.ĭoes seem to be working here, but no guarantees.
Kindle.app doesn't yield its book titles, locations and ASIN codes easily, so this sub-macro cycles through the app views, and puts up a notification to ask for a second or two of patience : - ).
Working here on Catalina 10.15.7, but will need some testing on other systems. MdLink => kme.setvariable('mdLink', )`Īdded a sub-macro to extend the Copy as MD Link macro to work with the macOS Kindle app. Kme = Application('Keyboard Maestro Engine'), 0.10.1įpFolder = '~/Library/Application Support/Obsidian',įpFullPath = combine(fpFolder)(fileName) MD link to file selected in Obsidian v. (The script here just throws up a message if this arises, so that one of the two vaults can be closed, allowing the user to try Copy as MD Link again, in an unambiguous context). and gets the file name and vault id from a couple of the JSON files which Obsidian maintains.Ī limitation which is, as far as I can see, built into the Obsidian scheme, is that if two different vaults (at different paths on the system) share a name, and are both open at the same time, it is not possible for a script to know which is the foregrounded vault. Reads the vault name from the front window,. This first draft ( which would need testing – I'm not making active use of Obsidian myself ): The Obsidian client seems to be a beta of a cross-platform Electron app, and slightly parsimonious in the data it exposes to macOS scripting #Omniplan pro table edit windows#
The current version of this macro can be downloaded from a Github repository:įull current list of sub-macros (extending the main macro to cover apps other than browsers, and app windows other than simple document windows):Īdded an md.obsidian sub-macro to extend the Copy as MD Link macro to work with: If there are any sub-macros here named after the bundle-ids of applications which you never use, you can simply disable or delete them.
#Omniplan pro table edit update#
Once you have added a new sub-macro to the MD Link tools group, you need to register it by running, just once, a special macro which is included in that group, called: Update map from bundleIDs to KM UUIDs (after new sub-macro added). The sub-macro should just place one or more markdown links for the selected item(s) in a KM variable named mdLink.
The name of the sub-macro should exactly match that of the application's bundle id. If the main macro doesn't immediately work with an application that you need, you may be able to ask me to see if I can write an additional app-specific sub-macro, or write one yourself. call the sub-macro is you are running a copy bought directly from Panic. call the sub-macro if you are running the App Store build of Transmit. If, for example, you need to Copy as MD Link in Panic's Transmit.app, the main macro will: ) and use any supporting sub-macro in the group which has that name. can also, for use with other applications, look up the Bundle identifier (e.g.
can get MD links, unassisted, from some browsers and from applications in which the front document is simply a file. various sub-macros (not stand-alone - they are called by the main one) with the bundle identifier names of specific apps. A main macro defining a single keystroke for use in a variety of different applications: Copy as Markdown link. This is a working draft of a group containing a main macro and a number of supporting sub-macros: A single keystroke (I happen to use ⌘⌥M) to copy selected items as Markdown links from a variety of browsers and other applications.