Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Mountain Lion Hosts File
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Shikarnov" data-source="post: 1506993" data-attributes="member: 49413"><p>That did the trick. Thank you!</p><p></p><p>For anybody else that edits the host file frequently, Using Vansmith's detail, I created an AppleScript with the following code, so I can keep an icon on my dock next to MAMP. </p><p></p><p>[code]</p><p>do shell script "sudo /Applications/Smultron\\ 4.app/Contents/MacOS/Smultron\\ 4 /etc/hosts" password "mypassword" with administrator privileges</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Shikarnov, post: 1506993, member: 49413"] That did the trick. Thank you! For anybody else that edits the host file frequently, Using Vansmith's detail, I created an AppleScript with the following code, so I can keep an icon on my dock next to MAMP. [code] do shell script "sudo /Applications/Smultron\\ 4.app/Contents/MacOS/Smultron\\ 4 /etc/hosts" password "mypassword" with administrator privileges [/code] [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Mountain Lion Hosts File
Top