Re: Automating Quark picture update dialog
Re: Automating Quark picture update dialog
- Subject: Re: Automating Quark picture update dialog
- From: Hans Haesler <email@hidden>
- Date: Fri, 13 Apr 2001 11:24:00 +0200
On Thu, 12 Apr 2001, Steve Kump wrote:
>
HI list,
>
>
Is there a way to have Quark automatically update modified images without
>
presenting a dialog?
Hi Steve,
Preferences for any document have the pop-up menu "Auto Picture Import".
This should be set to "On (verify)". With "Off", the dialog regarding
missing or modified images comes up only when you want to print a page.
With "On", the modified images are updated "behind the scenes" and you'll
never know if an eventual update has been done correctly and where...
there is no dialog.
When you open a document by script there are three similar commands:
'do auto picture import no', 'do auto picture import yes' and
'do auto picture import ask'.
Now, you'd think that the second one would update modified images
without showing any dialog. Wrong. You'll get a dialog using 'yes'
as well as with using 'ask'.
The workaround: open the document using 'no'. Change the properties
for "Auto Picture Import" to 'On'. Save and close the document.
Open the document, again, this time with 'yes'. Any modified images
should be updated, silently:
---
set aDoc to "Macintosh HD:test_files:test_doc"
tell application "QuarkXPress 4.11"
activate
open aDoc use doc prefs yes remap fonts no do auto picture import no
tell document 1
set auto picture import to "TION"
end tell
close document 1 saving yes
open aDoc use doc prefs yes remap fonts no do auto picture import yes
end tell
---
Now, this works fine with "really modified" images. Note: When an image
is "missing", then there is no dialog, too. If it would be important to
have the status of every image set to "OK" then you must check this. But
don't rely on the properties 'missing' and 'modified'. I never use them.
Here is what I do: try to get the modification date of the image file.
If there is an error then the file doesn't exist. Else I can compare the
value with the modification date stored in the document.
All this doesn't help, when images are signalled as 'missing' but, in
reality, are at the correct location. In this case you can't update, or
load them again. You must quit and restart the application. We've had
this problem, from time to time, with QXP 4.04. I'm not sure, but I
don't remember having seen it with QXP 4.11.
Regards,
Hans
---
Hans Haesler | email@hidden