Re: InDesign relink and update picture
Re: InDesign relink and update picture
- Subject: Re: InDesign relink and update picture
- From: Jon Pugh <email@hidden>
- Date: Tue, 13 Nov 2007 10:16:40 -0800
At 4:46 PM +0100 11/13/07, Håvard Graudo wrote:
>Can I relink a picture in InDesign and update it in one go?
>
>
>
>I have a script that insert pictures. If there is a picture in the box, properies are kept and my script will:
>
>tell document 1 of application "Adobe InDesign CS3"
>relink thisItemLink to someFileReference
>update thisItemLink
>end
>
>The undo-buffer will read: undo update, undo relink [...]
>
>That is correct, but to the user, running the script is considered "one operation", and may be undone. However Command-Z will undo only the 'update' and keep the 'relink'.
>
>To the user the undo seems successfull - the preview changes back to the original picture, but the link is still pointing to the undone file, and will be silently replaced at next update. (Undo twice works, but is not ideal.)
>
>Can I get this done i one undoable command?
I don't believe you can from AppleScript. That's a good feature suggestion for InDesign though. They should create a CommandSequence for the script's run which would combine all the other operations into one step for the Undo stack.
You could write your own script runner from the InDesign SDK in C++, but I'm certain that's not what you are looking for. ;)
Jon
_______________________________________________
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