nadimtuhin
5/14/2017 - 3:41 PM

opens three split screens in iterm one builds app, one starts backend server and one starts react native server

opens three split screens in iterm one builds app, one starts backend server and one starts react native server

tell application "iTerm"
	set newWindow to (create window with default profile)
	
	tell current session of current window
		set append to (split vertically with default profile)
		set backend to (split vertically with default profile)
	end tell
	
	tell current session of current window
		write text "cdca"
		write text "yarn run i"
	end tell
	
	tell append
		write text "cdca"
		write text "yarn start"
	end tell
	
	tell backend
		write text "cdcb"
		write text "yarn run dev"
	end tell
	
	activate application "iTerm"
end tell