Add shortcut for multiple terminal commands?
Solution 1:
The following AppleScript should work, which you can save as an application and put in your Finder toolbar.
tell application "Finder"
try
set folderPath to (quoted form of POSIX path of (target of front window as alias))
tell application "Terminal"
do script "cd " & folderPath & "; mate .; python -m SimpleHTTPServer"
end tell
end try
end tell