August 2, 200421 yr 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
September 6, 200421 yr Newbies Very good. Using Filemaker Pro 7's new feature to import any file into a container field, can Mac OSX shell script commands be used to insert a file as with the menu item "Insert/File
October 16, 200421 yr >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 .....
Create an account or sign in to comment