Save something like this as an application in AppleScript Editor:
activate application "SystemUIServer" -- http://www.openradar.me/9406282
tell application "Finder"
activate
set p to POSIX path of (insertion location as text)
end tell
tell application "Terminal"
activate
do script
repeat while contents of window 1 starts with linefeed
delay 0.01 -- wait to get a prompt
end repeat
do script "cd " & quoted form of p in window 1
do script "uptime" in window 1
end tell