Page 1 of 1

Native Project File vs Compiled App

Posted: Sat May 31, 2025 5:32 pm
by cmhjon
Hi everyone,

Occasionally, when opening a native LC project file I am working on, there may be commands which run at (startup, openStack, etc.) that I may not want to be run. While I realize I can simply comment out such commands or perhaps add a keyDown check, I was wondering if there was a way to differentiate between a native project file and a compiled app in an LC script. Something like:

on openStack
if me is <native project file>
exit openStack
else if me is <compiled app>
do something
end if
end openStack

If not, no biggie.

Thank you and best regards,
Jon :-)

Re: Native Project File vs Compiled App

Posted: Sat May 31, 2025 8:18 pm
by bn
Hi Jon,

check "the environment" in the dictionary.

Code: Select all

if the environment is "development" then
Kind regards
Bernd

Re: Native Project File vs Compiled App

Posted: Tue Jun 03, 2025 5:47 pm
by cmhjon
Ah ha! Thank you so much!! :)

Best regards,
Jon