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

AppleScript Read file in Filemaker


  • Subject: AppleScript Read file in Filemaker
  • From: Jim Marschke <email@hidden>
  • Date: Wed, 18 Feb 2004 05:49:44 -0800

I have an AppleScript which I run from within FileMaker using the [perform Applescript] script step. This script reads data from a text file in chunks so my database can process it. The data file comes from a piece of lab equipment that outputs a text file that is gibberish -- no delimiters or intelligent formatting -- which is why I need to parse it. I have considered switching to a plug-in, but I have many users and don't want to hassle with the licensing issues.

I'm running FileMaker 6 on MacOSX - Panther.

This script used to work, but something has changed and I now get errors (maybe Panther?). It does work fine if I run it in the AppleScript Script Editor, but from within FileMaker I get the error.

Here's part of the script:

repeat while filePos < (get eof file theFIle)
set theData to (read file theFIle from filePos to filePos + 30000)
tell application "FileMaker Developer"
set data cell "Data_g" of current record to theData as string
end tell
-- then run my script to process the data
end repeat
close access

The error is: Expected "," but found identifier. (Error - 2741).

FileMaker appears to be gagging on the "read file" in line two of the code.

Any ideas?
_______________________________________________
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.

  • Follow-Ups:
    • Re: AppleScript Read file in Filemaker
      • From: Malcolm Fitzgerald <email@hidden>
    • Re: AppleScript Read file in Filemaker
      • From: Brent Baisley <email@hidden>
References: 
 >Re: Simple? Tell FMP to open a database? (From: Bill White <email@hidden>)

  • Prev by Date: setting custom finder icons
  • Next by Date: Re: AppleScript Read file in Filemaker
  • Previous by thread: Re: Simple? Tell FMP to open a database?
  • Next by thread: Re: AppleScript Read file in Filemaker
  • Index(es):
    • Date
    • Thread