Code: set theFile to choose file with prompt 'Please choose a Pages file' tell application 'Finder' set theFilesFolder to (folder of theFile) as text end tell tell application 'Pages' set theDoc to open theFile set theDocName to name of theDoc --I'm assuming that the file name always ends with '.pages' set theName to (characters 1 thru -7 of theDocName) as text export theDoc as PDF to file ((theFilesFolder & theName & '.pdf') as text) close theDoc end tell You should be able to run that from Script Editor. Note that I'm assuming you're just going to pass it Pages files, with a '.pages' file extension. If I have time, I'll write up how to add it to an Automator workflow to batch process later, although I've probably given you enough to work that out for yourself.
Hope that's some help. Click to expand.When I use the script above, I got always the error message number 6: 'Pages got an error.
How can I convert a large number of Pages and Numbers files into the. You could also use Automator and some. Using AppleScript to batch convert.pages to pdf. Batch convert Pages docs to.pdf. I want the PdFs to be equivalent to my Pages document] - I opened Automator but can't figure out how to work.
The document 'xxx.pages' can not be exported to 'xxx'. You don not have permission. Download Game Baseball Heroes Offline here.
(My mac is a dutch one, so excuse me for the bad translation) I even got this error when I select a document from the folder 'Documents'. I have written a similar applescript of my own, and it worked. But I think it stopped working when I upgraded to sierra. When I found a solution for the above script, I think/believe that I have found the solution for my wn script. Does anyone have encountered the same problem and knop the solution for my problem?
I'm trying to find a way to mass-convert the Pages files on my. -to-batch -convert-multiple-Apple-pages-to-PDF. Using Automator to convert Pages to PDF. You can create a droplet using the script in Batch convert Pages 5 files to PDF. How to batch convert.pages to.pdf with automator & applescript.