• 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: Simon Forster <email@hidden>
  • Date: Tue, 10 May 2005 16:35:47 +0100


On 10 May 2005, at 16:20, Mark Thomas wrote:

Can somebody say on which application, I need to go to get the AppleScript
dictionary on system events, as I have seen some of the samples mentioned
here using this, and I'm wondering if I could send click's in the close box
for particular windows via this mechanism, would that correct ?.

System Events!

The easiest thing to do is probably to make sure that the window you want to close is frontmost and then:

tell application "System Events"
keystroke "w" using command down
end

HTH

Simon Forster
_____________________________________________________
 LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
 Tel: +44 (0)70 9230 5244   Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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


  • Follow-Ups:
    • Re: System Events Info
      • From: Mark Thomas <email@hidden>
References: 
 >System Events Info (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: [OT] PGP Desktop 9.0
  • Next by Date: Re: Write Unicode characters to HTML
  • Previous by thread: System Events Info
  • Next by thread: Re: System Events Info
  • Index(es):
    • Date
    • Thread