[futurebasic] Re: What's an AFP message?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Sun, 1 Aug 1999 12:20:11 +1000
> >Jamin--
> >
> >I run a Mac server and occasionally I get messages on the screen that
> >OkeyDokey won't dismiss automatically, particularly if an applescript
> >fails for one reason or another. Would your little INIT work to
> >dismiss them?

It depends on how the dialog is created, dismissing is not the problem...  working out _when_ there is a window on screen that needs dismissing is the problem.  Some apps use alerts - which is what OkeyDokey looks for.  Some use dialogs - which can be altered slightly so that you can dismiss them auto-magicly.  Some use windows, which is very difficult to deal with.  Some apps dont use real buttons at all, just pictures (Photoshop!!).  Sometimes you can just delete the offending alert/dialog resource, and everything works perfectly.  If you know that the dialog box is from an AppleScript, just have a look at the script and change it.  If it is caused by an internal AppleScript error, just add a "try" handler around the code that causes it.

P.S. AFP is AppleShare Filing Protocol.  It is what is used when you use AppleShare in the chooser to connect to a server.  An AFP message is the large dialog that you get when the server goes down.

Jamin