废话不多说,直接上才艺
tell application "iTerm"
activate
create window with default profile command "~/Library/Android/sdk/emulator/emulator @AVD"
end tell
tell application "Terminal"
activate
do script "~/Library/Android/sdk/emulator/emulator @AVD"
end tell
// 会打开两个窗口(一个默认打开的,一个窗口1)
tell application "Terminal"
activate
tell window 1
activate
do script "~/Library/Android/sdk/emulator/emulator @AVD"
end tell
end tell