I’ve got two script objects as my main Application, 'AppDelegate', and ‘OddNSods’.
One window out of 6 is a ‘Your trial is over’ info window, called ‘elapsedWindow’, that contains a ‘Continue Trial’ button, and a ‘Quit’ button, only one of which shows at any time.
I want to make this window modal, as I understand it will be centred, and stop operation of both scripts. I’d like to leave the main window open, but non-running.
My code for checking if the Trial Period is over, is in “OddsNSods’, and after the window is activated, and a text field filled, I’ver inserted the code…
set theApp to application "Mail Manager" theApp's runModalForWindow:elapsedWindow
The ‘Continue Trial’ button calls this handler…
on checkForElapsedTrialRemove:sender stopModal() set my elapsedWindowDisplay to false end checkForElapsedTrialRemove:
I’ve bound the window ‘elapsedWindow’ in both script objects.
Any help please?
Regards
Santa
|