Open the terminal with path set to given location

Useful for an automator action for example:

-- Open terminal at given path
-- From:

set p to POSIX path of (item 1 of i as alias) -- define i
tell application "Terminal"

	do script "cd \"" & p & "\""
	close window 2
end tell

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.