Print only certain colors PostScript [JS, CS3]

Is it possible, via a script to output only certain colors of ink when printing to a Postscript file? When do it manually, you can choose the colors to the exit, but I was not able to find a way to do this via a script. Any ideas?

Well I think I have this working now. Here is the code:

// This script works by doing a few things. First, it will delete any ink that isn't actually on the document and in use.
// Then it will prompt the user to choose what inks they want to output. Once the script has those ink choices,
// it will decide, via four if statements, what colors to output. There are four if statements to handle all the combinations
// of cyan and black outputs. The other colors checked (red, blue, etc.) will be printed from within all the ifs.
// Once it knows what colors to output it creates a preset based on those criteria, and then uses that preset to
// output the file. After the file is printed to Postscript it deletes the preset and saves and closes the file.
// If the preset doesn't get deleted for some reason, it will simply be overwritten the next time the script runs.
// I figured it would be cleaner if it would delete it each time.

if (app.documents.length == 0)
{
alert("No document is open.")
exit();
}

var myDocument = app.activeDocument;

v =myDocument.unusedSwatches.length-1;
while (v >= 0)
{
  try {
   myDocument.unusedSwatches[v].remove();
  } catch (_) { }
  v--;
}

inklist = myDocument.inks.everyItem().name;
checklist = [];

//creates dialog box
var inkDialog = app.dialogs.add({name:"F4 2up LH", canCancel:true});

with (inkDialog.dialogColumns.add())
{
        with(dialogRows.add())
        {
            var choiceText = staticTexts.add({staticLabel:"Choose ink(s) to output:"});
        }
        with(dialogRows.add())
        {
            with(dialogColumns.add())
            {
                for (i=0; i

So far, it has worked beautifully. Thanks for any help at all. If there is anything that looks like, it needs to be changed please let me know. It's been a while since I've done something like this.

Nate

Tags: InDesign

Similar Questions

  • DeskJet 970Cxi: Deskjet970Cxi prints only one color

    My Deskjet 970Cxi prints only red in the color mode.  The cartridge is new and everything is cleaned.

    When the cover is open, the pointer on the cartridge holder stops at the position "OK to print cartridges".

    I tried reinstalling the driver, but I don't know that I managed to do that.  I got the idea that HP doesen't supports this printer more they told me to use the driver that is built into the software to my Windows 7.

    Any clue?

    The question is probably a very old #78 cartridge, even though it was new in the box.  You can verify that this is the cartridge by gently dabbing the printhead on a damp cloth.  A working cartridge will have a strong task of cyan, magenta and yellow.  Your cartridge will show only magenta.

    You can check the date of end of warranty for the cartridge as shown in the document here.  So that the 78 cartridge has not any expiry as such that they may not print in one color if stored for an extended period.  There are a few "home remedy" measures that could be taken to recover printing cyan and yellow, but the best solution would be to get a new cartridge (fees).  You can find the end of warranty date (two years from the date of production) in the bottom right of the back side of the packaging unopened.

    If you want to retrieve the cartridge, you can try one or more of the following:

    • Treatment of the cup of tea: get a glass of water and put in 1 "more or less very hot (but not boiling) water.   Deposit of the cartridge into the Cup and let soak for about 10 minutes.  Then, take the cartridge out and Pat the nozzles on a wet tissue.  Wipe the contacts with a clean or similar coffee filter not fluffy.  Install the cartridge in the printer and print a test page.  (You can print a hardware test page in accordance with method 4 of the document here.)
    • Sock of treatment: get an old sock that bothers you not ruin.  Put a wet cloth against the nozzles, then put the combination in the sock with the nozzle pointing in the toe.  Now go outdoors to an open area and quickly swing the autour sock in a large circle for a minute or two.  When done remove the cartrdige and gently pat dry the nozzles on a wet cloth, then put it in a printer and see if things have recovered.

    [Did I mention the best bet is to get a new cartridge?]  ]

  • a visualization with only certain colors, like the shades of indigo is it possible or available on a later version?

    I have the windows media player 11.  I would like to limit the colors on the visualizations OR have a visualization with only some colors.  Is it possible or available on a later version?

    or is it available with limitation of color visualizations as a feature?
    Thank you

    Hello

    Unfortunately, there is no ability to customize a specific visualization, but you can try the other visualizations:

    http://Windows.Microsoft.com/en-us/Windows/Windows-Media-Player-visualizations?locale=409&geoid=F4&version=12.0.7601.17514&UserLocale=409

    It will be useful.

  • How can I configure black & white print only, not color copies?

    need to put in place print in black only printer Deskjet F4480

    Hello again Lowrs12,

    Another option in preview is: file/print then open printer features/glance to the color mode and there choose grayscale.  Just another option... Good luck!

    Best,

    stix4

  • F4200 HP printer prints only 1 color page correctly

    You have a strange problem with my all in one printer F4200.

    Bought a new (good ink HP) ink cartridge

    Since then, whenever I try to print more than 1 page colors after the 1st page crazy sometimes printing red sometimes yellow etc. ' (1st page colors are fine).

    cleaning of the cartridge did not help

    any solution before I go and buy a new cartridge?

    There may be a problem with the cartridge, or you may be able to clear up the problem with a bit of troubleshooting.  Follow the steps outlined in the document below to try to resolve the problem.  If this does not work, replace the problem.

    Colors from bleeding into the other

  • OfficeJet6700: Print only two color cartridges

    My Officejet 6700 is only an impression with 2 cartridges 3 colours.  Print cartridges Magenta and yellow, but isn't the Cyan.  I ran tests, cleaned and aligned the printer but when I print my tests I see the blocks where the results of the Cyan cartridge should appear are empty.

    By reading the support forum, I am inclined to believe that there is a problem with the print head.

    Everything about the printer works very well and it would be a shame to have to replace the printer.

    (1) what else can I do to confirm the problem and the cause of the problem?

    (2) if it is the print head, what are my options for repair or replacement?

    Thank you

    Eric

    I brought your question to the attention of a team within HP. They are likely to ask for information from you to get your information or product serial number. Please search for a private message from a contact HP identified. Also, remember not to publicly post information and series numbers.

    If you are unfamiliar with the operation of the function of private messages of the Forum, this post has instructions.

  • Sudden failure to print photos in color (only photos)

    Operating a HP Photosmart C309g printer with OS Windows 7 64 - bit.

    Have printed several color photos, but suddenly will be only black and white printing.  Ordinary color scanning and printing is fine - just photos.

    Through a series of normal printing windows that display the image in color until the very last print statement when the picture goes to black and white.

    Verification of diagnosis on the printer shows all ok

    Tim, I would re - install the software that gives you problems.

  • HP 4480 print with the color cartridge only.

    The all-in-one Deskjet printer copied a page and printed it happened to be all black text, and I did the copy without using the computer.  When I tried to do the same thing with the second page, only a small symbol of color in this page appeared on the paper.  I tried a new black cartridge, without result; the alignment sheet was only the blue rectangles and an arrow pink.  I tried to clean the printer heads and saw only the colored rectangles, not blacks, on the test page.

    There are a few spots on a page where the ink is gray instead of black, but everything is readable.  Maybe I soaked too long cartridge.

  • M251nw color LaserJet pro 200: does print in black only, no color

    All of a sudden, my m251nw color laserjet pro 200 prints only black. Cartridges changed (C/M/Y) without modification. Toolbox shows that they are all 100%, but nothing will be printed in color, not even the Demo Page. Anyone able to help?

    Updated the firmware from hp, and it fixed the problem.

  • Officepro HP 8600: How to bypass the color cartridges empty on my HP Officepro 8600 to print only in black

    I am wanting to print Grayscale / black only, still does not allow me to print because I have empty color cartridges.

    How can I get around this?

    I tried changing the settings

    Thank you very much

    While printing in black is only an option when the color is low, it is blocked once a cartridge is exhausted.  You will need to replace the depleted cartridge. Page 94 of the said the manual here:

    Printing in black ink or color only

    For regular use, this product does not print using only the black ink cartridge when the color cartridges are out of ink. However, your printer is designed to allow you to print as long as possible when your cartridges are starting to run out of ink.

    When there is enough ink in the print head, printer will offer you the use of black ink only when one or more cartridges color is out of ink and color ink usage only when the black cartridge is out of ink.

    • The amount that you can print using the black or color ink is only limited, so the available spare ink cartridges when printing in black ink or color only.

    • When it is no longer sufficient ink printing, you will get a message from one or more cartridges are exhausted, and you need to replace the depleted cartridges before you resume printing.

    HP and other printer manufacturers have technology another printer for different needs.  For ink jet printers:

    • Some have integrated into the ink cartridges print heads.  These printers can print generally with one or more of the colors completely empty, or even with color or black cartridges (but not both) removed. The 8040 a Officejet is an example.
    • Other printers have separate replaceable printheads and inks.  An example would be the printer Officejet Pro 8600.  In these printers print head can be replaced if they are damaged by running the printhead with colors off.  Some of these printers allow printing with a color, the other will not.  If the printer is run without ink in one or several colours, the printer may be damaged, but the user may be able to recover without having to send to the printer for the service.
    • Other printers have permanent print heads.  To run only those without little ink in all colours would risk causing damage to the print head because of clogs, air ingested in the printhead or grilled printhead resistances of shooting. The Officejet 6700 is an example of this type of printer. For printers with fixed print heads that could require the service to get the printer to print properly again when the ink is finally replaced.

    The document described here how the ink is used.  The document is written for inkjet printers HP the same principles apply to printers inkjet from other manufacturers.

    If you do ever print color laser printer would probably be a better choice.  If you occasionally print color but especially black a HPI printer as those in the first category above can be a good choice.

  • Color LaserJet CP1518ni: HP Universal Print Driver for Windows PC (64-bit) will only print black on Color LaserJet CP1518ni

    HP Universal Print Driver for Windows PCL6 (64-bit) will only print black on Color LaserJet CP1518ni

    Also, would like to have the complete software program to download rather than just the universal driver.

    Hello @wyodude

    Try this

    Go to devices and printers and right click on printer properties then go to device settings and go almost all the way down to the type of device a color change and save the changes then go in the printer preferences and in the color tab, make sure that in its unaudited grayscale printing option

  • HP Color LaserJet CM1312 nfi no print only one page (document)

    Hi all.

    I'm in big trouble with Color LaserJet 1312 nfi (on 2 PC). Printer still print ONLY a single document (regardless of the number of pages) that I can't continue. I have to restart computer or the user to login and I print a new document. Scan OK.

    PC config:

    Windows 7 x 86

    connect via the USB port (but LAN made the same mistake)

    PCL6 driver

    I tried:

    reset to factory default

    the latest firmware update

    connect via LAN instead of USB

    Print via another PC (printer sharing)

    connect the printer to the other PC (USB, LAN)

    install the drivers of PCL5

    turn off Mopier mode (not available)

    Win XP - OK (printer so no problem)

    Any ideas?

    Thank you.

    Hello.

    Installation new version Universal Print Driver for Post Script - no change.

    I tried a thousand ways and WE work:

    install driver of the old school-HP Laser Jet III from Windows Update.

    I hope it helps someone...

  • Printer laserjet CP1215 color range. Only prints B & W cartridges but the colour.

    I have a color laserjet CP1215 printer. I set the printer to print only black and white and it prints only black and white. Then why my cartridges color short ink? Thank you

    Hello

    Thanks for the post.  I have attached a document below may have useful information regarding about printing with your CP 1215.  Good luck!

    http://support.HP.com/us-en/document/c01416937

  • You can apply an overlay of colors for only certain elements in an image?

    I was hoping to add some color to only certain articles (texture) and was eager to find where it is not overlay everything. Would appreciate any help I could get. Thank you

    PLC

    Yes you can do this simply by making a normal selection

  • Button that prints only printing certain pages

    I have a large document, the first four pages, which can be a stand-alone document.

    I've set up a print button that uses Execute a menu item > file > print, for users who want to print the entire document.

    I would like to create another button that prints only the first four pages - is it possible?

    Thanks in advance

    Yes. Configured to run the following JavaScript code:

    This.Print (true, 0, 3);

Maybe you are looking for