home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.gtech.com!noc.near.net!hri.com!spool.mu.edu!olivea!charnel!OAVAX.CSUCHICO.EDU!PANDERSON
- From: PANDERSON@OAVAX.CSUCHICO.EDU (Peter Anderson)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: help deprotecting a stack!
- Message-ID: <1jmktlINN8gd@charnel.ecst.csuchico.edu>
- Date: 21 Jan 93 17:01:41 GMT
- References: <1993Jan15.141441.1@hamp.hampshire.edu>
- Organization: Cal State Univ Chico
- Lines: 18
- NNTP-Posting-Host: mlib13-mac2.csuchico.edu
-
- 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.
-
-
- panderson@oavax.csuchico.edu(PeterAnderson)
-