• 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: Q: FireFox Close Window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: FireFox Close Window?


  • Subject: Re: Q: FireFox Close Window?
  • From: "Jonathan Levi, M.D." <email@hidden>
  • Date: Fri, 24 Aug 2007 22:34:25 -0400

On Thu, 16 Aug 2007 11:07:26 -0400, Marc Glasgow <email@hidden> wrote:
I know FireFox has a very weak dictionary (weakest I've ever seen), but I would expect it would at least support the standard windowing commands (argg!).

To minimize the issue at hand to just the relevant issues, does
anyone know how to tell FireFox to close either the front window or
all windows, without quitting the app?

The following (tested once!), using System Events, closes FireFox's front window:


tell application "System Events" to tell process "firefox-bin"
	set frontmost to true
	keystroke "w" using command down
end tell

HTH,

Jonathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: getting duplicates in a list by item id
  • Next by Date: Re: Reading and writing records
  • Previous by thread: Re: Q: FireFox Close Window?
  • Next by thread: Zip Multiple File Headaches
  • Index(es):
    • Date
    • Thread