Re: Jaguar System Events app and log out
Re: Jaguar System Events app and log out
- Subject: Re: Jaguar System Events app and log out
- From: Paul Skinner <email@hidden>
- Date: Wed, 9 Oct 2002 17:21:43 -0400
Looking at the post suspiciously, like a green rubber worm.
Oh well; Chomp!
On Wednesday, October 9, 2002, at 04:35 PM, Bill Cheeseman wrote:
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.
I have it right here...oops I seem to have misplaced it too.
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.
Please, do tell.
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.)
OMM it seems to want an integer, real, string or record or list. Quite
flexible! And quite whak'd.
Thanks for your help.
--
Bill Cheeseman
--
Paul Skinner
_______________________________________________
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.