Open the terminal with path set to given location

Useful for an automator action for example:

-- Open terminal at given path
-- 
-- From: www.chipwreck.de

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

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

Leave a Reply

Your email address will not be published.

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