• 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: Indesign data merge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indesign data merge


  • Subject: Re: Indesign data merge
  • From: Wayne Melrose <email@hidden>
  • Date: Fri, 15 Jul 2011 07:33:57 +0200


On 14. juli 2011, at 21.28, Paul Abney wrote:

I am looking for a reliable way to get the record count for an indesign data merge. The idea is to set up the merge fields in indesign, then my script will step through each record and create an individual indesign file as well as a pdf and name the files from an appropriate data field in the merge. This is a snippet of what I have:

tell application "Adobe InDesign CS5"
set myoriginal to document 1
tell data merge properties of myoriginal
set myDataMergeProperties to properties
set dmRcount to record range of data merge preferences
set dmRcount to word -1 of dmRcount as real
end tell
end tell

This works great, and I have the script working to do exactly what I want, EXCEPT....
If using the same indesign file and I select a new data source, the record range of data merge preferences does not change  and I end up with the wrong record count.

I have no clue how to get around this so any suggestions would be greatly appreciated.

Paul



Paul, I've never used the data merge properties before, however, I know there's been other preferences in the paste, (say the export pdf prefs) that had to be 'set' twice before they'd work. If you changed them on an opened document and tried to export, it would not update until the next export, my workaround was just to set them twice, it seemed to work.. 

So my first suggestion would be try getting your dmRcount twice from the prefs. and see if that works. 

Another suggestion would be to close and re-open the document between each merge, does that help? 



 _______________________________________________
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

  • Follow-Ups:
    • Re: Indesign data merge
      • From: Paul Abney <email@hidden>
References: 
 >Indesign data merge (From: Paul Abney <email@hidden>)

  • Prev by Date: Re: Google Chrome: Set variable to result of JavaScript
  • Next by Date: Re: Determine media type in iTunes
  • Previous by thread: Indesign data merge
  • Next by thread: Re: Indesign data merge
  • Index(es):
    • Date
    • Thread