custom client setting on mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
sam
Reply | Threaded
Open this post in threaded view
|

custom client setting on mac

sam
This post has NOT been accepted by the mailing list yet.
Hi big helper ,
your help will be really appreciate here s the situations :
The user dont need to put his information the first time he run the own cloud instead ,  i need automatise the process with a script that let me call a username and the password from my website as well as server .
here s my test script
===========================
Login=`curl -s "www.mywebsite"`
Pass=`curl -s "www.mywebsite"`
Server="www.owncloudserver"

osascript <<EOF
tell application "System Events"
        keystroke "$Server"
                 keystroke tab
                        delay 2
                keystroke "$Login"
        keystroke tab
        delay 2
        keystroke "$Pass"
        delay 2
        keystroke return
        keystroke return
end tell
EOF

exit 0
=================
thank you again for your help