Це відео не доступне.
Перепрошуємо.

How To Mail Merge On Mac With Pages, Numbers and a Simple Script

Поділитися
Вставка
  • Опубліковано 19 жов 2020
  • macmost.com/e-... If you need to do a "Mail Merge" to print out personalized documents from Pages, you can do it with a simple script. A table from Numbers can be used to customize text boxes in the Pages document and then you can print them all at once.
    FOLLOW MACMOST FOR NEW TUTORIALS EVERY DAY
    ▶︎ UA-cam - macmost.com/j-y... (And hit the 🔔)
    ▶︎ UA-cam Email Notifications - macmost.com/ytn ⭐️
    ▶︎ MacMost Weekly Email Newsletter - macmost.com/ne... ✉️
    SUPPORT MACMOST AT PATREON
    ▶︎ macmost.com/pa... ❤️
    #macmost #mailmerge

КОМЕНТАРІ • 78

  • @rudyatgmail7839
    @rudyatgmail7839 3 роки тому +6

    Thanks for this. I've been dipping my toe into scripting and this is a very useful example. Your technical level and pace is perfect for me. I thought to myself "What if I wanted to add student names to the files?" and there it is. Just the right level at just the right time.

    • @CedricMcCay
      @CedricMcCay 3 роки тому

      I promise you I thought the very same thing. I'd not want the task of going back in and renaming those files. Well, guess what... our good friend Gary saves the day. Again.

  • @lanejenner71
    @lanejenner71 3 роки тому

    I looked at the first minute of this and thought - too hard. But then I tried MS Word and other videos on Mac Pages. What a debacle. Macmost definitely gives the best information at the right level for general users. Thanks heaps.

  • @naomiwhite4136
    @naomiwhite4136 Рік тому

    Thank you! I'm a total newbie - never opened Script Editor before today, but I managed to make my document work. Brill!

  • @frizzstudio
    @frizzstudio 2 роки тому

    LOVE THIS!!! I appreciate people like you so much!! we were able to automate our 5th-grade promotion certificates so perfectly!! I went and signed up for your newsletter. Keep up the good work! Great tutorial, layout, speed, instructional!

  • @CedricMcCay
    @CedricMcCay 3 роки тому

    Again, it's really hard to state just how useful these videos are and your website. It's truly changed how I use my MacBook Pro and my comfort level in handling tasks which I thought were complicated. I'm very grateful for your sharing.

  • @crazyj484
    @crazyj484 3 роки тому +1

    Wonderful! Exactly what your viewers need that have mastered your more basic content. Thank you also for the zip file which is super handy.

  • @avcan
    @avcan 2 роки тому

    Excellent video thanks. Easy to understand, and worked perfect.

  • @thehman2007
    @thehman2007 3 роки тому

    Great example. It will help me immediately. We have to provide about 1,300 1099s each year and with this method I can create the pdfs and send the pdfs to the printer.

  • @pureelitetv
    @pureelitetv 2 роки тому

    Thank you for this. Helped a lot, I was just about to give up and go back to using word and excel

  • @carolgoetz8896
    @carolgoetz8896 2 роки тому

    Thanks for this. I just inherited a responsibility and have been searching for a feature within the two apps, Pages and Numbers, but couldn't find anything. That made me sad because I don't want to have to resort to Microsoft or Google apps to accomplish feat that has been pretty standard fare in the word processing industry. Now I'm happy.

  • @MedicalKnowledge0001
    @MedicalKnowledge0001 3 роки тому

    Thank you gary! I learned a lot from you. I am running my medical channel by using keynote animation and imovies.

  • @wahoo236
    @wahoo236 3 роки тому +2

    I'm a recent convert to Mac after decades of using Microsoft Office/Windows. I'm shocked that Pages/Numbers doesn't have some simple built in tool for mail merge (for creating lables) like Office had going back to at least Office 97.

    • @cyberagent2024
      @cyberagent2024 3 роки тому

      Kevin, Page isn't a full-fledge Wordprocessor and it's Free (included in the macOS). MS Office 365 is available for MacOS.

  • @jcccheung
    @jcccheung 3 роки тому

    Thanks so much Gary.

  • @user-cb1iz8mx9i
    @user-cb1iz8mx9i 3 роки тому

    Thank you very much! It worked!

  • @fourrastreamentoeenergialt4349
    @fourrastreamentoeenergialt4349 3 роки тому +1

    Very Good Video. Do you know how to merge image to pages from numbers?

  • @jiayaya
    @jiayaya 2 роки тому

    Thanks man

  • @conductingartistry2367
    @conductingartistry2367 3 роки тому

    Beginner hack: If your text boxes aren't in the right order/placement: Instead of altering the code, run a trial script, then just move the text boxes to the right places in your Pages file and reformat font/style as necessary. No need to change the code. It doesn't seem to affect the way the order is read by Script Editor. I couldn't figure out how to renumber many boxes in the code, and this was an easy solution. You can also go the other way and simply re-order the columns in Numbers to get the same effect (I think??)

  • @manuelpizzolato3023
    @manuelpizzolato3023 3 роки тому +3

    Every time I try to run the script editor, this script error comes up and I can't figure out how to solve it: Error: Error: The document “Letter Template” could not be exported as “export1”. The file doesn’t exist.

    • @conductingartistry2367
      @conductingartistry2367 3 роки тому

      I am having the same problem "The file doesn't exist". Can you help @macmostvideo?

    • @conductingartistry2367
      @conductingartistry2367 3 роки тому

      Resolved: I did not do the step of allowing full disk access. When I changed this it worked. Also make sure the file export path is correct. Thanks Gary this is my first coding experience and I am so grateful for your video!

    • @joefalchetto94
      @joefalchetto94 3 роки тому

      I had the same problem and I can add that an easy way not to mess up the path is to go physically in the folder you want to export the files into, open the informations and copy and paste the path of the folder in the Script Editor, followed by the name of the folder. This resolved my problem because the reale name of the folders (Users and Desktop) were in english, even if I have the italian language set in my computer.

  • @alfredogzz2
    @alfredogzz2 3 роки тому

    Great video, can you share the code for making this but with placeholders instead of text items? it'll be great since i can't get it to work.. thanks for being the only one who teach us to script in iwork and JS, greetings!

  • @MrCalimero1995
    @MrCalimero1995 2 місяці тому

    Nice video - Do you know how to get placeholder - if I use placeholders in pages?

    • @macmost
      @macmost  2 місяці тому

      Not sure what you are asking.

  • @technicolourmyles
    @technicolourmyles Рік тому

    I think you can solve the text boxes' inconveniences by using placeholders and giving them script names, right? I found a tool that does a mail merge that way, but I'm trying to figure out how to script it on my own, as I need it to do things it cannot do. Do you maybe know how a placeholder with a script name can be accessed by a script, like you're accessing the text boxes here? Thanks!

    • @macmost
      @macmost  Рік тому

      First, try the regular Mail Merge (added recently, ua-cam.com/video/6CB0sIfxEg0/v-deo.html). Second, no, I don't think you can use scripts to access placeholders like that.

  • @michaelbalzer2557
    @michaelbalzer2557 3 роки тому

    Hi Gary this looks like exactly what I need but I have not found the Script Editor on the Apple App store, how and where do I get it?

  • @joefalchetto94
    @joefalchetto94 3 роки тому

    Hi Gary, I was wondering one thing: what if I wanted to save multiple copies of the pages document instead of exporting? What kind of line of code should I use? Thank you very much in advance.

  • @andrewmaass4279
    @andrewmaass4279 2 роки тому

    I love this simple script. Everything makes sense. Unfortunately I get an error with doc.textItem[0].objectText.set(...). I'm getting a javascript 1700 error - Cannot convert types. Is there something special about setting up the text box in the document? Thanks.

    • @andrewmaass4279
      @andrewmaass4279 2 роки тому

      I got the script to work, though I don't know what I was doing wrong before. Thanks for this. I'm grateful

  • @elainebain4921
    @elainebain4921 3 роки тому +1

    Gary is there anyway to get your formulas on a printed sheet. I would love to try this. It would save time taking screenshots and going through each one. Or have you developed an app or solver that would do this?

    • @macmost
      @macmost  3 роки тому +1

      Do you mean the script from this video? Click on the link at the very start of the description to go to the post for this video on my site. I put code with the post.

  • @lubomirfranc2786
    @lubomirfranc2786 3 роки тому

    Hi Gary, nice and simple. I just struggle trying to save the pages document at the end of each loop as a new pages document without exporting it to PDF. I tried to come up with doc.save which kinda works but it does not save the changed document as a new one at the end of loop. It just overwrites the old document with new data and I end up with one document instead of 50 at the end of the script. Any suggestions? Thanks a lot.

  • @gauravchopra181
    @gauravchopra181 3 роки тому

    Hi Gary, You are a star and your channel is a great place to learn new things.
    I' m looking for a video where I can reply to a chart by inserting a column to the same chart in apple mail like in outlook or gmail however I have been unable to locate any video or information on this on your website also, could you please help.

  • @DanBrubaker1989
    @DanBrubaker1989 2 роки тому

    I would like if you could release a video on the Automator method. I've not been able to find a tutorial, or figure it out myself. Thanks!

    • @macmost
      @macmost  2 роки тому +1

      This is how to do it. Using Automator would just be the same script, but it is easier to handle in Script Editor.

  • @PatriciaHughes-StLouis
    @PatriciaHughes-StLouis 2 роки тому

    Keep getting Error -1719: Invalid index. What's up with that?

  • @luxdiscountfurniture
    @luxdiscountfurniture 3 роки тому

    I'm getting an invalid index error when I run the script. I see it finds the first cell in the numbers doc then I get the -1719 invalid index error.

  • @duckpond-studio
    @duckpond-studio 2 роки тому

    No , not this Apple Pages and Numbers had a simple mail mergr or drag and drop a customers info into the header of a doc such as invoice or quote how id that done?

  • @PatriciaHughes-StLouis
    @PatriciaHughes-StLouis 2 роки тому

    Extremely frustrating.... keep getting "Error -1719: Invalid index." with no resolution to the issue.

  • @gabrielvega2072
    @gabrielvega2072 3 роки тому

    Where can I get the script?

  • @la1649
    @la1649 3 роки тому

    Can you think of any reason why the trackpad would only work during the two minute diagnostic test but not working any other time

    • @macmost
      @macmost  3 роки тому

      No, sorry. Can't think of what could be wrong.

  • @sandiwagner6074
    @sandiwagner6074 3 роки тому

    I have a 'mail merge' envelope created for my Christmas cards w/placeholders plus a numbers doc which lists names and addresses of who I want to sent the cards to w/the headers titled the same as the placeholders. I 'merged' this last year & can't remember how I did it, dern it. But, I pulled up my #s doc along w/my 'mail merge envelope' and printed them one by one. That was fine as I only have a few, and it worked well. Would you happen to know what I did? : - ). TY for any insight or suggestions. PS - I don't want to use my Contact list for this. I have everything placed perfectly in my #s doc. TY!!

  • @debbiemcginnis394
    @debbiemcginnis394 2 роки тому

    How do you stop the numbers spreadsheet to stop wiggling

    • @macmost
      @macmost  2 роки тому

      Wiggling? Not sure what you mean by that.

  • @russelmason8841
    @russelmason8841 3 роки тому +2

    Not geared for the layman like me Gary, you lost me early.

  • @xx-ct5yh
    @xx-ct5yh 2 роки тому

    How do I get rid of those little red dots under a creative word?

    • @macmost
      @macmost  2 роки тому

      In Pages? Control+click and choose Learn Spelling or Ignore.

  • @jacobrodriguez1174
    @jacobrodriguez1174 2 роки тому

    having trouble downloading the files to my computer. keeps saying after putting in code: Error: Error: The document “ABC” could not be exported as “export1”. The file doesn’t exist.

    • @macmost
      @macmost  2 роки тому

      Check everything carefully. You probably have a bad file path in your script.

    • @jacobrodriguez1174
      @jacobrodriguez1174 2 роки тому

      @@macmost thanks, found the problem

  • @emmanuelleconway3414
    @emmanuelleconway3414 3 роки тому

    Thanks for the tutorial. I'm having trouble with the export and save task. I have 27 pages to export, what is the script for 27 pages? I see you have a script for 3 that you write as "i" if I understand correctly. Also it keeps telling me there's no file to save the document...I have created a file and I use the name in the script but it is still not working...any tips?

    • @macmost
      @macmost  3 роки тому

      The script will handle 3 or 27 pages. It doesn't have a hard-coded 3 in it. It is just the example spreadsheet table happens to be 3 rows. Check and recheck your file path as there must be an error there.

    • @emmanuelleconway3414
      @emmanuelleconway3414 3 роки тому

      @@macmost thanks for the reply, so can I remove the 'i' from the script? i'll recheck the file path. thanks again

  • @mdsoulsounds
    @mdsoulsounds Рік тому

    I knew sooner or later Gary would become too brainy for me. Script editor is complicated for me. Maybe a video on it?

    • @macmost
      @macmost  Рік тому

      Like this? ua-cam.com/video/GcPUJzmEuKE/v-deo.html

  • @timtae9369
    @timtae9369 2 роки тому

    whenever i do it it just says:
    Script Error
    Error: Error: The document “Untitled” could not be exported as “export1”. The file doesn’t exist.

    • @timtae9369
      @timtae9369 2 роки тому

      pls answer, my project is due next week..

    • @macmost
      @macmost  2 роки тому

      @@timtae9369 You'll need to be methodical and troubleshoot. Look at the Numbers document. Look at your Pages document. Look at the file path. Test and try everything.Download the example files I provide and see how your work is different.

  • @maxworton7450
    @maxworton7450 2 роки тому

    How do you export a PAGES or DOC please?

    • @macmost
      @macmost  2 роки тому

      From Pages TO a Word file? You do that in File, Export.

  • @Omar.Alamoudi
    @Omar.Alamoudi 3 роки тому

    Is is possible to have a script that you can place in a different folder, and it automatically runs given all input files are in the same directory? Instead of having Pages open for this script to work? Thanks

    • @macmost
      @macmost  3 роки тому

      Pages needs to be open. The script can ask things of Pages if it isn't open.

    • @Omar.Alamoudi
      @Omar.Alamoudi 3 роки тому

      @@macmost thanks for your reply. How to write the script such that it asks Pages for more info as you indicated?

    • @macmost
      @macmost  3 роки тому

      @@Omar.Alamoudi I show it using two cells to fill in two text boxes. If you want more, you just have to extrapolate on that.

  • @PatriciaHughes-StLouis
    @PatriciaHughes-StLouis 2 роки тому

    Tried it again with a different path to export. The freaking thing is still not working ... it only puts in the last item in the list :( ...... Looks like all the other comments were a year ago. I'm guessing this code is no longer working for 2021. :(

    • @macmost
      @macmost  2 роки тому

      Should still work. If it does one item, then the basics are there. You just need to debug to see where you have something wrong.

  • @duckpond-studio
    @duckpond-studio 2 роки тому

    I will not use any thing that has Grammerly ads

  • @MarkLightGroup
    @MarkLightGroup 2 роки тому

    This a very cumbersome process to accomplish what is a simple, everyday use of word processing software. Huge fumble on the part of Apple!!

  • @gerarddenormandie6307
    @gerarddenormandie6307 Рік тому

    Too much, talking, not to the point, and extremely confusing very bad teaching

    • @macmost
      @macmost  Рік тому

      Ouch. Sorry you didn't like it. I know I can't please everyone.

  • @HalStaniloff
    @HalStaniloff 3 роки тому

    Clunky, slow, and a security risk giving script editor full disk access. Pages needs to bring back mail merge support like it used to have.

    • @macmost
      @macmost  3 роки тому +3

      That's not really a security risk. Why would running your own scripts be a risk? Pages will never bring back Mail Merge, but it is easy to get an app like Word that has it.

    • @hartbeespoorthea9149
      @hartbeespoorthea9149 3 роки тому

      I totally agree! Have NO idea why they took it out. Also would like to see Mail Templates back!

    • @DanBrubaker1989
      @DanBrubaker1989 2 роки тому

      @@macmost This has always baffled me... Why would Apple not bring back Mail Merge?