var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Mac OS equivalent of Batch file?
I'm using windows's batch file to update my DNS setting with one click. Is there a Mac OS equivalent that I can update the OS setting just by executing one file?
You can use standard Unix shell scripting, or you can use applescript.
Would any average MAC user able to execute the script by clicking it once it's written? I want to write a script so even novice users will know how to update the DNS setting because it'd require only 1 click.
Yes, you can with AppleScript - here is a list of options you can use to save a script:
. 20 containers and I still can't go wrong.
Can someone write me two simple applescript:
1. change primary and secondary DNS setting on MAC OS
2. reset the DNS setting to normal setting
I'm willing to pay. Please PM me of your offer.
1. How are you wanting this change to happen? Is this a primary and secondary DNS setting that is hard coded into the app, or are they 2 fields that the user fills in first before running the script?
Originally Posted by
2. What do you mean by reset to normal? Do you mean go back to whatever was there before running the script, or some default setting?
Can you post your batch file so people can see exactly what it is you want to do? I think that will make it easier to define your requirements. It sounds pretty simple though.
By P10n33R in forum Programming Discussion
Last Post: 01-26-2011, 01:18 PM
By linux2man in forum Hosting Security and Technology
Last Post: 12-09-2006, 03:07 AM
By freak in forum Computers and Peripherals
Last Post: 10-22-2006, 07:55 AM
By CreativeLogic in forum Programming Discussion
Last Post: 06-28-2005, 01:43 PM
By mno in forum Programming Discussion
Last Post: 05-03-2003, 11:46 AM