Quit command NOT Externals in OS X
Mark Talluto
userev at canelasoftware.com
Thu Sep 9 11:59:51 EDT 2004
On Sep 8, 2004, at 6:36 PM, Ray Stace wrote:
> The following script works fine when in Revolution [2.1.2], but does
> nothing
> when saved in a standalone [OS X 10.3.3]. Anyone any idea why?
>
> on mouseUp
> answer "Are you sure you want to quit?" with "Cancel" or "Yes"
> if it is "yes" then quit
> end mouseUp
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Ray,
I use this in my File - Quit menu:
case "Quit"
answer "Are you sure you want to quit Primary Generator?" with "No"
or "Yes"
put it into x
if x = "Yes" then
quit
else
exit menupick
end if
break
Put this in your stack script:
on closeStackRequest
quit
end closeStackRequest
on shutdownRequest
answer "Are you sure you want to quit Primary Generator?" with "No"
or "Yes"
if it is "Yes" then
pass shutdownRequest
else
exit to top
end if
end shutdownRequest
--
Best regards,
Mark Talluto
28612 Avalon Ave
Moreno Valley, CA 92555
tel: (310) 483-9919
fax: (909) 924-6240
http://www.canelasoftware.com
More information about the use-livecode
mailing list