• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Batch File Conversion - Help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Maintaining large website / finding many files
  • Next by Date: Re: yellow alert box
  • Previous by thread: Re: Maintaining large website / finding many files
  • Next by thread: Re: Batch File Conversion - Help!
  • Index(es):
    • Date
    • Thread