Skip navigation
This discussion is archived

Changing Keyboard Modifier Keys

3528 Views 3 Replies Latest reply: Apr 16, 2006 1:51 AM by Michael Henley RSS
Randy Farnsworth Calculating status...
Currently Being Moderated
Apr 6, 2006 8:05 AM
I use an external Windows keyboard on my PowerBook while at work, then use the internal keyboard at home. To keep from hitting the wrong keys all day, I open the sys prefs each morning and swap the Option and Command keys (Alt and Windows keys on the external keyboard), then swap them back each night at home. While this is easy enough to do, I'd like an AppleScript or Automator Task that can do this for me. Since I'm a novice when it comes to Automator and scripting, can anyone help me with this?

Thanks!

PowerBook G4 17 1.67GHz   Mac OS X (10.4.6)   Dell Windows External Keyboard (ugh!)
  • ddsrocks Level 1 Level 1 (0 points)
    Currently Being Moderated
    Apr 14, 2006 10:14 AM (in response to Randy Farnsworth)
    Hi,
    I was trying the script provided, but I get an error:

    "System Events got an error: NSReceiverEvaluationScriptError: 4"

    when it tries to run:

    click radio button "Keyboard" of tab group 1 of window "Keyboard & Mouse"

    Well, since I'm novice too to AppleScript, can you please help me finding out what's wrong?

    Thanks!!!
    Powerbook G5, Mac OS X (10.4.6)
  • Michael Henley Level 4 Level 4 (1,895 points)
    Currently Being Moderated
    Apr 16, 2006 1:51 AM (in response to ddsrocks)
    Launch /Applications/AppleScript/AppleScript Utility.app and check Enable GUI Scripting.
    PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB, Mac OS X (10.4.6)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.