tags:

views:

39

answers:

1

Hi all,

In our college we all share the iMacs with same user account, say- Anonymous. So when some other user comes and uses my system, he/she generally changes some of the properties in system preferences. It always wastes some of my precious time when I restore its setting according to mine.

So, I am thinking -

can I make an apple script which when executed sets setting in system preferences according to my choices?

Thanks in advance for any help, suggestion or useful link!

Miraaj

+2  A: 

macosxautomation.com has a nice article about changing systempreferences using applescript at http://www.macosxautomation.com/applescript/features/system-prefs.html

Nikolaus Gradwohl
thanx :) .... I will definitely look at it!
Miraaj
specifically, I want to set some of the properties of Mouse Preferences but in the beginning I am unable to retrieve all its properties using this script:tell application "System Events" tell "mouse preferences" get properties end tellend tell.Can you suggest some solution for it?
Miraaj
tell application "System Preferences" set current pane to pane id "com.apple.preference.mouse" tell current pane get properties end tellend tell
Nikolaus Gradwohl
@Miraaj: If this is the correct answer, please accept it to give credit.
Philip Regan
@Philip... I have given credit to Nikolaus... cheers!
Miraaj
@Nikolaus ... thanx :)
Miraaj
@Nikolaus.... can you suggest me how to achieve this : http://stackoverflow.com/questions/3439705/apple-script-to-set-primary-button-secondary-button-and-other-properties-for-mou
Miraaj