This has to be easy! Tell a program not to open a file

Arthur Rann arthur.rann at gmail.com
Wed Feb 27 08:03:16 EST 2008


Hi Mark,
We took your advice, but we were unable to figure out how to not load the
file if it's in $1. If $1 contains something we don't want, what do we do
then? Right now we just show an error message and quit. Obviously, this is
not ideal. What do we do next?

Thank you!!!
Art

On Thu, Jan 31, 2008 at 10:43 AM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Hi Art,
>
> I always include a symbol, tag or item in files that are created by
> my standalones. Before I start the read routine, I check whether this
> symbol, tag or item is correct. If it is, I continue reading the
> file, if it isn't I show a message that the file cannot be displayed.
>
> If you want to prevent your standalone from loading stacks, you might
> need to handle the reload message and check the variable $1 on
> Windows or catche the appleEvent message on Mac.
>
> Best regards,
>
> Mark Schonewille
>
> --
>
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Quickly extract data from your HyperCard stacks with DIFfersifier.
> http://differsifier.economy-x-talk.com
>
>
> Op 31-jan-2008, om 16:09 heeft Arthur Rann het volgende geschreven:
>
> > Hi,
> > We have users forcing documents from one of our apps to be opened
> > in another
> > of our apps by using the right click in Windows. Is there a way to
> > make a
> > Rev based program only allow one type of document to be opened
> > (this is on
> > Windows)?
> >
> > Thank you!!!
> > Art
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list