Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Apple Guide Complete / Part 4 - Scripting Guide Files
Chapter 10 - Guide Script Command Reference / Guide Script Command Descriptions
/ Specifying Startup Information


<Comment>

You can use the <Comment> command (or "#") to indicate a comment in your source files.

<Comment> or #
DESCRIPTION
When Guide Maker encounters a <Comment> command (or "#" ) it ignores the following text until the next carriage return. Comments specified with the <Comment> command must appear at the beginning of the line. Comments specified with the "#" character can begin a line or appear at the end of a command line. You cannot specify a comment in the middle of a command line.

Guide Maker interprets the "#"character as a comment if it appears as the first nonblank space on a line. To use the "#" character as the first character on a line of panel text, use "##". Guide Maker does not treat the "#" character as a special character if it appears within panel text.

EXAMPLES
<Comment> This is a comment
#here's a comment
      #this is also a comment
<App Text> "SurfWriter Guide" #here's another comment
<Define Panel> "Some panel" #a comment at end of command line
   Text goes here. #This is not a comment here, it's panel text.
   ##this is not a comment, it's panel text.
   <Standard Button> "My Button",      #illegal comment 
                     LEFT, doAction()  #legal comment
   <Standard Button> "My Button", LEFT, doAction() #ok comment
<End Panel>

Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 JUL 1996