Hello
Please help with script for ‘set suppress printing to false’ for all images in quark documents.
Plus need to delete spot color (name of the color is the same in all documents) and replace it with Black.
Thanks.
Hello
Please help with script for ‘set suppress printing to false’ for all images in quark documents.
Plus need to delete spot color (name of the color is the same in all documents) and replace it with Black.
Thanks.
try this let me know how it works
tell application "QuarkXPress"
tell document 1
set suppress printing of images to false
end tell
end tell
as far as the spot color thing are you trying to replace the color of all objects with color 1 to to color 2(black)
lets see what you go so far
Now I have documents with all images suppressed for printing.
‘set suppress for printing of images to false’ does not work with error:
QuarkXpress Passport got an error: Can’t suppress printing of every images to false’
Any ideas how to solve this problem?
As for a spot color: I used to delete this spot color (actually it is black spot for text) manually and replacing it with CMYK black in all documents.
Hi Solar
This will work for the first picture box:
tell application "QuarkXPress"
tell document 1
set t to every picture box
repeat with i from 1 to count t
tell picture box i
set suppress printing to false
end tell
end repeat
end tell
end tell
this should give you a starting point to add to…
Has for your color change problem take a look at what these guys are up to: http://bbs.applescript.net/viewtopic.php?id=16600
Hope this helps
Hi Pidge1,
Getting the error ‘Can’t make some data into the expected type’.
And master page pictures still left suppressed.
Any ideas?
Hi solar
Is it a multipage document cause the script was only tested on a single page doc
you would need to repeat thru pages to get picture boxes in the other pages to suppress.
i would imagine you would have to point to the master page specifically as well if you want to alter any picture boxes etc… in there.
tell master page etc...
something like this!, you would need to look in the dictionary for the exact syntax
I’m not near a machine that has quark at the minute so can’t really test any code
tested on single page document without master pages and error is the same. script editor stops at ‘every picture box’
Hi Solar
When you say it stops at every picture box.
What error does it throw up.
i’ve just re tested this on a single page doc and it works fine!
if there isn’t any picture boxes it doesn’t do anything, not even error
in fact i’ve tried a few different set ups and i can’t make it error.
can you post a link to the quark doc?
save has 6.5 cause thats all i can get my hands on at moment!
It’s entirely possible you may have some kind of other system/program issue that is causing this behavior.
I’m using 6.5 (single language) on OS 10.39 and all of the above suggestions check out ok.
Run a search for other simple xPress scripts and see if they check out.
-N
Hi pidge1,
Error is the same ‘Can’t make some data into the expected type’. As for doc itself… maybe lets use skype or msn?
Just tested on 7.1 and works fine to set ‘suppress printing to true’ but does not work to set false:(
Anyway I have to use Quark 4.11 and OS 9.2.2 for this project.
Hi solar
Can’t figure out why it would work for setting to true then won’t for the opposite!
I don’t have skype or msn sorry, plus i don’t have os9 on any mac that i’m near sorry!
it must be some sort of configuration problem like Nedloh suggests, he as a good idea where you
can try and run a few very simple quark scripts to see what the results are.
the above script worked fine for me with both 7.1 and 6.5…
not sure what else to try really!!
Hi pidge1,
Thanks a lot anyway…
The problem is that Box itself ‘Suppress Output’ is OFF in original document. But the Picture ‘Suppress Picture Output’ is ON. This is result then suppressing Print of images is done over Usage of Pictures.
And this script is working with boxes and not pictures. Any ideas how to ‘set suppress printing to false’ for every Picture?
Solar,
this should work for you
tell application "QuarkXPress"
tell document 1
set suppress printing of every generic box to false
end tell
end tell
mm
This may work does for mr on quick test.
tell application "QuarkXPress"
tell document 1
set suppress printing of every generic box to false
set suppress printing of every image to false
end tell
tell master documents
set suppress printing of every generic box to false
set suppress printing of every image to false
end tell
end tell