try try set the_path to (((path to library folder from system domain) as Unicode text) & "CoreServices:Menu Extras:User.menu:Contents:Resources:CGSession") set the_path to quoted form of POSIX path of the_path set the_arguments to " -suspend" do shell script the_path & the_arguments end try delay 2 try do shell script "pmset force -a hibernatemode 1" ignoring application responses tell application "System Events" to sleep end ignoring end try end try