2 Replies Latest reply on May 17, 2008 1:40 AM by (Darrin_Southern)

    Update Link

      Mac OS X 10.5.2 & Adobe InDesign CS3 (and possibly InDesign Server)

      Our InDesign documents have the linking to imported text turned on.
      We are manually updating each InD file, when the external text is updated.

      I'm not able to find any example code to run an Applescript to update the link, here's what I thought should work :

      tell application "Adobe InDesign CS3"
      update link "Text.txt"
      end tell

      Text.txt being the file name of the text in the same directory as the InD file and the name that appears in the Links Palate.

      Once the script is working, I can set up the Applescript for the images and XML on the page in InD.

      These scripts would also need to be updated for InDesign Server.

      Thanks in advance,

      Darrin.
        • 1. Re: Update Link
          sstanleyau Level 4
          On 17/5/08 4:52 PM, "Darrin Southern" <member@adobeforums.com> wrote:<br /><br />> tell application "Adobe InDesign CS3"<br />> update link "Text.txt"<br />> end tell <br /><br />You're not addressing any document there.<br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au>
          • 2. Re: Update Link
            Level 1
            Thanks Shane.

            tell application "Adobe InDesign CS3"
            set PathToFile to "MacBook Pro:Users:darrin:Text.indd"
            set user interaction level of script preferences to never interact
            open PathToFile
            set user interaction level of script preferences to interact with all
            tell active document
            update link "Text.txt"
            end tell
            end tell

            What better way to spend a rainy Saturday afternoon than 'learning' Applescript . . .

            Darrin.