mirror of
				https://github.com/tmux-plugins/tmux-continuum.git
				synced 2025-11-04 00:07:32 +00:00 
			
		
		
		
	Fix syntax errors in auto-start osx iterm script
Fix AppleScript syntax errors in iterm automatic start osx script: * 102:110: syntax error: Expected end of line but found identifier. (-2741) * 60:64: syntax error: Expected end of line but found identifier. (-2741) * 155:159: syntax error: Expected end of line but found identifier. (-2741)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							26afaffb2c
						
					
				
				
					commit
					fa60087d41
				
			@@ -10,7 +10,7 @@ start_iterm_and_run_tmux() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		# open iterm window
 | 
							# open iterm window
 | 
				
			||||||
		try
 | 
							try
 | 
				
			||||||
			set _session to current session of current terminal
 | 
								set _session to current session of current window
 | 
				
			||||||
		on error
 | 
							on error
 | 
				
			||||||
			set _term to (make new terminal)
 | 
								set _term to (make new terminal)
 | 
				
			||||||
			tell _term
 | 
								tell _term
 | 
				
			||||||
@@ -31,7 +31,7 @@ resize_window_to_full_screen() {
 | 
				
			|||||||
	osascript <<-EOF
 | 
						osascript <<-EOF
 | 
				
			||||||
	tell application "iTerm"
 | 
						tell application "iTerm"
 | 
				
			||||||
		set winID to id of window 1
 | 
							set winID to id of window 1
 | 
				
			||||||
		tell i term application "Finder"
 | 
							tell application "Finder"
 | 
				
			||||||
			set desktopSize to bounds of window of desktop
 | 
								set desktopSize to bounds of window of desktop
 | 
				
			||||||
		end tell
 | 
							end tell
 | 
				
			||||||
		set bounds of window id winID to desktopSize
 | 
							set bounds of window id winID to desktopSize
 | 
				
			||||||
@@ -48,7 +48,7 @@ resize_to_true_full_screen() {
 | 
				
			|||||||
		# short wait for iTerm to gain focus
 | 
							# short wait for iTerm to gain focus
 | 
				
			||||||
		delay 0.1
 | 
							delay 0.1
 | 
				
			||||||
		# Command + Enter for fullscreen
 | 
							# Command + Enter for fullscreen
 | 
				
			||||||
		tell i term application "System Events"
 | 
							tell application "System Events"
 | 
				
			||||||
			key code 36 using {command down}
 | 
								key code 36 using {command down}
 | 
				
			||||||
		end tell
 | 
							end tell
 | 
				
			||||||
	end tell
 | 
						end tell
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user