Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
Use Terminal's vi as default text editor
Authored by: robleach on Mar 13, '08 08:29:59AM

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 | # ]