apple script log out problem

Discussion in 'Mac Apps and Mac App Store' started by andonin, Dec 12, 2008.

  1. andonin macrumors newbie

    Joined:
    Dec 9, 2008
    #1
    :confused: i cant figure out whats wrong with this line can some one help!

    tell application "System Preferences" to log off

    thank you
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    You're telling the wrong application. System Preferences doesn't understand the log off command, but Finder does.
     
  3. andonin thread starter macrumors newbie

    Joined:
    Dec 9, 2008
  4. andonin thread starter macrumors newbie

    Joined:
    Dec 9, 2008
    #4
    nope...
    it says that the variable is not defined and highlights off same with out
    thats no different then System Preferences, and I also know what ever program it is is "System something"
     
  5. andonin thread starter macrumors newbie

    Joined:
    Dec 9, 2008
    #5
    One Problem down, one to go

    OK! :cool: i just figured out its system events i.e.

    tell application "System Events" to log out

    now i need some thing that will automatically hit the button log out, so that they cant hit cancel any help some one can offer?
     

Share This Page