Jaguar System Events app and log out
Jaguar System Events app and log out
- Subject: Jaguar System Events app and log out
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 09 Oct 2002 16:35:28 -0400
The AppleScript 1.9 release notes say that in AppleScript 1.7 through 1.8.3,
the shutdown, restart, and log out commands had a deadlock problem unless
you put them in an ignoring application responses block. Now, I assume
they're talking about the Finder, because that's where the shutdown,
restart, and -- er, sleep -- commands were located. Now, where was that log
out command? I can't seem to lay my fingers on it.
The same release notes say that in AppleScript 1.9, the shutdown, restart,
and log out commands automatically invoke ignoring application responses.
They say these commands are now in the System Events application. I see the
System Events application dictionary. It has shutdown, restart, and -- er,
sleep -- commands. I seem to have lost the log out command again.
I DO in fact know how to make the computer log out gracefully using
AppleScript, either with or without a log out dialog. But I don't know how
to do it using the Finder or System Events. Forgive my ignorance. Can
anybody help?
And while you're at it, please explain to me what the "reference" parameter
to the shutdown, restart, and sleep commands in System Events is supposed to
be. The dictionary says, helpfully, "the object for the command." (I know I
can do this from the Finder, which doesn't require a direct parameter. But
these Finder commands are "legacy," and I want to do it the new, correct
way, using System Events.)
Thanks for your help.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.