Charles, the core of the problem is that FileMaker has its own "read" command. This is covered in lots of threads on this and other lists. It's a great pity FileMaker has never changed the term for "read" (and "write") to avoid clashing with the Standard Additions "read" and "write" commands.
If you prefer to keep your script within FileMaker one method is to direct the read/write to another app: > tell application "System Events" to set the_text to (read the_file) Another method is to use raw codes. To read you would use: > set the_text to («event rdwrread» the_file) (and instead of "write" use "«event rdwrwrit»") Using raw codes can be tricky though because they'll always be translated back to "read" and "write" if you compile the script in an external editor (eg, AppleScript Editor, Smile) so you have to repeatedly replace them when you copy+paste into FileMaker. I often store my AppleScripts within FileMaker fields and run them from there ... once they've been debugged elsewhere :-) hth. -- Tim Mansour <[email protected]> Neologica Print & Promotions ABN 63 904 335 408 PO Box K1163 : Haymarket NSW 1240 Mobile 0405 500 846 : Melbourne in-dial 03 9012 7441
