• 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: System Events Info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events Info


  • Subject: Re: System Events Info
  • From: Emile Schwarz <email@hidden>
  • Date: Tue, 10 May 2005 18:06:50 +0200

Hi,

email@hidden wrote:
Subject: Re: System Events Info
To: Simon Forster <email@hidden>
Cc: email@hidden
Message-ID: <BEA6958B.11E7A%email@hidden>
Content-Type: text/plain; charset="US-ASCII"

Thanks, what I want to do is close a specific window in the finder. I have
tried

Tell application "System Events"
  close window "Dev"
End tell

  But then for an error NSReceiverEvaluationScriptErr: 4  :-( . "Dev" is the
name of the window in the finder which is of path "/Volumes/Dev".

Any idea's - I like the keystroke approach, but not sure how I get it to be
directed at a particular window.

What about

close front window of application "Application-Name"

?


For the System Events dictionary, you can use "Open a dictionary" in the File Menu (something like that) and if you use Tiger, use the new MenuItem Bibliotheque (something like that) from the Window Menu (Command-Shift-L) to make that window appears. A double click in the System Events entry opens its dictionary.



HTH,

Emile

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: System Events Info
  • Next by Date: Re: Write Unicode characters to HTML
  • Previous by thread: Re: System Events Info
  • Next by thread: Re: System Events Info
  • Index(es):
    • Date
    • Thread