• Home
  • Directory
  • Answers
  • Geeky Fun
  • MakeUseOf Guides
  • Tech Deals

MakeUseOf.com

RSS Twitter Facebook
Subscribe to MakeUseOf. Now, 300105 members!
Aweber

How To Auto Shutdown The Computer (or Firefox) after Downloads Complete

by Varun Kashyap on Sep. 28th, 2009

I am a download junkie. I have to schedule downloads to start late at night (because of the Internet Plan). So, naturally I am a huge fan of any auto shutdown software that has the ability to shutdown the computer once the downloads are complete.

Most download managers have it, µtorrent has it and they are perfect for my need. There has always been a great void in this setup due to Firefox. Many a time, I have files downloading in Firefox but no way to auto-shutdown the computer. Some time back, I hacked together an auto script that would sit there and wait for the Firefox’s ‘Downloads finished’ notification to appear, it would then close Firefox and shutdown the computer. Lame I know, but it did the trick.

Recently, however, I found an excellent addon that lets you do schedule auto shutdowns in Firefox and a whole lot more, its (aptly) called Auto-Shutdown. The addon is auto shutdown software that provides you with a number of options to perform precisely the action you want once the downloads have completed. You can play sounds, clear downloads, shutdown, logoff, restart your computer or run any command or multiple commands through a script.

Auto Shutdown is available at AMO, it works with Firefox version 3 and upwards. Once installed, the auto shutdown software will add a power icon to the status bar. You can remove the icon if you desire, however it provides quick access to its options and can be used to enable auto-shutdown in a flash.

You can use the built-in commands for basic needs like shutdown, hibernate, stand by, etc. There are different versions of these commands for different version of Windows and Linux and Mac.

Apart from the built-in commands you can do almost anything with Auto Shutdown. You can run any JavaScript code or any external application when the downloads finish or when the computer is idle while Firefox is downloading the files. To run custom commands or JavaScript code:

  • Go to the Customize tab within Auto Shutdown settings.
  • Type in your code in the lower text area surrounded by <javaScript> </javaScript> tags or <shell> </shell> tags depending on what you are planning to achieve.

  • Click Save As and assign the script to User Command 1 or User Command 2

  • Choose User Command 1 or User Command 2 from Adjust shutdown Command drop down list towards the top.

You can easily pass arguments to external applications and Auto Shutdown also provides you with certain reserved words that can be used in your scripts to refer to special locations and files. %sysRoot%, for example, refers to the Windows/system32 directory and %WinD refers to the Windows directory. The complete list is available here.

You can also choose the amount of time Auto Shutdown waits before executing the commands after the downloads have finished. Auto Shutdown will display a countdown for that specified time, allowing you to save any work if you have been working along or cancel the download altogether. You can force Firefox to exit when the command is eventually triggered and choose to restore the session, the next time Firefox is started. If you use DownThemAll, Auto Shutdown has you covered and can monitor DownThemAll as well.

Auto Shutdown is a dream come true if you ever leave the computer running only to let the downloads complete. With Auto Shutdown, you can now automatically close the browser or shutdown the system when downloads complete. Give it a spin and let us know what you like or dislike.

Do you have some clever ways of your own to automatically shutdown the computer after downloads complete? Let us know in the comments.

(By) Varun Kashyap - Programmer, Blogger and Tech Enthusiast, who tweets @VarunKashyap and blogs about tips, tricks and latest on the web at TechCrazy Blog

ShareThis

 

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:

Want a New HP LaserJet MFP? Trade in your old printer and receive up to $1,000 in saving on a new HP LaserJet Multifunction Printer. Click here for savings!

Similar Articles

  • 10 Free MP3 Albums To Download [Sound Sunday]
  • Vimperator – A Hardcore Firefox Add-On For Minimalists
  • Say Goodbye to Repetitive Typing on Linux with Autokey
  • 10 Free MP3 Albums To Download [Sound Sunday]
  • Greasefire Shows Which Greasemonkey Scripts Work On Websites You Visit [Firefox]
  • TimeComX Runs Selected Actions or Programs on Set Time [Windows]
  • Watch Folders & Convert Video Files with DropFolders & HandBrake
  • How To Make Your Firefox Browser Start Up Faster
More about: automate . downloads . firefox . firefox addons . windows shutdown

The comments were closed because the article is more than 90 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

View Comments

2009-09-29 03:39:15
CLIfan

What about:
shutdown -s -t [whatever] -f under Windows?
Something similar under Linux (can’t remember the syntax right now…)

(Comments wont nest below this level)
2009-09-29 05:38:47
Shahab khan

A big limitation with Auto shutdown is that you are bound to work on firefox. So i think there should be some tool which could work irrespective of the browsers.

(Comments wont nest below this level)
2009-09-30 00:29:19
Alyssa Myers

Thanks for the tips!

(Comments wont nest below this level)
2009-09-30 08:01:08
r4 carte

very useful tips here provide and such a very important for me, I am very impressive with this articles I read all the steps.. Thank you..

(Comments wont nest below this level)
2009-10-01 05:52:33
laptopxpert

“Some time back, I hacked together an auto script that would sit there and wait for the Firefox’s ‘Downloads finished’ notification to appear, it would then close Firefox and shutdown the computer. Lame I know, but it did the trick.”

No need to be so humble. I think this script would be more useful than the add on. Can you please provide the script here ? Probably offer it as freeware on some site or add another chapter on it on this site. I am quite interested in it.

(Comments wont nest below this level)
2009-10-28 19:37:34
DirtyViolator

Windows 3.1? Really? I wasn’t aware you could even run Firefox on that OS.

(Comments wont nest below this level)

The comments were closed because the article is more than 90 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

blog comments powered by Disqus
Advertise Here
TopicsMUO Guides
  • Browser Tips
  • Cool Software
  • Web Apps
  • Best of Lists
  • How-To Tips
  • Windows
  • Mac
  • Linux
  • Gaming
  • Mobile Apps
  • Polls
  • Geeky Fun
  • BitTorrentThe Easy Guide
  • iPhoneUnofficial Manual
  • iTunesThe Big Book
  • LinuxGetting Started
  • MacBeginner's Guide
  • MoviesFor Movie Addicts
  • PC BuildingThe Idiot's Guide
  • ProductivityProductivity Guide
  • PhotoshopThe Idiot's Guide
  • TwitterBest Tips & Tricks
  • More Guides
Follow us on Twitter
Be Our Friend on Facebook
MakeUseOf Staff
Editors:
  • Editor in ChiefAibek Esengulov
  • MakeUseOf Directory's EditorKaly
  • Managing EditorMark O'Neill
  • Assistant EditorJackson Chung
  • MUO WP GuyJorge Sierra
  • PDF ManualsJustin Pot
  • Promotion & SEORyan Dube
  • MakeUseOf NewsletterSaikat Basu
  • MakeUseOf Answers EditorTina Sieber
Staff Authors:
  • Tina Sieber
  • ( timbrookes.co.uk )Tim Brookes
  • ( The Things I Do )Saikat Basu
  • ( simonslangen.com )Simon Slangen
  • ( Free Writing Center )Ryan Dube
  • ( Super Subconscious)Jeffry Thurana
  • ( Mac Photography Tips )Bakari Chavanu
  • ( timmyjohnboy.com )Tim Lenahan
  • ( JustinPot.com )Justin Pot
  • ( Social Branding Blog )Steven Campbell
  • ( diptychal )Nancy Messieh
  • ( SmidgenPC )Matt Smith
  • Jessica Cam Wong
  • ( SEO Smarty )Ann Smarty
  • ( Net Savoir )Angela Alcorn
  • Other Active Authors ...
© 2010 MakeUseOf. Designed by kailoon About UsContactAdvertiseSubmit AppArchivesMobilePrivacy