Re: Count lines in a textfile
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