We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8683f5e commit e8c87a2Copy full SHA for e8c87a2
custom_iterm_script.applescript
@@ -1,11 +1,18 @@
1
+-- Change this property to true to always use a new window
2
+property open_in_new_window : false
3
+
4
on alfred_script(q)
5
tell application "iTerm"
6
if application "iTerm" is running then
- try
- tell the first window to create tab with default profile
- on error
7
+ if open_in_new_window is true then
8
create window with default profile
- end try
9
+ else
10
+ try
11
+ tell the first window to create tab with default profile
12
+ on error
13
+ create window with default profile
14
+ end try
15
+ end if
16
end if
17
18
delay 0.1 -- If we do not wait, the command may fail to send
0 commit comments