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
Tip: Unlocking Hosts file in Lion
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="vansmith" data-source="post: 1364495" data-attributes="member: 71075"><p>Yes, it would be easier and probably significantly safer.</p><p></p><p>You could also cobble something together in AppleScript:[code]do shell script "open /Applications/TextEdit.app/ /etc/hosts" with administrator privileges[/code]Save that as an application in AppleScript Editor and voila. Each time you launch the application, you can enter your password and then you'll have write access (you might have to unlock the file however).</p></blockquote><p></p>
[QUOTE="vansmith, post: 1364495, member: 71075"] Yes, it would be easier and probably significantly safer. You could also cobble something together in AppleScript:[code]do shell script "open /Applications/TextEdit.app/ /etc/hosts" with administrator privileges[/code]Save that as an application in AppleScript Editor and voila. Each time you launch the application, you can enter your password and then you'll have write access (you might have to unlock the file however). [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Tip: Unlocking Hosts file in Lion
Top