• 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
Re: Missing values and Script Editor request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing values and Script Editor request


  • Subject: Re: Missing values and Script Editor request
  • From: "Scott Babcock" <email@hidden>
  • Date: Wed, 7 Sep 2005 14:59:04 -0700
  • Thread-topic: Missing values and Script Editor request

The block comment in AppleScript looks like this:

(* this is a block comment
and it continues until here *)

The annoying thing about AppleScript block comments is that AppleScript is still looking at the content of that block to see if it's syntactically correct. If you have improperly-formed AppleScript code inside the block comment, your script may not compile.

Try compiling this:

(*
set foo to "this
*)

--> Syntax Error / Expected "*)" but found end of script.

> -----Original Message-----
> Date: Wed, 07 Sep 2005 11:11:16 -0700
> From: Matt Neuburg <email@hidden>
> Subject: Re: Missing values and Script Editor request
> To: Jay Louvion <email@hidden>
> Cc: email@hidden
> Message-ID: <BF447B54.E474%email@hidden>
> Content-Type: text/plain;	charset="ISO-8859-1"
>
> On Wed, 07 Sep 2005 15:35:50 +0200, Jay Louvion <email@hidden>
> said:
>
> >My first question is how come the  Finder allows ³missing valules² to be
> >returned when for example, you are trying to get ³physical size² of an
> item:
> >do we agree that even for an alias, there always is a physical size ? How
> >can AS just return  ³I don¹t know² and get away with it ?
>
> I find the modern tendency to return "missing value" (instead of just
> erroring out, for example) quite delightful. Of course one could argue
> over
> whether the Finder is giving the right answer, but that is not an
> AppleScript issue, and in any case there are other ways to get this
> information. I have always found the Finder's "physical size" to be very
> iffy and squiffy.
>
> >My second subject is a feature request. Would it be possible to select a
> >whole piece of script and ³comment it out² in one block, rather than
> adding
> >the comment lines to every friggin¹ line ?
>
> I believe we have just had a thread on the value of learning the language
> before trying to use it...!
>
> m.
> --
> matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide
> <http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Missing values and Script Editor request
      • From: "Gary (Lists)" <email@hidden>
    • Re: Missing values and Script Editor request
      • From: Christopher Nebel <email@hidden>
    • Re: Missing values and Script Editor request
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: iTunes 5 scripting - thoughts?
  • Next by Date: Re: Creating a folder on the desktop
  • Previous by thread: Re: Missing values and Script Editor request
  • Next by thread: Re: Missing values and Script Editor request
  • Index(es):
    • Date
    • Thread