Open Terminal with predefined tabs

applescriptterminalterminal.app

Is there any way to open Terminal with predefined tabs?
I have 5 most common paths that I usually use and I want Terminal to open with these paths opened in different Tabs.
I guess this should be AppleScript, but I don't have enough expertise to write it.
Can you help me?

Thank you.

Best Answer

nm, this is the answer:

tell application "Terminal"
    activate
    do script "cd %path1%"
    tell application "Terminal" to set custom title of tab 1 of front window to "Name 1"
    tell application "System Events" to keystroke "t" using command down
    delay 0.05
    do script "cd %path2%" in window 1
    tell application "Terminal" to set custom title of tab 1 of front window to "Name 2"
end tell

This will open Terminal with Path1 and Tab Name 1 and one more tab with Path2 and Tab Name 2

Related Question