AppleScript Help

Discussion in 'Mac Programming' started by Barnaby1, Jul 14, 2008.

  1. Barnaby1 macrumors newbie

    Joined:
    Jul 14, 2008
    #1
    i'm very new to programming, and i've been trying to write an applescript to switch the computer to "better performance" when it is charging with the adapter, and then to switch back to "better energy savings" when it is not charging. is this even possible? can anyone help?

    thanks
     
  2. Halloween macrumors newbie

    Joined:
    Jul 14, 2008
    #2
    Actually, you can do that on OSX's Energy Saver preferences if i'm not mistaken.
     
  3. Barnaby1 thread starter macrumors newbie

    Joined:
    Jul 14, 2008
  4. Halloween macrumors newbie

    Joined:
    Jul 14, 2008
    #4
    Inside Energy Saver Preferences and in the first dropdown box (Settings for) you can select either Power Adapter or Battery and its corresponding mode.

    If you want to put your mac at full speed while connected to your charger, simply select Power Adapter and then, in the second dropdown box (Optimization), select Better Performance.
    Similarly, for better energy saving, just select Battery and then Better Battery Life.

    Simple, hum?
    Please note you might need the administrator's password though
     

Share This Page