Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indesign merge, can't understand dictionary



'm trying to select a source csv file and merge it into an Indesign document. I don't understand the Indesign data merge applescript dictionary.  It is a simple operation in real time, pull down automator menu and select data merge.  It gives you an option palette to select the source document.  Set a few preferences like create documents for a range of records.  Then there is the option create merged document.  But in applescript it is a whale of another color.  The following script is what I want it to do but I can't figure out how to name all of the objects, and references.  I already have the placeholder fields in my document so while it is open and I call data merge it should just import the data into the right text boxes.

There aren't really any commands except in the preferences.  I can't understand even how to call the data merge.  The select data source command is a
command of the data merge preferences.  The data merge is a class of the preferences suite.  The data source file is a property of the data merge preferences.  The data merge options are a class of the preferences suite and a property of the basics suite.  This doesn't tell me very much.

Any ideas, encouragement, or direction on where to go.  Would this be easier in applescript studio?

tell application "Adobe InDesign CS2"
data merge    option
    select data source "Mac OS X:Users:jrough:desktop:mergeRecordsDoc"
    data merge option set parent document = active document
    set record number preference to record number = 1
    data merge option create new document = t
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.