Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Posts
    128

    Mac OS equivalent of Batch file?

    Hi,

    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?

  2. #2
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,879
    You can use standard Unix shell scripting, or you can use applescript.

  3. #3
    Join Date
    Jun 2008
    Posts
    128
    HI Joseph,

    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.

  4. #4
    Join Date
    Mar 2009
    Posts
    634
    Yes, you can with AppleScript - here is a list of options you can use to save a script: http://wwwserver.org/s/396dd94e6e.png
    BuyVM.net. 20 containers and I still can't go wrong.

  5. #5
    Join Date
    Jun 2008
    Posts
    128
    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.

  6. #6
    Join Date
    Aug 2009
    Posts
    36
    Quote Originally Posted by nickia View Post
    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?

    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.

Similar Threads

  1. Replies: 1
    Last Post: 01-26-2011, 01:18 PM
  2. Batch File
    By linux2man in forum Hosting Security and Technology
    Replies: 0
    Last Post: 12-09-2006, 03:07 AM
  3. Batch File help
    By freak in forum Computers and Peripherals
    Replies: 4
    Last Post: 10-22-2006, 07:55 AM
  4. Batch File Help
    By CreativeLogic in forum Programming Discussion
    Replies: 2
    Last Post: 06-28-2005, 01:43 PM
  5. Equivalent of CTRL on Mac
    By mno in forum Programming Discussion
    Replies: 5
    Last Post: 05-03-2003, 11:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •