Created
October 14, 2023 15:54
-
-
Save narath/3bbff31f42f31853a3e2b78bb5ae6f91 to your computer and use it in GitHub Desktop.
Revisions
-
narath created this gist
Oct 14, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ To implement this: - add get_name.scp to the Get Name script in HookMark > Settings > Scripts > FreePlane > Get Name - update get_address.scp for the Get Address script - Save Should work. Nice to have: FreePlane has a Copy > Copy URI which copies a URI to the current node. It might be nice to copy this which would let you link directly to a particular node (as opposed to just the map). This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ tell application "System Events" set window_name to title of first window of (first application process whose frontmost is true) set AppleScript's text item delimiters to {" - Freeplane - Mind map mode "} set delimitedList to every text item of window_name if ((count of delimitedList) is equal to 2) then set myTitle to item 1 of delimitedList if myTitle ends with "*" then set myTitle to text 1 thru ((length of myTitle) - 1) of myTitle end if set myUrl to item 2 of delimitedList end if return myUrl end tell This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ tell application "System Events" set window_name to title of first window of (first application process whose frontmost is true) set AppleScript's text item delimiters to {" - Freeplane - Mind map mode "} set delimitedList to every text item of window_name if ((count of delimitedList) is equal to 2) then set myTitle to item 1 of delimitedList if myTitle ends with "*" then set myTitle to text 1 thru ((length of myTitle) - 1) of myTitle end if set myUrl to item 2 of delimitedList end if return myTitle end tell