Skip to content

Instantly share code, notes, and snippets.

@podratz
Created February 15, 2022 12:59
Show Gist options
  • Save podratz/26c7236cb2964cefca20095ace8f13f1 to your computer and use it in GitHub Desktop.
Save podratz/26c7236cb2964cefca20095ace8f13f1 to your computer and use it in GitHub Desktop.
MindNode2PDF
set mindNodeFile to choose file
set fileExtension to "mindnode"
tell application "/Applications/MindNode.app"
open (mindNodeFile as alias)
set mindNodeDocument to document 1
set fileName to POSIX path of (mindNodeFile as alias)
set baseName to (characters 1 thru -((count of fileExtension) + 3) of fileName) as string
set exportFile to ((baseName & ".pdf") as POSIX file)
tell mindNodeDocument to export to exportFile as PDF
close window 1 without saving
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment