Batch File Conversion - Help!
Batch File Conversion - Help!
- Subject: Batch File Conversion - Help!
- From: Bob Varipapa <email@hidden>
- Date: Wed, 8 Nov 2000 21:16:35 -0500
I wrote a script, listed below to convert about 35,000 Word 5.1 files
to PDF's using PrintToPDF (a very nice PDF print driver which will
save the files to disk)
With help from John (email@hidden) I have come up with the
following, which doesn't work (I get a context error on 'from' in the
"repeat with i in xa from 1 to count xa by 1" line).
Any help would be greatly appreciated.
Thanks, Bob
set x to "OS 9:TestFolder:"
set xa to list folder alias x without invisibles
set i to document 1
tell application "Microsoft Word"
activate
repeat with i in xa from 1 to count xa by 1
set xb to item i of xa
set i to ( x & xb ) as alias
open i
do Visual Basic " Application.PrintOut FileName:=\"\",
Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:=\"\",
PageType:=wdPrintAllPages, _
Collate:=True, Background:=False"
close document 1
end repeat
end tell