Note that it’s up to you to make sure that the documents you drop actually are Pages documents – the script doesn’t check and may error if you drop the wrong type of documents. Save the workflow and you should now have an app that you can drop Pages documents on. Set theName to (characters 1 thru -7 of theDocName) as textĮxport theDoc as PDF to file ((theFilesFolder & theName & ".pdf") as text) Set theFilesFolder to (folder of theFile) as text Replace all the purple text in the action with the following AppleScript: Next, drag a “Run AppleScript” workflow into your workflow so you have something that looks like this: Let’s look at how to do that.įirst, launch Automator (you’ll find it in your Mac’s Applications folder). Luckily, Pages is AppleScriptable so we can make our own action. Unfortunately, Pages doesn’t ship with Automator actions (although there are some funky third party options) The obvious way to make such an app is with Automator. It’d be great to make an app which we could drop our Pages files on and have them made into PDFs. In the spirit of sharing the knowledge, here’s how we did it. Recently we were asked how to use Automator to convert Apple Pages documents into PDFs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |