• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
BUG: AppleScript compilation problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG: AppleScript compilation problems


  • Subject: BUG: AppleScript compilation problems
  • From: Steven Angier <email@hidden>
  • Date: Fri, 18 Apr 2003 11:03:14 +1000

Here are a couple of bugs involving the compiling of comments in
AppleScript:


1. A block comment can't contain an odd number of double-quote characters:

(*
"
*)

--> compilation error


I can understand how this could happen because, when parsing source code,
something has to take precedence. In the previous case, a literal string
takes precedence over a block comment, though in the next case a single-line
comment takes precedence over a literal string:

--"

--> compiles OK


2. A single-line comment containing a literal line-feed character (ASCII
number 10) will not compile:

a. Compile the following line:

"\n"

b. then comment the line out ("--") and recompile.

--> compilation error



Steven Angier
Macscript.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Getting the labels of a record
  • Next by Date: Re: Stay Popup script doesn't work on this Mac
  • Previous by thread: Re: Pref files
  • Next by thread: Re: BUG: AppleScript compilation problems
  • Index(es):
    • Date
    • Thread