groups

name language licence
Cleanup @ Entries - Address Book AppleScript Other
Detect Name Switch - Address Book AppleScript Other
ShellCommand AppleScript Other
theme_open AppleScript Other
Google_Search AppleScript Other
RapidWeaver_Addons_version AppleScript Other
check_safari_page_loaded_handler AppleScript Other
On-Off_AppToggle AppleScript Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 >



language: AppleScript
licence: Other

On-Off_AppToggle

options: view full snippetsend to code collector
-- On-Off App Toggle

-- By Adam Merrifield <http://www.seydoggy.com>
-- r1 10-02-09 11:04

-- replace "YourAppName" with your app
set yourApp to "YourAppName"

-- leave the rest to us
if appIsRunning(yourApp) then
	tell application yourApp to quit
else
	tell application yourApp to activate
end if

	
(Continues...)