-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlay Mode.scpt
47 lines (41 loc) · 1.36 KB
/
Play Mode.scpt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--==============
--turn Growl On
--==============
tell application "GrowlHelperApp" to launch
tell application "GrowlHelperApp"
set the allNotificationsList to {"Growl Toggler"}
register as application "Growl Toggler" all notifications allNotificationsList default notifications allNotificationsList
notify with name "Growl Toggler" title "Notifications ON" description "" application name "Growl Toggler" icon of application "Automator"
end tell
--==============
--Close timeEdition, iCal, and Backdrop
--==============
tell application "timeEdition" to quit
tell application "iCal" to quit
tell application "Backdrop" to quit
--==============
--Show Dock
--==============
tell application "System Events"
keystroke "d" using {command down, option down}
end tell
--==============
--Set Adium to Available
--==============
-- set to away
set theMessage to "Available"
tell application "Adium"
repeat with theAccount in accounts
set theStatus to status type of status of theAccount
(*
set theTitle to title of theAccount
set theDebugMessage to "Account: " & theTitle & " Status: " & (theStatus as string)
tell application "Finder" to display dialog theDebugMessage
*)
if (theStatus is available) then
go away theAccount with message theMessage
else if (theStatus is away) then
go available theAccount with message theMessage
end if
end repeat
end tell