My latest FMP solution is a little online bookshop manager that
involves exporting XML through an XSL stylesheet to create some static
HTML pages, for example one page per record. Naturally, I want to
rename each file using some local field value. This works great using
a calculated field for an ApppleScript that tells the Finder to rename
the output file.
Now, I want to cycle through a set of records: export a record, call
the AppleScript to change the filename in the Finder, then go back to
FMP, get the next record, and do it again until the recordset has been
processed. How do I integrate the calling of the applescript into this
loop? I don't really know how to get back to FMP to continue the loop
once I've called the Finder to do the name change.
Also, do I need to be concerned about execution timing between the two
scripting platforms?
~Tim~
Professional Techworks
Eugene, OR
Ursus - 29 Dec 2003 11:09 GMT
You can pretty easily use the scriptstep: Perform Applescript as a script
step. You can then either use a field as it's source, or even a calculated
field if values change (like one filename for each record). No problem.

Signature
Keep Well,
VintageUrsus
> My latest FMP solution is a little online bookshop manager that
> involves exporting XML through an XSL stylesheet to create some static
[quoted text clipped - 15 lines]
> Professional Techworks
> Eugene, OR