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

Er, never mind. Sorry for the inconvenience.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.