Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Use Terminal's vi as default text editor' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Use Terminal's vi as default text editor
Authored by: robleach on Thu, Mar 13 2008 at 8:29AM PDT
Well, I don't have 10.5, but this works for me in 10.4 to open a new terminal window and run vi (I left the command-t in there even though it opens up the fonts window).

[code]tell application "Terminal"
activate
tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
do script "/usr/bin/vi"
end tell[/code]

Rob

[ Reply to This | # ]