Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!usc!apple!APPLELINK.APPLE.COM!RADSOFT From: RADSOFT@APPLELINK.APPLE.COM (Richard Eames) Newsgroups: comp.sys.mac.hypercard Subject: Re: Problem with pathnames Message-ID: <2891@internal.Apple.COM> Date: 18 Jul 89 20:23:47 GMT Sender: usenet@Apple.COM Lines: 50 References:<281@opus.NMSU.EDU> <2889@internal.Apple.COM> In article <2889@internal.Apple.COM> RADSOFT@APPLELINK.APPLE.COM (Richard Eames) writes: > 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. Whoops! I should have said the script should look like this: On OpenMe put "My Hard Disk:My Folder:" into myPath --We only gie it lock screen --the path to the folder! push card go to card "Applications" of stack home put myPath & Return after field "Paths" pop card getHomeInfo --see expanation below open <> End OpenMe A lot of people don't realize that when HyperCard calls the Launch procedure, (And I am not exactly sure of the order of these...) it first looks in the HyperCard folder, then the System folder, then it rips through the global "Applications" for all of the pathnames stored in th home stack. That global only gets updated with the call to GetHomeInfo, so we have to call it so HyperCard will know that we have put a new path in the field. From there, everything should rip along just fine... Have Fun! Rick Eames ############################################## 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 # ##############################################