Re: reading a file in an applescript.
Re: reading a file in an applescript.
- Subject: Re: reading a file in an applescript.
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 27 Mar 2008 11:01:59 -0400
On Thu, Mar 27, 2008 at 10:49 AM, Doug Meade <email@hidden> wrote:
> Anyway I got the compile error to stop...
> I had to add an ,
>
> So I changed
>
> set fileText to {read readHandle}
> To
>
> set fileText to {read, readHandle}
That will not cause a syntax error, but it sure won't do what you
want. {...} make a list. You want to get the result of doing
something, so you need parentheses. (...)
(...) and [...] and {...} are three completely different pairs of
characters. Computers will not forgive you for confusing them.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden