Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Close Do***ent ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1498 of 1674
Post > Topic >>

Close Do***ent - Microsoft Word

by KevinSmith <pleasedonotusethisaddress@[EMAIL PROTECTED] > Aug 28, 2007 at 04:53 AM

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
 




 5 Posts in Topic:
Close Document - Microsoft Word
KevinSmith <pleasedono  2007-08-28 04:53:11 
Re: Close Document - Microsoft Word
Dave Balderstone <dave  2007-08-28 07:02:45 
Re: Close Document - Microsoft Word
Jolly Roger <wbyylebtr  2007-08-28 08:32:00 
Re: Close Document - Microsoft Word
KevinSmith <pleasedono  2007-08-28 06:57:39 
Private Message
   2007-08-28 07:17:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 8:14:47 CST 2008.