Skip to content

Instantly share code, notes, and snippets.

on open dropped_dir
tell application "Terminal"
set dirname to do shell script "perl -e \"print quotemeta ('" & POSIX path of item 1 of dropped_dir & "');\""
do script "cd " & dirname & "; ipython notebook --pylab; exit"
end tell
end open