TextEdit Dictionary
TextEdit Dictionary
- Subject: TextEdit Dictionary
- From: John Delacour <email@hidden>
- Date: Sun, 2 Mar 2003 23:46:38 +0000
- Mac-eudora-version: 6.0a8
TextEdit's dictionary says this:
make: Make a new object.
make
[at location reference] -- The location at which to insert the object.
new type class -- 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
This suggests to me that the location reference is optional and that
the word "new" is required.
well "new" has always been redundant, and in the case of TextEdit the
location reference (for some extraordinary reason) is actually
required.
The dictionary should read:
make: Make a new object.
make (new) type class -- The class of the new object.
at location reference -- The location at which to insert the object.
[with data anything] -- The initial data for the object.
[with properties record] -- The initial values for properties
of the object.
Result: reference -- a reference to the newly created object
Here are two examples:
tell application "TextEdit"
make window at end of windows -- no "new"
end tell
--> window id 27700 of application "TextEdit"
tell application "TextEdit"
try
make document
on error e
e
end try
end tell
-->"NSArgumentsWrongScriptError"
_______________________________________________
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.