Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Easily manage the built-in web server with AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Easily manage the built-in web server with AppleScript
Authored by: cnotarianni on Dec 16, '09 09:56:26AM
If you install the command line tools in TextWrangler will be possible to use the command edit in the Terminal. For example:
tell application "TextWrangler"
  open "/private/etc/apache2/httpd.conf"
  activate
end tell

Can be written in a single line:
do shell script "edit /private/etc/apache2/httpd.conf"
It is not necessary to issue the command "activate" since "edit" active TextWrangler and puts the file in the foreground.
Edited on Dec 16, '09 10:06:16AM by cnotarianni


[ Reply to This | # ]