OmniGraffle New Document
OmniGraffle New Document
- Subject: OmniGraffle New Document
- From: Jesse Shanks <email@hidden>
- Date: Sun, 12 May 2002 23:19:40 -0700
on 5/12/02 10:02 PM, email@hidden at
email@hidden wrote:
>
The best bet in applescript is just to write down what you think to yourself
>
and see if it works, in this case, you said make new document, so ...
>
>
tell application "OmniGraffle"
>
make new document
>
end tell
This gets:
OmniGraffle got an error;
NSCannotCreateScriptCommandError
This:
tell application "OmniGraffle"
make at front of documents new document
end tell
Changes to:
tell application "OmniGraffle"
make at before every document new document
end tell
In the Event Log and doesn't get an error but nothing happens, meaning no
new document is created.
When I was testing it, I went through all the permutations that I could
think of.
This:
tell application "OmniGraffle"
set t to make at front of windows new window
return t
end tell
Returns a window id, but doesn't create a window.
The dictionary says:
make
at anything -- The location at which to insert the object.
new integer -- The class of the new object.
[with data anything] -- The initial data for the object.
[with properties record] -- The initial values for properties of
the object.
Result: reference -- the reply for the command
It's a puzzler. I suppose I could as somebody at The Omni Group. Just
haven't had time.
--
Jesse Shanks
Writer & Web Developer
http://www.blankreb.com
email@hidden
530.886.0815
-
http://www.catsprite.com
http://www.digitallyobsessed.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.