Is this possible?
sarahr at genesearch.com.au
Sun Jan 30 17:50:52 CST 2005
I think you might run into the scriptLimits problem with standalones.
As an alternative, how about scripting your own screenLock handler
which tests for the OS and either locks the screen or doesn't.
On 31 Jan 2005, at 9:17 am, Jim Hurley wrote:
> This seems to be all right to me, but just to be sure.
> Rather than have a handler poll the OS each time it is run, would it
> be possible to modify a handler just once in an openstack handler like
> the following:
> on openstack
> put the script of button 1 into tScript
> if the platform is "macOS" then
> replace "--unlock screen" with "unlock screen" in tScript
> end if
> set the script of button 1 to tScript
> end openstack
> This works in the IDE environment, but will it work in a stand alone?
> I know a script can't modify itself, and that a stack can't make
> permanent changes in a stand alone, but can a stand alone modify
> component scripts each time the stack is opened as indicated above?
More information about the use-livecode