• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
TextEdit Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: FaceSpan?
  • Next by Date: Re: Compiled Script vs. compiled script
  • Previous by thread: Re: Scriptable Nisus beta only a few weeks off
  • Next by thread: Re: URL Access Scripting
  • Index(es):
    • Date
    • Thread