• 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: Malcolm Fitzgerald <email@hidden>
  • Date: Fri, 17 Sep 2004 11:50:27 +1000

Joseph Weaks wrote:

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

On 9/16/04 5:17 PM, "Malcolm Fitzgerald" <email@hidden> wrote:

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


Paul Berkowitz asked:

Why the {}? It doesn't do anything (fortunately - otherwise it would error).


Emmanuel may know better than me :) Smile formats my code that way when it compiles.


Smile doesn't add those {}'s OMM. I've never seen that before.

I was wrong to say that it was Smile :) - Script editor does it too.

Of course, if I simply type "choose folder" it compiles to "choose folder".

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 {}.

Are you sure it's safe to leave the brackets off ;)


-- Malcolm Fitzgerald ph : 02 9318 0877 Database Manager fax: 02 9318 0530 The Australian Society of Authors <http://www.asauthors.org> _______________________________________________ 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: "John W. Baxter" <email@hidden>
    • Re: Count lines in a textfile
      • From: Joseph Weaks <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>)

  • 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