Ah-hah!
Now I can make a better mental connection with all the recent talk
about setting the current directory. OK. I just got thrown off the
track early because I had been developing on a Mac, and the browsers
on the Mac don't seem to affect the directory of a MetaCard stack
being run from an HTML link. The current directory when the stack
opens is just automatically whatever directory the stack is in. When
I read the following on Jan. 25, I think I misunderstood the
implications for browser access.
At 7:31 PM -0800 1/25/99, metacard-list-digest wrote:
>You shouldn't even need to set the original directory if you do this
>all correctly. The current directory should be set to the directory
>your application is in when it starts up and the relative paths should
>allow the engine to find all your stacks/images/clips from there.
Because this is not the case in Windows, nor in *Nix platforms
either, I suppose. Oh well, it's no big deal now that I finally
realize what to do.
On another note, I've been testing away with some little experimental
stacks which have the engine in the same directory as the
application. Just out of curiosity, what principles are involved in
the relationship between stacks and engine when distributing final
products? Especially in CD and web browser situations, what is the
basic advice as to where the engine and stacks should be
installed/located relative to each other?
Regards,
David
>Just out of curiosity, what is the current directory when MetaCard is
>started up from the browser on Windows 95? Short of scanning the
>entire disk, I can't think of any way to make this reliably work on
>*any* platform if you're using relative paths to your media files.
>You're never guaranteed to be in a particular directory when a stack
>is run from a browser window, so you *always* have to set the
>directory property as the very first step, before the stack even
>opens.
> Regards,
> Scott
--
David Cramer, Process Innovation Evangelist 87-1313 Border Street
PBSC Computer Training Centres (an IBM company) Winnipeg MB R3H 0X4
Corporate Office Research & Development Canada
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm