Skip to content

Instantly share code, notes, and snippets.

@Govan
Created June 25, 2010 19:43
Show Gist options
  • Save Govan/453344 to your computer and use it in GitHub Desktop.
Save Govan/453344 to your computer and use it in GitHub Desktop.
Applescript to batch convert .doc files to .pdf, more details here http://www.leftbrained.co.uk/articles/show/batch-converting-doc-files-to-pdf
set thefolder to choose folder with prompt "Pick a folder..."
tell application "Finder" to set filelist to every file of thefolder
repeat with currentFile in filelist
tell application "Pages"
open currentFile
activate
save front document in (name of currentFile) & ".pdf"
close front document without saving
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment