forked from leohackin/pomodoro-applescripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
end.pomo
42 lines (37 loc) · 1.32 KB
/
end.pomo
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
-- Created by Léo Hackin (leohackin at gmail.com), April 2011
--
-- # This file is free software. You are free to use this file in any way you like
-- # However, if you change it you should note in this file that you did and who
-- # you are, you also need to change the version string if you do. That way
-- # I will not get support questions for software that is not entirely mine.
--
-- end.pomo v.0.1a for Pomodoro 0.31 ou maior
--
-- AppleScript para fechar apps de redes sociais e colocar o Adium como AWAY
-- Uso:
-- Copie e cole o script no campo END e RESET do Pomodoro
-- acessíveis em Pomodoro -> Preferences -> Scripts
-- Extendendo:
-- Para adicionar a abertura de algum aplicativo
--
-- launch application "<nome-do-processo-da-app>"
--
-- O nome do processo do software pode ser acessado no Monitor de
-- Atividade (Activity Monitor). Geralmente ele tem a logo do app
-- ao lado ou um nome parecido.
-- twitter
launch application "Twitter"
-- adium
tell application "System Events" to if exists process "Adium" then
tell application "Adium"
go available
end tell
end if
-- things: conclui a task no things
tell application "Things"
repeat with toDo in to dos of list "Today"
if name of toDo is "$pomodoroName #" & ($dailyPomodoroDone-1) then
set status of toDo to completed
end if
end repeat
end tell