Hello
Please could you help me with this code. I plan to run it from within
FileMaker Pro to allow users to print Microsoft Word do***ents that
have been previously saved in FileMaker.
What is supposed to happen:
The script launches MS Word, skips the startup dialogue box, prints
the do***ent and then tries to close the do***ent again. The error
comes when I try and close the do***ent.
Code:
tell application "Finder"
activate
select Finder window 1
open do***ent file "Macintosh HD:Users:me:FileMakerPrinting:Sample
do***ent.doc"
print "Macintosh HD:Users:me:FileMakerPrinting:Sample do***ent.doc"
close do***ent "Macintosh HD:Users:me:FileMakerPrinting:Sample
do***ent.doc"
end tell
Error Message:
tell application "Finder"
activate
select Finder window 1
Finder window id 46
open do***ent file "Macintosh HD:Users:me:FileMakerPrinting:Sample
do***ent.doc"
print "Macintosh HD:Users:me:FileMakerPrinting:Sample do***ent.doc"
close do***ent "Macintosh HD:Users:me:FileMakerPrinting:Sample
do***ent.doc"
"Finder got an error: Can't get do***ent \"Macintosh
HD:Users:me:FileMakerPrinting:Sample do***ent.doc\"."
Thanks very much for taking the time to look through the code.
Regards
Kevin Smith