Re: Pages 4.3 and Mavericks - Can't export as PDF
Re: Pages 4.3 and Mavericks - Can't export as PDF
- Subject: Re: Pages 4.3 and Mavericks - Can't export as PDF
- From: Lists <email@hidden>
- Date: Mon, 04 Nov 2013 21:28:47 -0800
On Nov 4, 2013, at 4:54 PM, 2551 <2551phil@ gmail.com> wrote: I have been able to reliably export PDFs from Pages with AppleScript for a number of versions (both OS and Pages). Under Mavericks I am unable to export to PDF.
Is it necessary that you support Pages 4.3 or can you update to Pages 5? Pages 5 supports an export command, so something like this works fine:
use Pages : application "Pages" use scripting additions
set filename to "testExportPDF.pdf" set filespath to choose folder set filespath to filespath & filename as string export document 1 to file filespath with properties {title:"testExporttoPDF"} as PDF
I can't dump 4.3 yet. Other scripts won't work in 5, but you have a great idea and it works perfectly in Pages 5.
I added 2 lines and changed 1 line of my Pages 4.3 batch conversion script to make it work right with Pages 5. Back in business. Thanks!
In order to make Pages 5 invisible to the system while I'm running scripts for Pages 4 I put v5 in a sparse bundle disk image that mounts at startup.
To hide Pages 5 when needed I just eject its volume. One more step to remember, but overall a good fix for now.
I expect, much like the very early iWork, that scripting support will improve.
Thanks again. J |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden