An AppleScript so you can easily control Caffeine from Alfred App. You will need Alfred and the Powerpack to use this.
To install Caffeine Controls in Alfred double click on the extension file.
Once installed with Alfred you can run the following commands
caff :: Toggle caffeine on and off
caff on :: Turn caffeine on indefinitely
caff 5 :: Turn caffeine on for 5 minutes (the # can be changed to any number)
caff off :: Turn caffeine off
caff quit :: Quit caffeine (can also use 'caff end' or 'caff exit')
caff start :: Start caffeine (can also use 'caff init')
If caffeine is not active and you turn it on with either 'caff on' or 'caff #' or 'caff', it will automatically start the Caffeine application for you. You do not have to call 'caff start' first.
Big thanks to pfburno for his contributions and ideas for this extension (initial growl integration, toggle and easy-to-use turn on for 'x' minutes approach).
Two versions of the extension are available, one with Growl and one without. If you wish to use the one without Growl please install the 'Caffeine Controls No Growl.alfredextension' file.
- Added a non-growl version
- Fixed growl notification name to match earlier build
- Fixed double off syndrome
- Add start/end hashes
- Grouped on/off with toggle
- Moved init to where it belongs :)
- Huge code cleanup
- Toggle added - just type 'caff' with no param to toggle on and off
- Turn caffeine on for # minutes command modified: You no longer need the keyword on
- Growl notification support
- Initial Release