10 replies
Sign in or join Beachball Help to reply.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Let me see what AppleScript I can put together for you. Probably not until tomorrow.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I chose to not write a drag/drop application, and instead this is intended to be an interactive (double-click) application that prompts you for file(s) and/or folder(s) to process. Glad to have helped you save some time.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Long-term, you might be better off converting the .doc to .docx, than to Pages document format. Microsoft is less likely to tamper with the .docx specification, than Apple is with future releases of Pages. History demonstrates this point with Apple.
I currently only have AppleScript solutions written to automate Pages document exports, and will have to look into what you want to accomplish, if Pages will allow it.
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have just tested a short AppleScript that opens a .doc and saves as a .pages document.
There are options when batch processing files:
- A folder action where you drop a folder of Word documents on a designated folder with assigned folder action, and the batch processing occurs.
- An AppleScript application, where you just drop a folder of files on the application, and it does the batch work
- An interactive AppleScript application that prompts you for the source folder, and optionally, a destination folder where the .pages documents are written.
- By default, the .pages documents are written to the source folder containing the .doc documents
- 0
bassdon ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I appreciate the apple and future of pages warning but I have no need for any word docs as I only use macs and icloud and pages is just simpler for me. That said an Applescript would be perfect. I tried to construct one but never could figure it out - are you willing to share yours and I'll try it! Any of the options for source and destination are fine. Thanks -
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Let me see what AppleScript I can put together for you. Probably not until tomorrow.
- 0
bassdon ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks very kind of you - much appreciated!
Don
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have created an AppleScript that successfully converts mixtures of Word (.doc and .docx) documents to Pages documents using Pages v7.3. This was tested on High Sierra 10.13.6 and Mojave 10.14.2. It is an interactive (double-click) solution that borrows on an existing Automator workflow that you have created previously. Documents are written back to their original filesystem location with just the .pages document extension changed in the filename.
Creating the Automator Workflow that you will need
- Dock : Launchpad : Other : Automator
- New Document : Workflow : Choose
- Locate the following action in its library, and drag right-ward into the large workflow window
- Pre-Mojave: Files & Folders : Ask for Finder Items
- Mojave: Finder : Ask for Finder Items
- Configure than action as follows (Mojave view shown) (there is no step 4 thanks to the hosting s/w).
- Save… to /Users/yourname/Library/Workflows with name word_files_folders.workflow
- The AppleScript will reference this workflow and create a pop-up dialog which saves around 20 lines of code.
- Quit Automator
Building the AppleScript-based application
- Dock : Launchpad : Other : Script Editor
- Click the preceding note icon to expose the AppleScript source
- Select all of the source and copy/paste into the open Script Editor
- In Script Editor, click the Compile (hammer) icon and the text should change from violet to mixed colors.
- Save the AppleScript source code
- File menu : Save…
- Save As: word2pages (no extension)
- Put it in your Documents folder
- Format Text
- Unhide Extension (adds .applescript to the Save As filename
- Save
- File menu : Save…
- Save the AppleScript as an Application
- option + File menu : Save As…
- Save As: word2pages (no extension)
- Desktop
- Format: Application
- Options: None selected
- Save
- option + File menu : Save As…
Running the Application
Only on Mojave will you get challenged by Apple Event security issues introduced with Mojave. The preceding application will pop the following dialogs, which you will click OK on each one. In my experience, this is needed only the first time that you run the application. Afterward, and across a reboot, the script will run without these prompts.
During my testing, I named the application "wip" for work in progress, so that is the application name that appears in these dialogs (which only occur in Mojave or later):
- Dock : Launchpad : Other : Automator
- 0
bassdon ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This was awesome - saved me a ton of time! A few of the files did not convert when initially dropped in a group but did fine when I dropped them the 2nd time. Really really appreciated! Thanks so much for your time and assistance -
- 0
VikingOSX ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I chose to not write a drag/drop application, and instead this is intended to be an interactive (double-click) application that prompts you for file(s) and/or folder(s) to process. Glad to have helped you save some time.