[Pythonmac-SIG] How does AppleScript find unqualified properties?

Jack Jansen Jack.Jansen at cwi.nl
Wed Dec 3 04:44:11 EST 2003


On 2 Dec 2003, at 22:45, has wrote:

>> Does anyone know what goes on here? For some reason I cannot run the
>> script (I get "OmniGraffle got an error:
>> NSCannotCreateScriptCommandError"),
>
> Works fine here. Dunno why you'd be getting that error. (e.g. You'll
> get an NSContainerSpecifierError if there's no documents present when
> you execute it, but that's what you'd expect.)

Found out with the help of dsp later yesterday: I'm running OmniGraffle 
3 and
the original author was probably running omnigraffle 2.

In v3 you have to say
tell front document of application "OmniGraffle"
	set shp to make new shape at end of graphics of page 1 with properties 
¬
		{origin:{100, 100}, size:{20, 20}, draws
shadow:false, name:"Circle"}
end tell

--
Jack Jansen        <Jack.Jansen at cwi.nl>        http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Pythonmac-SIG mailing list