Answers for "new terminal for mac"

0

how to open mac terminal

There are manys ways to acess the terminal;

1:
Find it in your local aplications folder and double click

2:
Press Command + Space and type "Terminal" 
push enter once terminal is highlighted.
Posted by: Guest on May-24-2022
0

new terminal in a folder mac

-- get the current directory in Finder
on run {input, parameters}
    tell application "Finder"
        set _cwd to quoted form of (POSIX path of (folder of the front window as alias))
    end tell
    CD_to(_cwd)
end run

-- change directory in iTerm (version >= 3)
on CD_to(_cwd)
    tell application "iTerm"
        activate

        try
            set _window to first window
        on error
            set _window to (create window with profile "Default")
        end try

        tell _window
            tell current session
                write text "cd " & _cwd & ";clear;"
            end tell
        end tell
    end tell
end CD_to
Posted by: Guest on March-09-2022

Browse Popular Code Answers by Language