Skip to main content
ronskyberg
Participant
February 23, 2010
Question

[AS] Linking to/copying graphics to a server location in ID CS4

  • February 23, 2010
  • 1 reply
  • 335 views

Situation:

I have an indesign CS4 document with a graphic placed locally from the desktop. I then via script copy that indesign file to a folder, and then copy the graphic files into a sub-folder. (that part works ok).

If I open the indesign document locally, it finds the local graphic files. If delete the local graphic files, and open the indesign document locally, it finds the server copy of those graphic files. If I open from the server, same type of results.

... I tried relink - here is the guts of it...

relink OpenFile's link <graphic> to <newpathlocation>

where <graphic> would be the graphic to update and <newlocation> is the server path; those parts of the script evaluate properly; I am getting the proper graphic name and the proper server path location.

What is the best way - via apple script - to have it always reference the graphic files copied to the server; even if the parts exist locally?

Thanks in advance -

RbS

This topic has been closed for replies.

1 reply

Inspiring
February 24, 2010

What you're seeing is InDesign behavior, so the only way to change it is to move the files, or try to reverse it using something like relink.

--

Shane Stanley <sstanley@myriad-com.com.au>

AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>

ronskyberg
Participant
February 24, 2010

I did try relink.

Script Moves parts to server location.

Script Moves Indesign file to server location.

Those steps work fine.

Scritp them attempts to relink using the following command:

relink openFile's link newloop to (pathtoIDfile & newLinkFIleName)

where newloop walks the links

I thought about deleting the content and then flowing the graphics back in, but I am feaful of losing any modifications (such as scaling, etc) that may have been applied.