Use AppleScript version "2.4" - Yosemite (10. # The AppleScript version can be used in an automation tool (FastScripts,Keyboard Maestro, BetterTouchTool, etc.) # the clipboard without using Hook's Global Shortcuts or UI # Copies a markdown link for the active window to Then the script will target the previous app which was active before Script Editor was made the active app to run the Script. To change the script, delete the (* and *) characters where shown. If you use an app like Script Editor to run the Script, the script needs to be changed, because the current active app (frontmost) at execution is not the active app for Hook to target. If you use FastScripts with a global Shortcut set for the same combination as Hook uses for Copy Markdown Link (but with Hook’s disabled), it should all mimic using Hook. By default the script expects to be run just like Hook (i.e. The following script should do that for you. That script is about working with a Markdown link already on the clipboard.įrom the video it seems what you may need is an alternative to Hook’s Copy Markdown Link because Hook’s global shortcuts are not working as expected? Set Įnd The above Script can be modified to work with all apps and I will post that later. If you copy a twenty-fifth item, the first item on the Office Clipboard is deleted. The Office Clipboard can hold up to 24 items. Continue copying items from the same or other files until you have collected all of the items that you want. Select the first item that you want to copy, and press CTRL+C. If (count of _theParts) > 1 then - link is a markdown link (url) Open the file that you want to copy items from. Set _link to my findReplace(_link, searchEscape, "") Set _title to my findReplace(_title, searchEscape, "") Property subStrMarker : "](" - marker for splitting markdown link parts Use AppleScript version "2.4" - Yosemite (10.10) or later Modified version of Brett Terpstra's script "Hook to Clipboard" Handles Hook's Copy link and Copy Markdown link Feel free to message me if you have any questions - Make bookmark with Hook link copied to clipboard It has had brief testing using Hook’s Copy Link and Copy Markdown Link including Titles full of escaped characters. Give this script a try should do the job.
0 Comments
Leave a Reply. |