Checking for 'quit' and aborting shutdown
Peter Haworth
pete at lcsql.com
Mon Dec 2 15:36:08 EST 2013
I hope you find a solution to this. I've given up trying to shutdown my
Mac at a specific time each night via the Scheduler because there are too
many apps that sit there on a close prompt waiting for a user response
(incluiding Livecode).
Pete
lcSQL Software <http://www.lcsql.com>
On Mon, Dec 2, 2013 at 8:39 AM, Graham Samuel <livfoss at mac.com> wrote:
> No, that's sent when the user chooses 'quit', and it's also sent when OSX
> chooses 'quit' for you, i.e. when someone chooses 'Shut Down' in the main
> menu of the machine. So my script can't say "I'll ask my user nicely if
> he/she really wants to shut down, unless it's an order from OSX High
> Command, in which case I'll just cave in and do it". I suppose there may be
> something one can do with Apple Events, but then I'd be left with the same
> issue on the PC. Maybe asking "are you sure?" should be deprecated.
>
> Thanks for the reply.
>
> Graham
>
> On 2 Dec 2013, at 15:39, Richard Gaskin wrote:
>
> > Graham Samuel wrote:
> >
> > > Is there any way to effectively detect a general shutdown as opposed
> > > to just 'quit'?
> >
> > Would shutdownRequest cover what you need?
> >
> > --
> > Richard Gaskin
> > Fourth World
> > LiveCode training and consulting: http://www.fourthworld.com
> > Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> > Follow me on Twitter: http://twitter.com/FourthWorldSys
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list