handling command line parameters

Jon jbondy at sover.net
Fri Jun 10 19:50:11 EDT 2005


Phil:

Thanks: I'm "testing" this by creating standalone applications and then 
dropping a file onto them.

:)

Jon


Phil Davis wrote:

> Jon -
>
> If you're opening your stack in the development environment, it won't 
> receive a 'startup' message even if you open Rev by double-clicking 
> your stack. The Rev Dev environment 'eats' that message.
>
> The startup message does, however, make it to your first-opened stack 
> (the standalone itself) at startup time in a Standalone environment.
>
> HTH -
> Phil Davis
>
>
> Jon wrote:
>
>> I've managed to handle command line parameters with my stack, but 
>> something is strange.  The script looks like this:
>>
>> on startup
>>  if $1 <> "" then
>>    OpenTheFile $1
>>    start player "myPlayer"
>>    call "trackPlayer"
>>    end if
>>  end startup
>>
>> The problem is that, while the file is indeed opened (by my 
>> OpenTheFile routine), the Player does not start.  Is there something 
>> about not running the Player "too early" in the life of a stack, 
>> before it has "woken up"?  When I run the same routine at any other 
>> time, the Player does start up.
>>
>> :)
>>
>> Jon
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>


More information about the use-livecode mailing list