![]() ![]() 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 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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |