Skip navigation

Trying to make a logout apple script.

227 Views 0 Replies Latest reply: Jul 15, 2012 10:27 AM by seadragonzz RSS
seadragonzz Calculating status...
Currently Being Moderated
Jul 15, 2012 10:27 AM

I have an apple script saved on my desktop as an application so all i have to do is double click it to run it.

 

This is the code i have:

 

tell application "System Events"

 

  log out

 

end tell

 

 

Very simple and it works great! However, when I run it, the dialog box still shows up asking if i want to log out. How can i make it so either the dialog box

doesnt show up and it just logs out. or make it automatically click log out for me.

 

thanks for the help

MacBook Pro, Mac OS X (10.7.4)

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.