• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripts or example scripts for Pages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripts or example scripts for Pages?


  • Subject: Re: Scripts or example scripts for Pages?
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 27 Feb 2009 10:44:36 +0100


Le 27 févr. 2009 à 01:36:24, M Pulis a écrit :

I am looking for scripting example for Pages. My objective is a mail-merge function. Trying to read the pages dictionary and getting a bit lost as to implementing this properly.

Thanks!

As far as I know there is no provision to drive the merge feature thru AppleScript.
So you will have to use GUIscripting which is odd.


My own track is to use my own merge scheme.

In the Pages document I insert my own merge fields defined like these ones

<<Title>> <<Name>>
<<Address>>
<<Zip>> <<City>>

<<Email>>
<<Name>>

Then I uses a script grabbing datas from a Numbers document.
It insert the value where are stored merge fields.

At this time it uses and old code because it was built for iWork '08 whose Numbers was not scriptable.

Rebuilding it for iWork '09 is on my long todo list ;-)

You may get the beast from my idisk:
<http://idisk.me.com/koenigyvan-Public?view=web>

download:
For_iWork:For_Pages:fusion_dans_Pages.zip

You may also scan the public folder and download other scripts if you wish.

Yvan KOENIG (from FRANCE vendredi 27 février 2009 10:44:11)


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Scripts or example scripts for Pages? (From: M Pulis <email@hidden>)

  • Prev by Date: Re: using a shell variable in an osascript line?
  • Next by Date: AS + MS Word 2008 and vertical alignment in table cells
  • Previous by thread: Scripts or example scripts for Pages?
  • Next by thread: using a shell variable in an osascript line?
  • Index(es):
    • Date
    • Thread