|
|
10.6: Easily manage the built-in web server with AppleScript
An easier way that would just open them in whatever your default text editor happens to be (defined by LaunchServices?) would be do shell script "open -e /etc/php.ini"
10.6: Easily manage the built-in web server with AppleScript
Be careful with this: open -e /etc/php.ini will actually open the file in TextEdit, not TextWrangler, and TextEdit can save the file in rich format (styled text rather than plain text) which will make the php.ini file unreadable by the system. Make sure you're saving as plain text.
Personally, I've added /etc as a folder in TextWrangler's open/save dialogs so that I can access any files I need there directly. The script approach isn't half bad, though.
Re: 10.6: Easily manage the built-in web server with AppleScript
Or, if you’ve installed TextWrangler’s command-line tools, you can use "edit" instead of "open -e" and avoid the guesswork of having to interact with LaunchServices :P
10.6: Easily manage the built-in web server with AppleScript
That will work as long as your text editor can save files that you don't have write-permission for. TextWrangler can do this, but TextEdit can't. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.19 seconds |
|