6 Replies Latest reply on Sep 2, 2009 8:45 AM by tictacmoose1

    [AS] Trying to change Single Record number under data merge?

    tictacmoose1

      Any help would be great?

        • 1. Re: [AS] Trying to change Single Record number under data merge?
          wreyfmonkey

          Hi tictacmoose1,

           

          Can you be more specific about what exactly you are trying to do?  Are you talking about changing some of the data merge properties?

          • 2. Re: [AS] Trying to change Single Record number under data merge?
            tictacmoose1 Level 1

            Sorry for the lack of explanation.  I'm trying to edit the menu in data merge.  So far, I am able to edit the data merge options, but I can't edit the data merge properties or preferences.  For example, the following script works great:

             

            tell application "Adobe InDesign CS3"

            tell data merge options of document 1

            set fitting option to proportional

            set center image to true

            set link images to true

            set remove blank lines to false

            set document size to 1

            end tell

            end tell

             

            But what I have been unable to do is something like this:

             

            tell application "Adobe InDesign CS3"

            tell data merge properties  of document 1

            set record selection to all records

            set records per page to single record

            end tell

            end tell

             

            I get the error: "Adobe InDesign CS3 got an error: Can’t set record selection of data merge properties of document 1 to all records."  So I'm wondering how in the world I can change that "record selection" and "records per page" property to that my users don't have to interact with it directly.  I'm sure it can be done, but it appears it is beyond me!  Any help is greatly appreciated.  Thanks in advance!

            • 3. Re: [AS] Trying to change Single Record number under data merge?
              zeRafio Level 1

              try this:

               

              tell data merge preferences

              set record selection to all records

              set records per page to single record

              end tell

               

              • 4. Re: [AS] Trying to change Single Record number under data merge?
                wreyfmonkey Level 1

                That was worth a try, zeRafio, but your script errors for me.  Did it not error for you when you tried it?  I also changed it to "data merge preferences of document 1" with the same result:

                 

                Adobe InDesign CS3 got an error: Can’t set record selection of data merge preferences to all records.

                • 5. Re: [AS] Trying to change Single Record number under data merge?
                  zeRafio Level 1

                  tell application "Adobe InDesign CS3"

                  tell data merge 1 of document 1

                  tell data merge preferences

                  set record selection to all records

                  set records per page to single record

                  end tell

                  end tell

                  end tell

                  1 person found this helpful
                  • 6. Re: [AS] Trying to change Single Record number under data merge?
                    tictacmoose1 Level 1

                    This is where I am trying to go with this:

                     

                    tell application "Adobe InDesign CS3"

                    tell data merge 1 of document 1

                    tell data merge preferences

                    set record selection to all records

                    set records per page to single record

                    set record number to 3--or any number or i value I want to repeat with

                    end tell

                    end tell

                    tell document 1

                    tell data merge properties to merge records--and merge that one number

                    end tell

                    end tell

                     

                     

                    Setting the record number actually changes the field for single record but when I try to merge said number it does all the records. I am sure its an ordering thing but it is still causing some head scratches. You've all been really helpful with an area that doesnt seem to be detailed anywhere.

                     

                    Any help would be great. Thanks.