Mac Apps For Toggles

With Apple TV, you can mirror the entire display of your Mac to your TV, or use your TV as a separate display. To turn on AirPlay, follow these steps: Make sure that your TV is turned on. Choose in the menu bar, then choose your Apple TV. If an AirPlay passcode appears on your TV screen, enter the passcode on your Mac.

  1. Mouse Toggle App
  2. Mac Apps For Toggles Desktop

Description

Here's a very simple script that might come in handy -- especially for all you Alfred and LaunchBar users!

This AppleScript lets you quickly check to see if an application is running and 'toggle' it on or off. (If it isn't running, it launches it. If it is running, it quits the application. It's perfect for quickly opening and closing apps like PasteBot which run as a Menu Extras (a.k.a., menulets) or for apps that run in the background.

To use it, change the property app_Name to the name of the application you'd like to toggle on/off. Save the script as an application and double-click it to toggle the app -- or you can trigger it via a keyboard-driven launcher app (like Alfred or LaunchBar). Note: Many launcher apps allow you to pass information to an AppleScript. This will allow you to modify this script to toggle more than one app. See the instructions of your launcher app for details on how to do this!

The Code

Mouse Toggle App

Mac Apps For TogglesDownload toggle app free

Mac Apps For Toggles Desktop

(*
Veritrope.com
APP TOGGLE
Version 1.0
January 13, 2012
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/code/toggle-an-app-on-off
// CHANGELOG:
1.0 INITIAL VERSION
// RECOMMENDED INSTALLATION INSTRUCTIONS:
-- Change the property below for app_Name to the
name of the application you'd like to toggle on/off.
-- Save as an application and trigger via
a keyboard-driven launcher app (like Alfred or LaunchBar).
-- Note: Many launcher apps allow you to pass information
to an AppleScript. This will allow you to modify this script
to toggle more than one app See the instructions of
your launcher app for details on how to do this!
*)

(*
// USER SWITCHES (YOU CAN CHANGE THESE!)
*)

--ENTER THE NAME OF THE APP
--THAT YOU WOULD LIKE TO TOGGLE
--IN THE PROPERTY BELOW...
property app_Name : '
(*
// MAIN PROGRAM
*)

if appIsRunning(app_Name)then
do shell script'killall '&(quoted formof app_Name)
else
do shell script'open -a '&(quoted formof app_Name)
endif
(*
// MAIN HANDLER SUBROUTINES
*)

on appIsRunning(appName)
tellapplication'System Events'to(nameof processes)contains appName
end appIsRunning