I’m trying to export my current document to a PNG using AppleScript. Whenever I run the following (seemingly simple?) script, OmniGraffle starts taking up more and more system RAM, and within a 20-30 seconds, has completely consumed available memory, until OS X makes me quit some application to continue using my computer. (oh, and the file isn’t actually exported)
What am I doing wrong here?
tell application "OmniGraffle" set theDocument to front document tell front document to export as "PNG" to file "Users:jcrystal:Desktop:test.png" scope entire document end tell