Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!unmvax!grumpy.cs.unm.edu!stone From: stone@grumpy.cs.unm.edu (Andrew Stone) Newsgroups: comp.sys.mac.hypercard Subject: Re: How do I get the pathname? Message-ID: <294@unmvax.unm.edu> Date: 21 Aug 89 19:08:48 GMT References: <716@pmafire.UUCP> Sender: news@unmvax.unm.edu Reply-To: stone@grumpy.cs.unm.edu () Organization: University of New Mexico at Albuquerque Lines: 26 In article <716@pmafire.UUCP> geoff@pmafire.UUCP (Geoff Allen) writes: > >OK, I give up! Can someone answer my question? >How do I get the pathname to stack x (or the current stack) from within >a script. Try this one-liner anywhere, include the function trim somewhere handy: put trim(the long name of this stack) into source --get full pathname function trim name delete char 1 to (the length of ("stack" && quote)) of name delete last char of name return name end trim This is useful for copying a stack where you need the whole pathname, but not the word "stack" or the quotes surrounding what you get back from the long name function. andrew ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>|| !! Andrew Stone !! the fictive milieu of !! !! stone@rye.cs.unm.edu <> contemporary society! !! ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>||