Erik, I'm using the "Export Records" command. After the set of records have
been found and sorted, I use code like this:

Export Records [ File Name: “file:Q/questions1.js”; Character Set:
“Macintosh”; Field Order: Untitled::a ] [ No dialog ]


On Sat, Dec 11, 2021 at 8:13 PM Erik Wegweiser <[email protected]> wrote:

> Are you using the File functions or exporting from the field?
>
> — E
>
> > On Dec 11, 2021, at 5:37 PM, Charles Hartley <[email protected]> wrote:
> >
> > Hi.
> >
> > I've created a script that writes the contents of a field to a .js file.
> The field contains 100 records, and the script correctly writes what it
> should. However, I would like for the script to prepend a certain line of
> text to the file before writing the field contents.
> >
> > Is that possible, or am I stuck with doing it manually?
> >
> > The FMP file contains 1000 records which are written, 100 at a time, to
> ten different .js files, and I need the same line of text to begin each .js
> file.
> >
> > Thanks,
> > Charlie
> >
>

Reply via email to