Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.13 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.13 KB

Freeplane "Desktop Actions" Addon

This add-on provides a script to open or browse files, directories and URIs using the java.awt.Desktop class: it looks for the associated application registered on the current platform, and launch it to handle the resource.

The "Open or browse resource.." action

First, it tries to resolve the text contained in the selected node to an URI resource or a path (be it an absolute or relative referring to a file or a directory).

For example, consider the following directory tree:

svu.mm
theme.mp3
/images
    benson.jpg
    stabler.jpg

Then, the following scenarios apply for the svu.mm map:

  • Opening a node containing the text images/benson.jpg or images/stabler.jpg launches the default image viewer for our viewing pleasure.
  • Opening a node containing the text theme.mp3 instead launches the default media player which plays that audio file, recommended.
  • Opening a node containing the text https://en.wikipedia.org/wiki/Law_%26_Order:_Special_Victims_Unit launches the default browser and displays the page.