Native Project File vs Compiled App

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cmhjon
Posts: 190
Joined: Tue Aug 04, 2015 11:55 am

Native Project File vs Compiled App

Post by cmhjon » Sat May 31, 2025 5:32 pm

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 :-)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Native Project File vs Compiled App

Post by bn » Sat May 31, 2025 8:18 pm

Hi Jon,

check "the environment" in the dictionary.

Code: Select all

if the environment is "development" then
Kind regards
Bernd

cmhjon
Posts: 190
Joined: Tue Aug 04, 2015 11:55 am

Re: Native Project File vs Compiled App

Post by cmhjon » Tue Jun 03, 2025 5:47 pm

Ah ha! Thank you so much!! :)

Best regards,
Jon

Post Reply