Skip to content

Instantly share code, notes, and snippets.

@kyagi
Created October 16, 2012 16:01
Show Gist options
  • Select an option

  • Save kyagi/3900214 to your computer and use it in GitHub Desktop.

Select an option

Save kyagi/3900214 to your computer and use it in GitHub Desktop.
bookmark.command on mac using wish (tcl/tk)
#!/bin/sh
# the next line restarts using wish \
exec wish "$0" "$@" &
button .b0 -text "github" -command "exec open https://github.com/"
button .b1 -text "bitbucket" -command "exec open https://bitbucket.org/"
button .b2 -text "login - serverA" -command "exec serverA.scpt"
button .b3 -text "iterm" -command "exec open -a /Applications/iTerm.app"
pack .b0 .b1 .b2 .b3 -fill x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment