home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!jchoi@magnus.acs.ohio-state.edu
- From: Jinwon Choi <jchoi@magnus.acs.ohio-state.edu>
- Subject: How to deprotect a stack?
- Message-ID: <9301270239.AA14241@bottom.magnus.acs.ohio-state.edu>
- Sender: daemon@magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Date: Wed, 27 Jan 1993 02:39:37 GMT
- X-Mailer: ELM [version 2.3 PL11]
- Lines: 46
-
-
- Hi.
-
- I got a message from the hypercard usergroup regarding deprotecting
- a stack. The following is the code the guy sent.
-
- -----------------
-
- Try this. Create a stack containing a button and the following script:
- on mouseUp
- put filename("STAK") into fname
- if fname is empty then exit mouseUp
- deprotect fname
- if the result is empty
- then answer "Deprotect Successful" with "OK"
- else if the result is -49
- then answer "Sorry, that file is busy."
- else if the result is -44
- then answer "Sorry, the disk is locked."
- else answer "Failed: unexpected file system error: " & the result with
- "OK"
- end mouseUp
- This is a script I found someplace, and I've usually been successful with it.
-
- ------------
-
- I tried this. But it did not work properly. My debugger did not understand
- the word "deprotect". Is there anybody who knows about the deprotecting
- stuff? It will be very helpful to me, if anybody lets me know.
-
- Thanks in advance.
-
- Jin.
-
- --
-
- ------------------------------------------------------------------------------
- Jinwon Choi (614) 293-9086(Home)
- CAAD Software Development Lab. (614) 292-2148(Work)
- *****
- Ph.D. Student, ACCAD (Advanced Computing Center for the Arts and Design)
- GRA (Programmer), ACS (Academic Computing Services)
- The Ohio State University, Columbus, Ohio.
- e-mail: jchoi@magnus.acs.ohio-state.edu
- ------------------------------------------------------------------------------
-
-