Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!apple!APPLELINK.APPLE.COM!RADSOFT From: RADSOFT@APPLELINK.APPLE.COM (Richard Eames) Newsgroups: comp.sys.mac.hypercard Subject: Re: Problem with pathnames Message-ID: <2889@internal.Apple.COM> Date: 18 Jul 89 19:55:17 GMT References: <281@opus.NMSU.EDU> Sender: usenet@Apple.COM Lines: 41 In article <281@opus.NMSU.EDU> lrasmuss@dante.nmsu.edu (Linda Rasmussen) writes: > Can anyone help me with an (apparently)Fsimple problem concerning > pathnames to external applications? I am using the commands > > open application > open "document" with application > open "adisk:afile:aaplication" > > in button scripts, and HC seems unable to remember or use pathnames, > either from the Home Stack cards, or from the scripts I provide. Hence, > each time I reopen HC and use the buttons I have to tell it where the > applications are. It *usually* remembers during a single session. Okay, if you have given if the pathname in a script, HyperCard does not store it in the Homestack--It only does that if it puts up the standard SFGetFile dialog. One way around this is to manually put the pathname into the homestack. Like this: If the Original Script was: On OpenMe put "My Hard Disk:My Folder:My Application" into myPath lock screen push card go to card <> of stack home put myPath after field <> pop card open MyPath End OpenMe --From that point, you should be able to just use the application name. ############################################## These thoughts are mine, not # "Anyltus and Meletus have the Power to # Apple Computer's. Blame me, # put me to death, but not to harm me." -- # not them. # SOCRATES # ##############################################