I'm writing an AppleScript to export individual layers in Omnigraffle. It opens the file as it's supposed to, but then at line 4, I get an error: "OmniGraffle 5 got an error: Can’t get alias "[path of file chosen]". Any idea why?
set myDocument to (choose file with prompt "Select an Omnigraffle file")
tell application "OmniGraffle 5"
open myDocument
set myCanvas to canvas 1 of myDocument
end tell