November 29, 200718 yr Newbies Hello, this is too easy to find an answer to! I've been searching for an hour or so for this simple script. I've only been able to find really complicated and special situations... Obviously I've never used applescript before. I have datbase that stores file references to MS Word documents (in contianer fields, of course). I'm creating a loop script to print out the document in a certain order. So I need a very simple script that will print the MS Word document, then close it. That's all. I can specify the filepath dynamically in the "Perform AppleScript" script step in FMP. Thanks! Edited November 29, 200718 yr by Guest
November 30, 200718 yr Author Newbies I figured it out ... I put this calculation into the "Perform AppleScript" script step: " tell application "Finder"¶ activate¶ print document file "" & Substitute ( GetValue ( fm_database_name::field_with_file_reference ; 2 ) ; ["filemac:/" ; ""] ; ["/"; ":"] ) & ""¶ end tell " And it works perfectly. However, it still displays the print dialog, which is fine, but I'd like to know how to prevent that. Does anyone know? Or is AppleScript a soon to be forgotten language?
Create an account or sign in to comment