I'm writing an AppleScript to export objects on 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 every canvas of alias "[path of file chosen]". Any idea why?
Code:
set myDocument to (choose file with prompt "Select an Omnigraffle file") tell application "OmniGraffle 5" open myDocument set numCanvas to count of canvases of myDocument end tell