• 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 not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events not working


  • Subject: Re: System Events not working
  • From: John Delacour <email@hidden>
  • Date: Mon, 7 Apr 2003 19:40:07 +0100
  • Mac-eudora-version: 6.0a14

At 2:11 pm -0400 7/4/03, Robert C. Jacobson wrote:

tell application "System Events"
tell process "Finder"
tell menu bar 1
click menu item "Minimize Window" of menu "Window"
end tell
end tell
end tell

Am I missing something real basic here?


It works fine here, provided you bring the Finder to the front first, and you can do the whole thing more economically like this:


tell app "System Events" to tell process "Finder"
set frontmost to true
keystroke "m" with command down
end


--JD
_______________________________________________
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:
    • Font Reserve Scripts Anyone?
      • From: Xandra Lee <email@hidden>
    • Re: System Events not working
      • From: Andrew Oliver <email@hidden>
References: 
 >System Events not working (From: "Robert C. Jacobson" <email@hidden>)

  • Prev by Date: osascript and parameters?
  • Next by Date: Re: I must be Daft! (creating a new text file)
  • Previous by thread: System Events not working
  • Next by thread: Re: System Events not working
  • Index(es):
    • Date
    • Thread