• 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: AppleScript Read file in Filemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Read file in Filemaker


  • Subject: Re: AppleScript Read file in Filemaker
  • From: Gary Lists <email@hidden>
  • Date: Wed, 18 Feb 2004 22:51:21 -0500

Jim Marschke wrote [2/18/04 9:48 AM]:

> I'll admit that the way I dealt with EOF in this particular script was
> clunky, but the real problem is that it will no longer compile and run
> in Filemaker -- when it did before.
>
> If I run the [perform Applescript] script step on a calculated field I
> get the error. If I paste the script into the script step as script
> text, Filemaker complies it when I click the OK button and immediately
> reports the same error. It also hi-lights whatever comes immediately
> after the read command (in this case the word "file").
>
> I'm thinking something is wrong with the syntax of the line:
>
> set theData to (read file theFIle from filePos to filePos + 30000)
>
> I am hoping it can be improved or worked around.
>
> BTW, I've messed around with file specifications etc. thinking that
> might be it, but no matter what I try the problem appears to be with
> the use of the "read" command from the AppleScript standard additions.
>
> Jim

Hi Jim.

I did read ahead in the thread and saw Paul B's reply, which is what I also
think is happening.

I had some similar experience yesterday with Smile and FileMaker, and I
solved it by wrapping my three read/write related lines in a 'tell me' block
when I was running in Smile and then in a 'tell Finder' block in my final
script.

Everything inside a FM script window (the editing window for the Perform
AppleScript step) is essentially inside a 'tell FileMaker' block, so we must
remember to tell someone else when we really need to.

I believe Paul's comment about targeting and terminology is the issue here.
--
Gary
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: AppleScript Read file in Filemaker (From: Jim Marschke <email@hidden>)

  • Prev by Date: OT Entourage send Meeting invite Outlook on PC
  • Next by Date: Re: OT Entourage send Meeting invite Outlook on PC
  • Previous by thread: Re: AppleScript Read file in Filemaker
  • Next by thread: Re: Re: AppleScript Read file in Filemaker
  • Index(es):
    • Date
    • Thread