-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmy_timer.applescript
More file actions
32 lines (22 loc) · 675 Bytes
/
Copy pathmy_timer.applescript
File metadata and controls
32 lines (22 loc) · 675 Bytes
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
# Script Name : my_timer
# Author : Craig Richards
# Created : 28th May 2013
# Last Modified :
# Version : 1.0
# Modifications :
# Description : This sets up the timer with custom minutes
-- Display a prompt to get the minutes you want to set it for
display dialog "Minutes" default answer ""
set minutes to (text returned of result)
-- Activate the application
tell application "TimerByTen" to activate
--Sleep while the application loads
delay 5
-- Set the application to run for the minutes given
tell application "System Events"
keystroke "0"
repeat minutes times
keystroke "m"
end repeat
keystroke space
end tell