Quit and IDE

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Srdjan
Posts: 26
Joined: Mon Aug 04, 2008 7:17 am

Quit and IDE

Post by Srdjan » Tue Jul 20, 2010 7:57 pm

I've seen it millions of times here on forum but now when I need it I simply can't find it: how to run script only if it is in standalone app?
For example: I have app which reads stdin, do some stuff, write to stdout and quits. Problem is that as soon as I added quit to the handler I am not able to open that project anymore. Revolution IDE quits together with my project :?

Regards

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Quit and IDE

Post by mwieder » Tue Jul 20, 2010 11:35 pm

Code: Select all

if the environment is not "development" then
    quit
end if

Srdjan
Posts: 26
Joined: Mon Aug 04, 2008 7:17 am

Re: Quit and IDE

Post by Srdjan » Wed Jul 21, 2010 10:36 am

Yes!!!

Thank you

Post Reply