Jump to content
Server Maintenance This Week. ×

Dynamic Export with applescript


This topic is 7134 days old. Please don't post here. Open a new topic instead.

Recommended Posts

This very basic example file shows how to use applescript and Mac OSX shell script commands to write data directly to the file name and folder name of your choice.

In this example, all exports go to the desktop but you can designate a folder if you want; and the folder will be created if it does not exist.

You can write text, XML, HTML, etc. See example records. Of course you can use standard filemaker techniques to manipulate the content of the exort file, use substitutions on a global field, perform applescripted XML maniupulation, append date to existing files, etc.

Bruce Robertson

ExportByShell.zip

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

>I can't find a way to use Applescript to Insert an actual file into a container field or to export the actual file to a file with the file name and folder name defined in the filemaker record.

AppleScript can't do this DIRECTLY. But it can call a script importing a file at a predefined location (always import "imports/file.txt". Use AppleScript to rename/copy the file there .....

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.