-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.osx
executable file
·51 lines (40 loc) · 1.23 KB
/
run.osx
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
48
49
50
#!/bin/sh
CWD=`pwd`
osascript<<END
set thePath to "$CWD"
tell application "Terminal"
activate
tell application "System Events"
keystroke "t" using {command down}
end tell
do script "cd $CWD/device" in selected tab of the front window
do script "make start" in selected tab of the front window
end tell
tell application "Terminal"
activate
tell application "System Events"
keystroke "t" using {command down}
end tell
do script "cd $CWD/hotel" in selected tab of the front window
do script "make start" in selected tab of the front window
end tell
tell application "Terminal"
activate
tell application "System Events"
keystroke "t" using {command down}
end tell
do script "cd $CWD/admin" in selected tab of the front window
do script "make start" in selected tab of the front window
end tell
tell application "Safari"
tell window 1
delay 10
set current tab to (make new tab with properties {URL:"http://localhost:3000"})
delay 10
set current tab to (make new tab with properties {URL:"http://localhost:4000"})
delay 10
set current tab to (make new tab with properties {URL:"http://localhost:5000"})
delay 10
end tell
end tell
END