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