How to tell if I am in the IDE?

Trevor DeVore lists at
Thu Dec 4 18:37:57 EST 2003

if (environment() = "development") then
	// your in IDE
	// your not in IDE
end if

Trevor DeVore
Blue Mango Multimedia
trevor at

On Dec 4, 2003, at 4:35 PM, Brian Maher wrote:

> Hi Folks,
> Is there any way (in a script) to tell if I am running in the IDE?
> In particular, I want to have a standard preOpenStack script that sets 
> the style of the stack to modeless (to obtain the standard OS X 
> background for the stack).  Unfortunately just putting that statement 
> into the stack flips it to modeless style when I open it in the IDE 
> (and it is annoying to have to flip it to toplevel every time I want 
> to edit it).
> Thanks, Brian

More information about the Use-livecode mailing list