Quantcast
Viewing all articles
Browse latest Browse all 12845

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


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>