Path: utzoo!attcan!uunet!samsung!usc!apple!bionet!hayes.ims.alaska.edu!acad3.fai.alaska.edu!ftdkl From: ftdkl@acad3.fai.alaska.edu (LaSota Daniel K) Newsgroups: comp.sys.mac.hypercard Subject: Re: Deleting Cards in a script Keywords: DELETE Script Message-ID: <1990Oct21.201654.26198@hayes.ims.alaska.edu> Date: 21 Oct 90 20:16:54 GMT References: <14988@brahms.udel.edu> Sender: usenet@hayes.ims.alaska.edu (J Random USENET) Reply-To: ftdkl@acad3.fai.alaska.edu Organization: University of Alaska Fairbanks Lines: 23 News-Software: VAX/VMS VNEWS 1.3-4 Nntp-Posting-Host: acad3.fai.alaska.edu In article <14988@brahms.udel.edu>, mikeb@brahms.udel.edu (Mike Brennan) writes... > > I have been tring to create a button that will delete the current card > on the stack. However, I can not find the command to do this. I have > tried used doMenu, but it always creates an error. Any ideas? > > mikeb@brahms.udel.edu Remember anything you can do in the menuBar you can do with a script. Since the "Delete Card" is in the menuBar you would script something like: on wipe domenu "Delete Card" end wipe You might want to set the can'tDelete to false The exact variable is cantDelete The last card of a stack can't be deleted this way either. Also if it is the last card of a protected background then you have to unprotect the background first. Dan LaSota ftdkl@acad3.fai.alaska.edu