17 replies
Sign in or join Beachball Help to reply.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Pages v7.3 on Mojave will open Pages '06, '08, and '09 documents. The usual caveat is that if there are features found in these earlier document formats, including template features, that are not supported, or supported differently in Pages v7.3, then the PDF output may not be faithful to the original.
I don't have Pages '08 to test it for the export to PDF, but I still have scripts that I wrote for Pages '09 for that purpose, and these may also work with the Pages '08 scripting dictionary properties. If so, then you can explicitly use Pages '08 on Mojave to export the associated documents to PDF. I think we would both prefer that.
The weakness of any AppleScript solution when initially run on Mojave is security alerts that pop-up requesting that Pages wants to access Finder ... blah blah blah, and one needs to click OK on these.
I am out of town today, but do have all of the old AppleScript stored on iCloud Drive, so its accessible. Let me see what I have and I will get back to you.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you do not formally quit Pages 08, it will be the dominant "Pages" when the script is run, and it will fail the version test, as it is supposed to do.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Good to hear from you again.
Are you using the current Pages v7.3 on Mojave, which can open and export Pages '08 files to PDF?
I have an AppleScript that can be saved as a drag/drop application. It offers the option of an output folder for the exported documents that bear the same basename as the original. Otherwise, it will write the PDF back to the original Pages '08 document location. You can drag/drop individual, or mixtures of files and folders onto the application.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
No, I don't. I didn't like newer Pages after Pages 09. It might be better now but I do not know. I could install it.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Reading through your answer again. Are you saying that Pages v7.3 can read Pages 08 files? My problem is really that in the future Pages 08 will not work on newer MacOs so some how I want to be able to save my Pages 08 files in a format that the computer will be able to read. Can the new Pages batch convert from Pages 08 to v 7.3?
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Pages v7.3 on Mojave will open Pages '06, '08, and '09 documents. The usual caveat is that if there are features found in these earlier document formats, including template features, that are not supported, or supported differently in Pages v7.3, then the PDF output may not be faithful to the original.
I don't have Pages '08 to test it for the export to PDF, but I still have scripts that I wrote for Pages '09 for that purpose, and these may also work with the Pages '08 scripting dictionary properties. If so, then you can explicitly use Pages '08 on Mojave to export the associated documents to PDF. I think we would both prefer that.
The weakness of any AppleScript solution when initially run on Mojave is security alerts that pop-up requesting that Pages wants to access Finder ... blah blah blah, and one needs to click OK on these.
I am out of town today, but do have all of the old AppleScript stored on iCloud Drive, so its accessible. Let me see what I have and I will get back to you.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
That would be nice of you. Most of my Pages 08 document are not meant to make changes in.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
We are six hours apart. It is now 4:38 pm and I will look explore this further later in the evening after I get home. So something more concrete in the morning.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I spent some time this morning reviewing old AppleScripts and understand how to get a "Best" quality PDF out of Pages '09 v4.3 (testing on High Sierra). We can only hope that Pages '08 cooperates as well.
Probably the best solution is a drag and drop AppleScript application on your Desktop where you can drag mixtures of files and folders onto it, and it will generate the correspondingly named PDF file from the original Pages document name. I can provide a final dialog with total conversions.
Questions:
- Do you want the output PDF written back into the same location as the original Pages '08 document?
- Do you want to specify the output Folder, and have the PDFs written there?
- Are you using any Finder tags on the original Pages '08 documents that you also want on the output PDF?
- Any special requests?
- On Mojave, Pages '08 is in /Applications/Pages.app, or in /Applications/iWork '08/Pages.app?
I can provide a dialog that allows a decision on items 1 & 2.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
- I think this is the best option. The dialog options would be nice.
3. No, never bothered with it.
4 images must also be in the pdfs
5 I have two both options. The one in /Applications/ is named Pages 08.app
I have found on the net and here in the discussions some Applescripts but I get an error message and it is theDoc or similar that AppleScript doesn't like.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Forgot to say that I have installed Pages v. 7.3. I am thrilled that I can open Pages08 document in it. And that I don't have to have Pages 09 as it doesn't function any more.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Fruhulda,
It is reasonably simple to generate a PDF of the Pages '08/'09 document with AppleScript using the original application program. Both use the same save format. You have full control of the output destination, and images are in the PDF. The downside of simple is that you have no control over the quality of the PDF, and will receive general, but not "Best" quality in the output PDF. Almost all of the AppleScripts that you discover on the web using Pages '08/'09 to export to PDF will use this uncomplicated approach at the cost of PDF quality. Most authors don't realize the PDF quality issue.
The only means to extract "Best" quality PDF from Pages '08/'09 applications is to automate one of the following solutions:
- File menu : Export : PDF… : Best
- File menu : Print… : PDF : Save as PDF
I chose the second approach, and have the core AppleScript working to produce the "Best" quality PDF from Pages '09 on High Sierra. I will need more time this afternoon to complete the code, but as I don't have Pages '08 v3.0.3, to test the code on Mojave.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Fruhulda,
I am ten hours into attempting to write/test/debug a solution that works with Pages '09 v4.3, and I have code that separately works with drag & drop, or controlling the user interface on an already opened Pages '09 document — but combining both functionality ends with the document opened in Pages '09, and the UI code to cause a "Best" output pdf is simply ignored without errors.
So, I am reversing my original position, and suggest that you install Pages v7.3 solely for the export of your Pages '08 documents to PDF "Best" quality, and then you can remove the application on completion. I have existing code, specifically tested with Pages v7.3 on Mojave, that will allow drag & drop of Pages documents, and their explicit export to PDF.
Once you install Pages v7.3, the default double-click document application will be v7.3, unless Pages '08 is already running. Your Pages '08 documents, when opened in Pages v7.3, will remain unchanged — unless you attempt to edit the document in the newer application, and confirm the associated Pages v7.3 dialog to convert the documents. A script to just open the '08 documents, and then export to PDF will produce what is shown on screen. The caveat with these older documents is that if Pages v7.3 encounters any issue when opening the document (e.g. missing font reference, etc.), then the resultant warning dialog may cause the running script to halt.
How do you wish to proceed?
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi!
I have installed v. 7.3. I am amazed that It doesn't try to change all Pages documents to open in it as default, not even when Pages 08 isn't open first!. That was a problem with earlier versions, 09 etc..
I think we can proceed like you suggested above. Most of the time I use the Ariel font. Seldom any odd font is used.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Fruhulda,
I am providing you a Mojave 10.14.2 tested AppleScript that works with Pages v7.3. It is a superset of what you require, and I have changed the defaults for your purposes:
- The default is to write the PDF directly back to the Pages document location
- The default output format is PDF
In each case above, you simply press return on the dialog prompt to take the default:
And each document will be opened briefly, exported to PDF Best, and then closed. Finally, you will receive a summary dialog when the script has completed:
Mojave treats AppleScript based applications differently than in previous releases of the operating system, and now when you save the AppleScript as an application and it is run from the Desktop, you will get accessibility challenge messages. The following are in order for Pages_xmulti (arbitrary name) that I saved to the Desktop as an application:
In each case, click OK. This is however, a royal pain. So I suggest that you do the following before you even use the Desktop application, and suppress these nagging messages.
System Preferences : Security & Privacy (click the lock icon and unlock) : Privacy tab. Select Accessibility, and then click the + symbol. Add the name of your saved application name from the Desktop, so it has accessibility permissions. Click the lock icon, quit System Preferences, and then reboot. The preceding two dialogs will now be gone when you subsequently drag/drop file(s)/folder(s) onto the Desktop application.
Now, get the Script Editor launched with a single click: (Dock : Launchpad : Other : Script Editor)
Download the AppleScript source file from my Google Drive shared folder. This was a last resort after the new hosting software introduced extra linefeeds that corrupted posted source.
- Once downloaded, just double-click the AppleScript source to unzip it (Pages_export.applescript) and then double-click the .applescript file to open in Script Editor.
- Click the hammer icon (compile). A successful compile shows multi-color text in the editor.
- Do not click the Run button, as this is not an interactive AppleScript.
- Save the AppleScript
- As AppleScript source (text file)
- File menu : Save…
- Save As: Pages_export (in your Documents directory)
- File Format: Text (will automatically append .applescript to the Save As filename
- Line Endings: do not change
- Save
- As AppleScript application (executable)
- Option key + File menu + Save As…
- Save As: Pages_export (on the Desktop)
- File Format: Application
- No options are selected
- Save
- As AppleScript source (text file)
- Quit Script Editor
- Now you can drag/drop file(s)/folder(s) onto the Pages_export application icon on the Desktop.
- 0
fruhulda ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi!
It works! I did have problem at first with the compilation as it stopped due to the word myDoc. The I tried again and I got the beachball. Then I got the idea to Safe boot and open AppleScript there and now the compilation worked fine. Restarted the computer again in normal way and , yes, it worked again. I followed your instructions and I have batch converted some Pages 08 files to Pdf files.
Question: Is it difficult to change the script to batch convert Pages 08 documents to Pages v.7.3 files? Could be handy to have.
N.B. Pages 08 didn't work in Safe boot mode. Behaved like Pages 09 on Mojave.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Well, it should have been simpler than you experienced, but relieved that your persistence has rewarded you.
Question: Is it difficult to change the script to batch convert Pages 08 documents to Pages v.7.3 files?
Can't be fixed in the script because there is no such thing as a Pages v7.3 export format. The only way I have seen to do a document conversion is to manually attempt to change something in the opened Pages '08 document. That will trigger a Pages v7.3 dialog requesting permission to convert to the Pages v7.3 internal format. There is no export back to Pages '08 either.
Even if you manually open a Pages '08 document and then choose Option key + File menu : Save As…, you will get a drop down sheet like this:
This is also the dialog you receive when you attempt to change anything within the opened Pages '08 document.
If you click upgrade, the original is gone for good. If you click Edit a Copy, then you will receive another window with the same document copy opened, and a normal Save panel, where clicking Save will produce a Pages v7.3 document.