• 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: reading a file in an applescript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: reading a file in an applescript.
      • From: Doug Meade <email@hidden>
References: 
 >reading a file in an applescript. (From: Doug Meade <email@hidden>)
 >Re: reading a file in an applescript. (From: Doug Meade <email@hidden>)

  • Prev by Date: Re: Focus message window
  • Next by Date: Re: reading a file in an applescript.
  • Previous by thread: Re: reading a file in an applescript.
  • Next by thread: Re: reading a file in an applescript.
  • Index(es):
    • Date
    • Thread