Created
January 11, 2021 22:00
-
-
Save cer/6023ec01961cad6479f57bb3df40c306 to your computer and use it in GitHub Desktop.
Applescript for exporting omnigraffle file as PNG
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 characters
on convertGraffleFile(graffleFile, outputFile) | |
tell application "OmniGraffle" | |
close every document | |
open graffleFile | |
tell front document to export as "PNG" to POSIX file outputFile scope all graphics | |
close front document | |
end tell | |
end convertGraffleFile | |
on run argv | |
convertGraffleFile(item 1 of argv, item 2 of argv) | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment