• 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: Count lines in a textfile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count lines in a textfile


  • Subject: Re: Count lines in a textfile
  • From: Joseph Weaks <email@hidden>
  • Date: Thu, 16 Sep 2004 21:15:44 -0500


On Sep 16, 2004, at 8:50 PM, Malcolm Fitzgerald wrote:
On Sep 16, 2004, at 7:53 PM, Malcolm Fitzgerald wrote:

count paragraphs of (read (choose file {})))


Paul Berkowitz asked:

Why the {}? It doesn't do anything (fortunately - otherwise it would error).
....
It seems that I type brackets after choose file and choose folder, as if they were handlers, eg, choose file () . Applescript converts () to {}. If I leave () off, Applescript doesn't convert them to {}.

I am really quite amazed it doesn't error. Since each parameter of choose file has a keyword, it is ignoring any value given.
choose file {}
choose file {"Foobar"}
choose file "Foobar" with prompt "bar"
set foo to "bar"
choose file foo


All of these ignore the unneeded value. I don't understand WHY it compiles. Same goes for choose application.


Joe Weaks

_______________________________________________
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: Count lines in a textfile
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Count lines in a textfile (From: Paul Berkowitz <email@hidden>)
 >Re: Count lines in a textfile (From: Malcolm Fitzgerald <email@hidden>)
 >Re: Count lines in a textfile (From: Joseph Weaks <email@hidden>)
 >Re: Count lines in a textfile (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: Count lines in a textfile
  • Next by Date: Re: Count lines in a textfile
  • Previous by thread: Re: Count lines in a textfile
  • Next by thread: Re: Count lines in a textfile
  • Index(es):
    • Date
    • Thread