Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!wb1j+ From: wb1j+@andrew.cmu.edu (William M. Bumgarner) Newsgroups: comp.sys.mac.programmer Subject: OpenDriver, CloseDriver with HyperCard Message-ID: Date: 24 Oct 88 04:03:05 GMT Organization: Carnegie Mellon Lines: 11 I'm writing XCMD/XFCN's to control an Apple CD-ROM player. Currently, to get the refNum, I call OpenDriver(".AppleCD", &refNum); at the beginning of each XCMD/FCN... Do I need to do this, or is there a way to leave it open and get the refNum at the beginning of the code unit w/o re-opening. If I do use the OpenDriver to do so (this may be advantageous in certain situations), do I need to CloseDriver at the end of the unit? thank you, b.bum wb1j+@andrew.cmu.edu