Opening custom files by Drag and Drop in standalone application

Frank D. Engel, Jr. fde101 at
Wed Jan 19 09:30:32 EST 2005

Hash: SHA1

I'd imagine you can fix this on a Mac by intercepting the apple event 
which is sent to the stack.

Under Windows, you would need to check the $1 variable when starting 
the standalone, or check the openStacks or some such, and if a stack is 
specified, close it right away, display an error message, and quit?  
(Just a guess)

On Jan 19, 2005, at 2:42 AM, Ken Ray wrote:

> On 1/18/05 11:55 AM, "Alejandro Tejada" <capellan2000 at> wrote:
>> on Mon, 17 Jan 2005
>> Ken Ray wrote:
>>> When you launch an MC/Rev app, any command line
>>> information is sent to the
>>> application and is retrievable via *environment
>>> variables* numbered $0 on up.
>> Hi Ken,
>> I have read this useful Programming tip in your
>> website, and TRY to use it in an standalone
>> player to OPEN ONLY the custom documents of that
>> application.
>> But when i drag and drop a Rev or MC stack to a
>> standalone i had created, IT OPENS... :-(
> Yes, and this may be a bug (I tested Windows) - you get the path to the
> stack you dropped in $1, but you don't get any messages to trap to 
> prevent
> that stack from opening... I tried trapping preOpenStack and 
> openStack, and
> it only triggers for the application, not the document stack that is
> opening.
> I think you should log this as a bug, unless someone has an answer for
> this...
> Ken Ray
> Sons of Thunder Software
> Web site:
> Email: kray at
> _______________________________________________
> use-revolution mailing list
> use-revolution at
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
Version: GnuPG v1.2.4 (Darwin)


$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at

More information about the Use-livecode mailing list