• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting mouse preference and space preference values via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting mouse preference and space preference values via AppleScript


  • Subject: Re: Setting mouse preference and space preference values via AppleScript
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 30 Aug 2010 12:38:30 -0700

On Aug 29, 2010, at 6:30 AM, Devarshi Kulshreshtha wrote:

I want to perform following tasks via Apple Script, but I am not getting any workable solution:

Mouse Preference-

1. Set action for right mouse button to Secondary Button.
2. Set action for scroll ball button to Spaces.
3. Set action for side buttons to Expose - All Windows.
4. Any of above

Expose & Spaces > Spaces Preference-

Set no. of rows to 1 and no. of columns to 3.

Can anyone suggest me some solution for it?

Hi Devarshi,

Mouse button preferences appear to be stored in the plist file ~/Library/Preferences/com.apple.driver.AppleHIDMouse.plist. Each item in the plist is assigned an integer, which indicates its function. You'd need to systematically change mouse settings and check to see what each integer represents. Then it should be a simple matter of calling the "defaults" command (via "do shell script") to set things as desired.

FWIW, I'm running OS 10.6.4 with a wired Apple [Mighty] Mouse. Older systems or different mice may use another file or alternate method for storing these preferences.

Sorry, but I don't know where or how Spaces preferences might be stored.

HTH,
Stan C.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Setting mouse preference and space preference values via AppleScript (From: Devarshi Kulshreshtha <email@hidden>)

  • Prev by Date: Loading a Script Object across the net
  • Next by Date: Re: Periods in string after concatenating ?
  • Previous by thread: Setting mouse preference and space preference values via AppleScript
  • Next by thread: Linda Wright/Bigy is out of the office
  • Index(es):
    • Date
    • Thread