Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Task Scheduler Windows 7 task that invokes firefox.exe on a URL which is an iMacro. Upon completion, the firefox window is left open. I always have firefox running, but it brings up a new window, not sure if this is a new instance of firefox, or a second window. Upon completion of the macro, I'd like the extra window closed. The extra window has a blank tab and a tab for the macro that ran.

How can I set up the task to clean up after itself?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

This needs to be supported by Firefox, or the web page needs to use JavaScript to close the browser window after it's completed.

Do look into the command-line switches though, because the "-remote" switch may let you specify a JavaScript command that can delay then close the window for you. You'll have to do some research into this though, and one helpful starting point may be this web page: http://developer.mozilla.org/en/Command_Line_Options

I hope that helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.