how to merge data from numbers into pages template

I'm wondering how one uses a name list in Numbers to populate a letter in Pages, for example a personalized NewsLetter I want to mail to each family member. I'm using macOS Big Sur 11.0.1, Pages version 10.3.5 (7029.5.5) and Numbers version 10.3.5 (7029.5.5). I did some hunting online and found Pages Data Merge.app But when I attempt to install I receive the message: “Pages Data Merge.app” cannot be opened because the developer cannot be verified. My options are to Move to Trash or Cancel. I've checked, maybe I just missed it ... but I cannot find a similar function app in the app store. I'd love to hear what the Community recommends.

Posted on Nov 19, 2020 6:26 PM

Reply

Similar questions

8 replies

Nov 19, 2020 8:56 PM in response to Cheryl-2000

Rather than downloading a third party app like Pages Data Merge.app I've had better results just using native Apple technology.


You can personalize your newsletter using a short JavaScript for Applications (JAX) script that gets information from a Numbers table and inserts it in the relevant places in a Pages document.


You don't need to know much about scripts to use this one. Just copy-paste into Script Editor (in Applications > Utilities), change the dropdown upper left from the default AppleScript to JavaScript and make some small edits in the first few lines to change the name of the Pages template to match yours and to "map" the column letters to your specific Numbers table.


The Pages template will be your newsletter, where you've selected text in relevant places and Format > Advanced > Define as Placeholder Text, then File > Save as Template, give it a name in the Template Chooser, and in the script change the name to match the name you have given it the Template Chooser.


After that, it's basically open the Numbers document and click to run the script. (The first time, make sure Script Editor is listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility -- or similar in Big Sur).


Here is an example for a letter. The process will be similar for a newsletter, but your Pages template will be a newsletter instead of a letter.


Working from this Numbers table:



And a saved template under My Templates in the Template Chooser at File > New that looks like this:




(The grey portions show where I selected text and chose Format > Advanced > Define as Placeholder Text. Normally they wouldn't be gray. The black parts are where text has been typed in, replacing any placeholders that were originally there. )


"Out of the box" (not much tinkering needed below the first line except to uncomment the print line when ready) this script will produce letters that look like this with a click:





Here is the script that you can copy-paste into Script Editor:



Or instead to get a quick feel for how this works I suggest downloading demo files and scripts here (Dropbox download). The relevant files are 'My Pages Template.pages' (which needs to be Save as Template into the Template chooser, 'Numbers to Pages letter mail merge.scpt', and 'Letter mail merge data.numbers'. Trying them out should take only a few minutes.


Then post a description of your Numbers data table, what information you want to insert into your newsletter, and any problems you are seeing. The script can easily be modified to suit.


The script assumes you want to print the (news)letter but if instead you want pdfs then that can be done also.


SG


Nov 21, 2020 7:20 AM in response to Firecop1

This was new to me until a couple of weeks ago, when I decided I would try to conquer this mail merge thing on Pages, after seeing recurring questions about it in these forums.


I think it is a mistake to try to understand it all before just trying it. Sometimes it's better to dive in and learn that way.


The files are available for download. It literally takes less than five minutes to give the process a try and see where it leads.


One of the good things about scripts is that they're almost infinitely customizable. That's also one of the bad things about scripts.😀


Anyway, am happy to try to answer the inevitable specific questions once you've done taken the the plunge.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to merge data from numbers into pages template

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.