scripting on OSX

Discussion in 'all things UNIX' started by lodore, Sep 18, 2013.

Thread Status:
Not open for further replies.
  1. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,007
    Hello,
    I want to write a script for OSX that changes the homepage of safari and copies files from a windows server to the desktop of the current user. The windows server share in question allows guest access so no credentials are needed.

    I have found the code to change the safari home page which is as follows:
    do shell script "defaults write com.apple.Safari HomePage 'http://www.example.com

    I need to use a variable for the desktop path because I need to use the script for different users.

    once I get the script working I hope to use automator to create a basic gui to have a one click button for each task.

    I have a batch file doing the tasks above for a windows machine changing the internet explorer homepage and copying files to the current users desktop But I have not yet created any scripts for OSX.

    thanks in advance
     
Loading...
Thread Status:
Not open for further replies.