Created
February 15, 2022 12:59
-
-
Save podratz/26c7236cb2964cefca20095ace8f13f1 to your computer and use it in GitHub Desktop.
MindNode2PDF
This file contains 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 characters
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