change name of standalone

Bob Hartley rev at armbase.com
Sun Jun 5 09:35:42 EDT 2005


Hi All.

In my wee app I want the user to be able to change the name of the .exe app
(the titlebar) when it opens.

I have found a curious thing.
I have a stack called boabieprefs (full paths and relative paths have been
tried) that has a field "appname".

In my stack "hello" (this will be the standalone) if I open rev and then do
File->openstack-> and chose hello.rev the following script works

on preopenstack
set the name of stack "hello" to field "appname" of stack "boabieprefs"
end preopenstack

It does not work when I double click to open the stack in runrev, nor in the
.exe

On other ocasions this crasjhes revolution. Actually it is now constantly
crashing rev (the script error box is flashing contuously and I've had to
restart) 

How do I change the name of the opening stack in a .exe standalone using an
external prefs.rev file?


Cheers
Bob


More information about the use-livecode mailing list