Applescript - Change primary display

Discussion in 'macOS' started by digitalpencil, Nov 19, 2007.

  1. digitalpencil macrumors 6502

    digitalpencil

    Joined:
    Jul 2, 2007
    Location:
    Manchester, UK
    #1
    Hi,

    Firstly, does anyone know of an applescript repository such as dougsscripts that deals with OS/X and not just iTunes?

    I'm basically looking to automate the action of changing my primary display to my second screen. i.e. opening display preferences and dragging the menubar from one screen to the other.

    If anyone has any ideas how this might be achieved, knows if there's a script already in existence or knows of some good reading material on the subject, i'd be really appreciative.

    Thanks
     
  2. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #2
    Applescript + google = http://applescriptcentral.com/

    Chances are rather than scripting system preferences you can use a simple script to edit something like com.apple.display or some similar file. As i don't have an external display I dunno the exact naming.
     

Share This Page