A Oliver wrote:
> Sorry, I am new at Metacard and I have had trouble opening other stacks from a
> stack.
> I haev a stack that is the main file for my project. Then I can open stacks by
> using the File menu, there is a button in every other file to open this main
> stack again, but the open does not work to open those stacks.
>
> NOTE:
> the directory of my main stack is the same as the others and as is follows:
> k:\projects\group2\ (this is a network drive where the folder group2 is read
> and write to me and my group but the folder projects and k: are only read.
>
> This is the scripting I am using.
> open "stack2.mc" <-- in this file there is a graphic button that links back
> to "main.mc"
Is the mainstack a standalone?
File addressing in MetaCard uses the current directory. At startup this is
set to the directory containing the running application: MetaCard when in
the integrated development environment (IDE), and the standalone when
running from that.
You can change the current directory by using:
set the directory to <path>
where <path> is any valid directory, expressed in UNIX path form (using the
"/" delimiter), and can optionally end in "/".
I like to use a function to determine my app's path that will work in both
the IDE and also as a standalone. If that approach will help your
circumstance, you can use something like this:
function AppPath
put the filename of <mainstackName> into tPath
set the delimiter to "/"
delete last item of tPath
return tPath &"/"
end AppPath
While the trailing slash is not needed, I add it as a convenience when
concatenating other paths:
open stack AppPath()&"MyOtherStack.mc"
> REPLY TO THESE ADDRESSES PLEASE: [EMAIL PROTECTED] and
> [EMAIL PROTECTED]
You'll have a better chance of getting the info you'll need quickly if you
simply read this list. Archives are pretty current, and can be found at:
<http://www.mail-archive.com/metacard%40lists.runrev.com/>
I've taken the time to cc both addresses requested (why two?), but it's an
unusual request and one you shouldn't rely on for results.
--
Richard Gaskin
Fourth World Media Corporation
Multimedia Design and Development for Mac, Windows, UNIX, and the Web
_____________________________________________________________________
[EMAIL PROTECTED] http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc Fax: 323-225-0716
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.