close a standalone with a parameter

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: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
marc
Posts: 7
Joined: Wed Oct 18, 2006 5:45 am

close a standalone with a parameter

Post by marc » Tue Nov 14, 2006 2:42 am

Is it possible to close a Rev standalone (exe) by sending it a parameter from another standalone?

cheers
Marc

marc
Posts: 7
Joined: Wed Oct 18, 2006 5:45 am

found it

Post by marc » Tue Nov 14, 2006 3:05 am

Typical -- you spend a couple of hours searching using the wrong search terms, post a request, then find it straightaway - the "kill" command :)

cheers
Marc

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5147
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Nov 14, 2006 10:35 am

HI,

If you are on Mac OS X, "kill" is just plain wrong, even though it works. This would literally kill the programme, not allowing the application to clean up or to show a dialog "Do you really want to quit.". Instead, use AppleScript:

tell application "You Standalone" to quit

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”