Re: Compare documents with AppleScript
- From: Peter Jamieson <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 02 Dec 2009 00:47:38 +0000
Try
set doc1 to choose file with prompt "Please select a Word document file:"
set doc2 to choose file with prompt "Please select a Word document file:"
tell application "Microsoft Word"
open doc1
compare active document path doc2 as text
end tell
(doc1 and doc2 will either be alias or file objects - I am not sure. Sometimes commands are OK with the object, but sometimes they want a string)
Peter Jamieson
http://tips.pjmsn.me.uk
On 01/12/2009 22:51, Thomas_Röfer@xxxxxxxxxxxxxxxx wrote:
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel.
I am trying to compare two documents with a script that calls Word's
compare command:
set doc1 to choose file with prompt "Please select a Word document file:"
set doc2 to choose file with prompt "Please select a Word document file:"
tell application "Microsoft Word"
open doc1
compare active document path doc2
end tell
It seems that the command "compare" is not understood. The same is true
for the command "merge". However, according to the documentation, they
should exist.
What is wrong?
- Prev by Date: Re: Word 2007
- Next by Date: Re: Word 2008 encryption type
- Previous by thread: Re: When Word Files are Opened, They
- Next by thread: Re: Word display a strange message while we open a file for the first time
- Index(es):
Relevant Pages
|