Skip to content

Instantly share code, notes, and snippets.

rcconsult / index.html
Last active Feb 6, 2019
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>A Pen by Radovan Chytracek</title>
<link rel="stylesheet" href="css/style.css">
rcconsult / iterm.scpt
Created May 30, 2018 — forked from gnachman/iterm.scpt
Replace /Applications/Docker/Docker Quickstart with this.
View iterm.scpt
set itermRunning to (application "iTerm" is running)
set scriptPath to quoted form of POSIX path of ((path to me as text) & "::" & "")
set user_shell to do shell script "dscl /Search -read /Users/$USER UserShell | awk '{print $2}'"
tell application "iTerm"
if not (exists window 1) or (itermRunning = false) then
end if