Re: reading a file in an applescript.
Re: reading a file in an applescript.
- Subject: Re: reading a file in an applescript.
- From: Doug Meade <email@hidden>
- Date: Thu, 27 Mar 2008 11:07:08 -0400
- Thread-topic: reading a file in an applescript.
Title: Re: reading a file in an applescript.
Good catch thanks.
The editor switched to { and } when I added the comma.
Unfortunately... Looks like I’m back to square one
I get the following compile error:
Expected end of line, etc. but found identifier.
I don’t get it.
Everything I’ve read says the syntax I’ve tried (and you all have provided) should work.
I hate it when simple things become complicated. :)
Doug
> From: "Mark J. Reed" <email@hidden>
> Date: Thu, 27 Mar 2008 11:01:59 -0400
> To: Doug Meade <email@hidden>
> Cc: <email@hidden>
> Subject: Re: reading a file in an applescript.
>
> 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