Article View: comp.sys.mac
Article #19485MPW2.0 bug/feature
From: D. Ranson CNET
Date: Thu, 24 Sep 1987 11:22
Date: Thu, 24 Sep 1987 11:22
18 lines
1286 bytes
1286 bytes
I have stumbled on an annoying bug or feature of MPW2.0 . When you create a
menu item containing a multi-line command (eg. If), the Suspend/Resume
scripts do not work properly. Suspend saves the user menu items by calling
AddMenu without parameters. AddMenu writes the menu rebuilding commands with
hard quotes (') around everything for security. With an If command, this gives
something like:
AddMenu 'MenuName' 'MenuItem' 'If condition
commands
end'
with no deltas at ends of lines (actually deltas wouldn't help). Of course,
this command with a hard-quoted string spread on several lines is not syntac-
tically correct.
In fact, the only way I have found to write such commands is to use "-quotes
and to put deltas in front of all special characters. AddMenu is not smart
enough to recreate that.
Daniel Ranson
...!seismo!mcvax!inria!{crcge1 or cnetlu}!ranson
Technical Details
Message-ID:
<2953@crcge1.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!inria!crcge1!ransonShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!inria!crcge1!ranson From: ranson@crcge1.UUCP (D. Ranson CNET) Newsgroups: comp.sys.mac Subject: MPW2.0 bug/feature Message-ID: <2953@crcge1.UUCP> Date: Thu, 24-Sep-87 07:22:35 EDT Article-I.D.: crcge1.2953 Posted: Thu Sep 24 07:22:35 1987 Date-Received: Sat, 26-Sep-87 18:14:26 EDT Lines: 18