Automate Loading of Transparency Flattener Preset

For a project I'm working on we need for our users to have a particular transparency flattener preset loaded. I'm not finding a way to load it ahead of time. I can verify if it's loaded, which is helpful:
tell application "Adobe Illustrator"
     set flattenerPresets to flattener presets
     if flattenerPresets does not contain "NameOfFlattenerPreset" then
          --do whatever magic is necessary to load the preset
     end if
end tell
Because of a bug in Illustrator I can't use UI scripting via AppleScript to automate the import. The issue here is that Illustrator doesn't respond to the "click" command properly when it comes to checkboxes and buttons.
Another option would be to just place a copy of the preset file into the proper location on the hard drive so that Illustrator sees it. Problem is, I can't seem to determine where that is. Adobe seems to be hiding it somewhere. I manually loaded a preset and then moved it from that location on the hard drive. I re-launched Illustrator and it still had the preset.
At this point I'm not sure how to automate the loading of this preset. Any and all suggestions would be greatly appreciated.
Thanks,
Stephan
Version Info:
Illustrator CS4
Mac OS X 10.5.8

I don't think its possible to load a preset from AppleScript. Can't your script just supply the flattening options at which ever point they are required?
tell application "Adobe Illustrator"
set This_Flatten to {class:flattening options, clip complex regions:true, convert strokes to outlines:true, convert text to outlines:true, flattening balance:100, gradient resolution:600, overprint:preserve, rasterization resolution:300}
end tell

Similar Messages

  • Why can I not select the transparency flattener preset option when exporting to a pdf?

    Hi all,
    I have not had to use this option in quite a while so may have forgotten a few things.
    In InDesign, under Edit>Transparency Flattener Presets, I have created a new preset and included the option of converting all text to outlines.
    However, when I try to export to a PDF, the option to select a transparency flattener preset is greyed out.
    Can you tell me what I may be doing wrong? This is driving me crazy!:(
    (There was originally no transparency in the file, so I created some with a white square set to 0.5% opacity).
    Thanks in advance for your help!
    Best regards,
    Christine

    DesignerDave72,
    Thank you SO MUCH!!
    I have been battling with this for over an hour...and it was frustrating me no end. 1 minute into reading the article you suggested and I was home free!! THANK YOU...!! You're my hero!
    Best regards,
    Christine

  • Set 'transparency flattener presets' to [High Resolution]

    http://help.adobe.com/en_US/illustrator/cs/using/WS9327D15E-A9FF-4698-BDA5-8791A891D061.ht ml
    I am editing thousands of images that need to be exported as High Res .eps's.
    Is there a way to make [High Resolution] the default rather than [Medium Resolution] ?

    edit this file
    user/(yourname)/library/preferences/adobe Ilustrator 4 settings/en us/Transparency Flattener Presets
    Collection 2 is your default so I edited those values to match the screenshot below hope I got them right. Replace the code with below (keep a backup of original just in case)
    /collection3 {
    /attributes {
    /AI9\ Mesh\ Rasterization\ Resolution 144.0
    /AI9\ Output\ Rasterization\ Resolution 288.0
    /AI10\ flattener\ raster-vector\ balance 75
    /AI10\ flattener\ clip\ complex\ regions 0
    /AI10\ flattener\ outline\ strokes 1
    /AI10\ flattener\ outline\ text 0
    /collectionName [ 16
    5b4c6f77205265736f6c7574696f6e5d
    /canEdit 0
    /canDelete 0
    /collection2 {
    /attributes {
    /AI9\ Mesh\ Rasterization\ Resolution 300.0
    /AI9\ Output\ Rasterization\ Resolution 1200.0
    /AI10\ flattener\ raster-vector\ balance 100
    /AI10\ flattener\ clip\ complex\ regions 1
    /AI10\ flattener\ outline\ strokes 0
    /AI10\ flattener\ outline\ text 0
    /collectionName [ 19
    5b4d656469756d205265736f6c7574696f6e5d
    /canEdit 0
    /canDelete 0
    /collection1 {
    /attributes {
    /AI9\ Mesh\ Rasterization\ Resolution 300.0
    /AI9\ Output\ Rasterization\ Resolution 1200.0
    /AI10\ flattener\ raster-vector\ balance 100
    /AI10\ flattener\ clip\ complex\ regions 1
    /AI10\ flattener\ outline\ strokes 0
    /AI10\ flattener\ outline\ text 0
    /collectionName [ 17
    5b48696768205265736f6c7574696f6e5d
    /canEdit 0
    /canDelete 0
    /Sketch {
    /Version 1
    /Description (Flattener catalog for AI11)
    /Owner (AI11 Flattener Catalog Manager)
    /NumberOfCollections 3
    /CatalogName (AI11 Flattener Presets)
    A different version I made with the help of Carlso Canto, worked for me to slide the vector balance to bitmapped . So hope the code above works for you.

  • Strange Transparency flattener preset appearing

    I'm in AI CS3 and when I go to the transparency flattener presets, there's always one in there with japanese characters. I delete it and it comes back next time. What's up with that?
    Randy

    Thanks, to get this working in a server script, I ended up just programmatically creating the flattener preset, rather than worrying about the .flst files.  (Java code below)
      //Setup Transparency Flattener (if not in application)
      FlattenerPreset flattenerPreset = app.getNamedChildFlattenerPreset("Test");
      if (flattenerPreset == null) {
          flattenerPreset = app.addFlattenerPreset();
          flattenerPreset.setName("Test");
          flattenerPreset.setRasterVectorBalance(VariableTypeUtils.createLong(100));
          flattenerPreset.setLineArtAndTextResolution(2400.0);
          flattenerPreset.setGradientAndMeshResolution(400.0);
          flattenerPreset.setConvertAllTextToOutlines(false);
          flattenerPreset.setConvertAllStrokesToOutlines(false);
          flattenerPreset.setClipComplexRegions(false);
      pdfPreset.setAppliedFlattenerPreset(flattenerPreset);

  • Installing Transparency Flattener Preset for Indesign Server CS4

    I'm trying to figure out how to install a transparency flattener preset for InDesign Server CS4.
    I can see how they are installed for the InDesign app.  Edit -> Transparency Flattener Presets...
    But I'm not sure which directory to install these on for the server.
    I've seen a post that mentions:
    C:\Documents and Settings\<UserName>\Application Data\Adobe\InDesign\Version 6.0\en_US\Transparency Flattener Presets
    /Users/<UserName>/Library/Preferences/Adobe InDesign/Version 6.0/en_US/Transparency Flattener Presets
    for the Desktop version.  But when I place files here even for the CS4 Desktop, they don't seem to show up in the UI.
    Any help would be appreciated,
    Thanks,
    Dennis

    Thanks, to get this working in a server script, I ended up just programmatically creating the flattener preset, rather than worrying about the .flst files.  (Java code below)
      //Setup Transparency Flattener (if not in application)
      FlattenerPreset flattenerPreset = app.getNamedChildFlattenerPreset("Test");
      if (flattenerPreset == null) {
          flattenerPreset = app.addFlattenerPreset();
          flattenerPreset.setName("Test");
          flattenerPreset.setRasterVectorBalance(VariableTypeUtils.createLong(100));
          flattenerPreset.setLineArtAndTextResolution(2400.0);
          flattenerPreset.setGradientAndMeshResolution(400.0);
          flattenerPreset.setConvertAllTextToOutlines(false);
          flattenerPreset.setConvertAllStrokesToOutlines(false);
          flattenerPreset.setClipComplexRegions(false);
      pdfPreset.setAppliedFlattenerPreset(flattenerPreset);

  • Acrobat 9 Transparency Flattening Colour Shift

    Hi all,
    This is something I found out the hard way, and it seems like a real trap in Acrobat 9.
    I have a document prepared in ID, exported to PDF/X-4 with all profiles included. The document is prepared in RGB model (AdobeRGB), because we're printing in house on Epson 4800 tabloid printer.
    All looks fine onscreen in Acrobat. (Colour managed setup etc).
    But when printing to the Epson, the images have poor shadow detail and are darker than they should be.
    I eventually figured out that it is to do with the colour space used for Transparency Flattening. It took me a while to find it, but by default it is set to "Device RGB" on my system in the Flattener Preview. When I changed it to Adobe RGB, which is the colour working space used in the document, the prints come out correctly.
    Observations:
    1. Changing the colour space for flattening is not persistent as a general setting, but you can save it back to the PDF.
    2. Even though it appears on the same dialog, the colour space is not stored with the transparency flattener presets.
    3. This setting has an ongoing effect on how the document is printed (i.e. after the dialog is closed), even though the dialog leads you to believe it only relates to flattening preview.
    What puzzles me is why this setting can't be put there with the correct value when ID generates the PDF.
    Is there anything else I've overlooked here? This seems like a really nasty little trap for the unwary.
    MT

    Hi all,
    This is something I found out the hard way, and it seems like a real trap in Acrobat 9.
    I have a document prepared in ID, exported to PDF/X-4 with all profiles included. The document is prepared in RGB model (AdobeRGB), because we're printing in house on Epson 4800 tabloid printer.
    All looks fine onscreen in Acrobat. (Colour managed setup etc).
    But when printing to the Epson, the images have poor shadow detail and are darker than they should be.
    I eventually figured out that it is to do with the colour space used for Transparency Flattening. It took me a while to find it, but by default it is set to "Device RGB" on my system in the Flattener Preview. When I changed it to Adobe RGB, which is the colour working space used in the document, the prints come out correctly.
    Observations:
    1. Changing the colour space for flattening is not persistent as a general setting, but you can save it back to the PDF.
    2. Even though it appears on the same dialog, the colour space is not stored with the transparency flattener presets.
    3. This setting has an ongoing effect on how the document is printed (i.e. after the dialog is closed), even though the dialog leads you to believe it only relates to flattening preview.
    What puzzles me is why this setting can't be put there with the correct value when ID generates the PDF.
    Is there anything else I've overlooked here? This seems like a really nasty little trap for the unwary.
    MT

  • Transparency Flattener Settings

    I have been getting conflicting information about the settings for the transparency flattener preset options when creating PDFs out of InDesign and I wanted to get things straight. From one side I was told to change the setting to read: Raster/Vector Balance 100, Line Art Text Res 2400 ppi and Gradient Mesh Res 300 ppi. And the other side says that the High Resolution default settings work just fine and that these settings are like the appendix in CS3, totally unnecessary! I am working in CS3 and use the PDF/X-1a:2001 setting to export. Any insight would be great, thanks.

    The only difference between [High res] and the values you quote is "Line Art Text Res 2400 ppi"
    And the only time that is used (as long as "vector-pixel" is set to 100) is when you use an effect (say a drop shadow) with a softness of less than 0.5pt.
    I.e. the quoted values give you a better result for very hard effects at the price of 4 times the data volumen in the PDF.
    You yourself must decide if you need your hard shadows in 2400ppi or 1200ppi.

  • Different transparency flattening results

    Hi all,
    When I flatten transparency using the [high resolution] flattener presets in Acrobat 10.1 Flattener Preview, I get flattened areas with pretty high resolutions: 1681x1681ppi, 762x762ppi. When I export my original IND-document to PDF using the exactly the same flattener presets, I flattened areas or images with a resolution of 300x300ppi (as I would expect from these presets).
    Anyone who can explain the difference? I always assumed that both techniques are using the same underlying technology / algorithms to flatten a page (therefore giving the same end result).
    BTW: the first situation resulted in the 'thin white lines' (artifacts) to appear on screen and in print (!) , so 'not good'.

    If character "-" is not included in search characters, is that correct that "o-ring" will be treated as a phrase search?
    I found the following in Dev studio help:
    Adding search characters that support automatic phrasing
    Inclusion of original punctuation marks in search query phrases returns more relevant results.
    It says "More" which made me think ... maybe not "phrase". Please explain, thanks.

  • Stitch lines created in a PDF/X-1a due to transparency flattening during export from InDesign

    Has there been any sure fire methods to avoid the digital stitch lines created in a PDF/X-1a due to transparency flattening during export from InDesign? If I attempt to edit the PDF using the Acrobat Edit Text and Graphics tool the PDF is actually carved into sectors and images are not selectable as a whole. Also contrary to what I have read those white lines do indeed image from time to time. I could export as PDF/X4 to preserve the transparency but on occasion it would be advantageous to flatten it before supplying to the printer. Currently using CC and have done the usual things in an attempt to avoid the lines such as all text above transparent objects on a separate layer and 'Clip-Complex-Region' on export.
    Thanks in Advance!

    If the default High Res flattener preset is stitching make a custom preset that's all rasters and use it in the advanced tab of the PDF/X-1a preset

  • Transparency flattening issue (I think)

    Hi all,
    I'd appreciate your help with this.  I've tried researching this through the forum yet still find myself confused.  I think it's a transparency flattening issue, but I'm unsure of how to fix it, and even at what point to fix it.
    I designed this for a magazine ad in InDesign CS2 and exported to PDF.  The polaroids have drop shadows, which look fine on screen:
    But when I print I get these ugly "borders" where the transparencies are:
    Can't get rid of them, except by printing the PDF as an image.
    My questions are:
    1) Assuming this is a transparency issue, how do I fix this?  I've read about transparency presets on the forum, but (please forgive my lameness) I'm not sure how to actually apply them.
    2) At what point do I fix this?  I mean, as a best practice, is this something that's addressed inside InDesign, or during the export from InDesign, or when printing the PDF?  It looked fine in the magazine so obviously they were able to fix it, but I'd still like to know what I'm doing wrong to save them extra work in the future.
    I have Adobe CS2 and Acrobat 7 Pro on a Windows XP Pro.
    Many thanks for your help,
    Ed

    That's quite a color shift, too, on the background which seems like more than you'd see from a poor image capture of the printed piece.
    I bet you are using a spot color. Unless you are actually paying to have that spot color printed in the magazine (if they even would), you shouldn't be using it. Make sure you go into the ink manager and convert all spots to process, or replace any spot colors with process colors. You should be the one handling the color conversion, and using process color will simplify the flattening, I think.
    Peter

  • Transparency flattening compression quality

    Hi,
    In Acrobat 9, an important option was missing for transparency flattening: the compression quality setting. I found that it is now available in Acrobat XI. When I saw that, I thought that my problems with flattening were a thing of the past. Well... no. I use preflight droplets to process the PDF files and the compression quality is not present in the prefilght options. Why is the quality setting available in the Transparency Flattening dialog box and not in the prefilght profile? And, if not present, why did Acrobat choose to use the "Fast processing" quality instead of "Best quality" for transparency flattening done with preflight?
    Thanks!

    First off, a SD (DVDs are SD) image will never look as good as a High Def Image but you probably know that.
    It appears you have made a copy of the Apple preset for DVD compression, that's what we want.
    Open up the MPEG-2 Setting and click to the third menu (Frame Controls), click the sprocket button to allow Frame Controls to be ON, Resize Filter should be Better and Adaptive Details should be checked, move the Anti-Alias slider to 35 and try compressing again.
    You can play with these sliders to reduce aliasing (stair-stepping) and/or increase detail (enhance edges)

  • My iCloud account name was inputted incorrectly when my iPhone was set up. I made a new iCloud account but my phone still automatically loads the old and unusable iCloud account. How can I update my phone to load the new and correct account?

    My iCloud account name was inputted incorrectly during initial phone set up. I created another iCloud account name but it is still the old and wrong iCloud account that automatically loads whenever I access the iCloud tab on my phone. How do I replace it my new and correct account name?

    She won't after the change.
    Note you can use the same Apple ID in
    Settings > iTunes & App Store > Apple ID: > here to share purchased music, apps and books.
    Other than that each of you should use your own Apple ID for iMessage, FaceTime, iCloud, Game Center, etc.

  • How do I use the location bar to automatically load the top google hit?

    I recently re-installed Firefox 3.6.12 and created a new profile because my old one was malfunctioning. Before, when I typed something in the location bar (say "nyt") it would automatically load the first Google hit (so I didn't have to type "nytimes.com"). Now, it simply performs a Google search without loading the first page hit. I loved being able to save time this way. How do I restore this feature?

    I had this problem in FF4 and found the answer here: http://support.mozilla.com/en-US/questions/756711#answer-
    To quote TonyE:
    Current release versions of Firefox by default use the Google "browse by name" search option for the location bar, but Firefox 4 beta 6 no longer uses this. You can restore it by changing a hidden preference. In Firefox 4 beta 6 it should have defaulted to a Google search rather than what you got.
    Type about:config into the location bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    In the filter box type keyword
    Double-click on the preference keyword.URL and change it to the one shown below
    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

  • I have a Macbook Pro laptop and Firefox Start Page automatically loads upon turning on my computer. How do I disable this?

    I do not wish Firefox Start Page to automatically load when I turn on my computer. the help I sought gave suggestion(s) for a desktop computer to go to start menu and run a system configuration to deselect Firefox as startup - I have a Macbook Pro laptop and haven't been able to figure out where I can do the same - need assistance please

    Look in System Preferences > Accounts > Login Items and remove Firefox from that list.

  • How can I stop Foxfire from automatically loading when I turn on my computer that runs on Windows Vista?

    Foxfire automatically loads when I boot up my computer after all the other essential programs boot up. I'd like to know how to disable the start-up menu link that allows the program to load up when the computer first starts up because the Foxfire browser isn't needed when I first start the computer. Besides, when I first start my computer, it's inevitably not hooked to the internet and it's just a bit annoying to see foxfire load when it's not needed. Furthermore, it takes up precious memory in the RAM when it's running, thus slowing down my machine. Please, someone show me how to keep this program from booting when I start up my computer. By the way, my system is Windows Vista and Foxfire does not show up in the start-up folder. Only by going to the default program page and clicking on Foxfire does it show that Foxfire has a hidden default that makes it start when the computer starts. All I'm looking for is to not see it when I boot my computer.

    Thanks for pointing me to the link about the startup programs changes. I found the solution there. Foxfire was hiding in the hidden startup menu. Once I found it using msconfig, I was able to stop it from loading when I started my computer. Again, thanks for the help.

Maybe you are looking for