• 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
Re: Make New Window scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make New Window scripting problem


  • Subject: Re: Make New Window scripting problem
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 29 Jan 2004 22:48:49 +0100

Michelle Steiner wrote:

tell application "TextEdit" to make new window

--> "TextEdit got an error: NSArgumentsWrongScriptError"


TE seems to be more document-oriented than window-oriented, as if a windows were just there to display documents.
Well, after all, why not?
But it also likes the "at somewhere"... ;-)
So, this works:

tell application "TextEdit" to make new document at beginning



Same error with script editor, mail, and safari.


The same applies to SE and Safari, and even without the "at somewhere"; for example:

tell application "Safari" to make new document

As far as Mail is concerned, I couldn't guess :-(



It works with BBEdit 6.5

-- Michelle

Axel
_______________________________________________
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.

  • Follow-Ups:
    • Re: Make New Window scripting problem
      • From: Christopher Stone <email@hidden>
References: 
 >Make New Window scripting problem (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Make New Window scripting problem
  • Next by Date: Re: AppleScripting with Safari
  • Previous by thread: Re: Make New Window scripting problem
  • Next by thread: Re: Make New Window scripting problem
  • Index(es):
    • Date
    • Thread