Edit/Edit Colors/ Convert to CMYK via applecript

Cant seem to figure this one out.
In Adobe CC, I am trying to convert every path item of the current document to CMYK using applecript or javascript.
The equivalent to Edit/Edit Colors/ Convert to CMYK.
Currently I am using an action but I try to stay away from actions as much as possible.
Does anyone know how this could be done via applecript, javascript or whatever else?

Right, I tried this method already but it does not show the dialog box in Adobe Illustrator CC v18. only previous versions.
Our group all use different versions.  I may just switch to an installer script thats adds the action to Illustrators "Default_Actions.aia"  file since its text based.
Heres what I'm using now which  is working but I don't like all the hoops it has to jump.
The action simply writes a new doc to a dummy file on a server & the when script doesn't see then dummy file, it writes, loads the action & deletes the dummy file.
Then on the next run, the action will write the dummy file for the script to see & skip the loading of a duplicate action. 
And if I change the action, I simply change the name of the action file & dummy file.
property ACTSET : "Set 1"
property actbname : "Action 1" --- writes teh PTDF file, then run rest of action
property PTDF : POSIX file "/Volumes/artserver/1_ASI/spotcheck.ai" as string
property the_file : PTDF & ACTSET & ".aia" as string
property the_file2 : POSIX path of PTDF & ACTSET & ".aia" as string
property spotcheck : {}
tell application "Adobe Illustrator"
  set spotcheck to ""
  do javascript "app.doScript ('" & actbname & "', '" & ACTSET & "');"
  try
  tell application "Finder" to set spotcheck to file PTDF as string
  end try
  if spotcheck = {} then
  my addaction() --- saves action text to temporary items for the load
  do javascript "app.loadAction (new File('" & the_file2 & "'));"
  do javascript "app.doScript ('" & actbname & "', '" & ACTSET & "');"
  tell application "Finder" to move file the_file to trash
  end if
  tell application "Finder" to move file PTDF to trash
end tell

Similar Messages

  • Edit Edit Colors Convert to Grayscale Not working

    In Ai CS6 when I select all and try to convert to GS nothing seems to happen. I still have a RGB/preview and if I go back to the edit colors menu, convert to cmyk is still grayed out, suggesting that the art is still 4c. Thanks for your help!
    Jon

    jaal,
    Illy refuses to convert RGB to CMYK and CMYK to RGB, therefore the opposite is greyed out.
    So you are in RGB mode.
    Is there any RGB vector artwork that is non grayscale?
    If there is, it may be time for the list.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Acrobat does not load "Edit\Preferences\Color Management\Color Setup" properly.

    When you convert a CMYK document with DeviceCMYK color space to profile, Acrobat X/XI Pro does not take the Working Space selected in "Edit\Preferences\Color Management\Color Setup" as the source space of DeviceCMYK object properly. But, after you change the "Settings" to any other setting (Like Jappan General Purpose 2) and confirm, and then change back to your wanted setting, thus, Acrobat will take the Working Space to convert color correctly. I tryed this many times, it reapears every time. It looks like that Acrobat does not load the "Color Setup" properly. Is there any one knows the reason of the problem? Is this a bug of Acrobat?

    Could this only be a problem with clean installs of CS3?

  • Edit a Color Palette to Reduce Colors

    I am trying to reduce the number of colors in a file.
    If I save for web devices and reduce the number of colors, Photoshop appears to go by volume, rather rather than distinctiveness. Area of distinct colors get merged and multiple shades of similar colors stay.
    Is there any way to edit the color palette so that I can explicity merge colors. Make all A and B, A.

    yes, covert the image to Indexed Mode and then you can select how many colors you'd like your image to contain (I believe it's up to 256 colors in this mode). Image/Mode/Indexed Color and then once you've selected your color scheme, you can convert it back to RGB mode.

  • Command Click in edit changes color white balance and tint in edit

    Command Click in edit changes color white balance and tint in edit, what is happening?

    robwouds:
    Welcome to the Apple Discussions. Must be a hidden keyboard combination for temperature and tint. Not sure if the user can set different settings of each that the keystrokes will take you thru. Just hit the reset button in the Adjust pane to get it back to normal.
    Do you Twango?

  • Edit photo's on Synology NAS via Photoshop Touch on iPAd

    Hi Adobe,
    Can I edit photo's on Synology NAS via Photoshop Touch on iPAd>?
    I have many many photos on the NAS and would like to remove unneeded photos and edit the good ones.
    I don't want to use laptop or PC, just the iPad.
    gr-JW

    Hallo Guido,
    Ich glaube, Sie verwechseln mich für jemand anders!
    gr-JW

  • How to edit/adjust color in premire cs 5 to get color tone like box office movie (breaking down 2)?

    hi, can anyone help me how to edit/adjust color in premiere cs 5 to get color tone like "Breaking Dawn part 2" (box office movie)?
    I have a short indie movie project, and i want the movie to have color tone like "breaking down" movie.

    Joe,
    Here are some stills: http://movies.yahoo.com/movie/the-twilight-saga-breaking-dawn-part-2/photos/the-twilight-s aga-breaking-dawn-part-2-stills-slideshow/breaking-dawn-part-2-poster-photo--1274954362.ht ml
    There is also a "trailer" on makeup, etc., but did not really find actual vids (probably just did not look well enough).
    Hunt

  • Can I import word for mac document, edit it, and convert it back to word?

    can I import word for mac document, edit it, and convert it back to word?

    Yes, with some caveats.
    Pages and Word do some things differently, so no guarrantees for anything. Mostly it works fine.
    Peter

  • 5930K vs 5960X for AVCHD editing and color correction?

    ***I have also posted this in Hardware Forum because I'm not certain which forum will be the best place to ask. Mods, I apologize if this is a no-no and of course you're welcome to remove the one you deem inappropriately placed. Thanks**
    Hi guys, getting ready to have a new custom system built (probably iBuyPower, not sure yet). I would love your input on choosing the ideal processor. I have read benchmarks and forums on both the Intel 5960X and the 5930K. Most benchmarks are only concerned about encoding times, not the actual editing and color correction processes. I realize that encoding (exporting) would be generally faster on the 8-core 5960 compared to the 6-core 5930. HOWEVER, all my source material is AVCHD and for that, higher clock speed does make a big difference during the actual editing. So let's forget about encoding/exporting right now and ONLY think about the actual editing. Let's also assume I will not overclock, or if I do then never more than 20%.* I 'm not a gamer and this workstation is ONLY for editing. I use Premiere Pro CC 2014.x and always keep it up to the latest version.
    Since the 5960X is only clocked at 3.0 Hz. I'm concerned that editing and color correcting AVCHDs will be not as smooth as one would expect from a $1000 chip. The editing process is quite complex, with multiple video layers (all AVCHD, either 60p or 60i), picture-in-picture, color correction (mostly GPU-accelerated ones such as the Three Way CC and RGB Curves), and so on. It's not simple cuts and a few transitions. In fact, the work required on those AVCHD files is very much beyond what AVCHD is meant for but it is what it is.
    So, considering all that, would you STILL fork out the extra cash to get the 5960X versus the 5930K, and if so, why?
    I thank you in advance for your opinions and insight!
    Current planned system specs (highlights)
    - Win 8.1
    - 5930K or 5960X (help!)
    - Asus Rampage V
    - 32 Gb 2666 RAM
    - GTX 780 (possibly will invest in a Titan X 12 Gb if funds allow)
    - Intel 730 SSD (480 GB) for OS and programs
    - I will use my current set of 5-6 SSD drives for sources, scratches, misc pull files, exports
    Thanks again for your feedback!
    PS: I would like to emphasize again that the actual process of editing and color correcting AVCHD files is what matters most to me here rather than getting the absolute fastest encoding times.
    * I realize that both chips are unlocked and made for overclocking. I've overclocked for years but frankly, I was never that comfortable with it, lots of crashes and instability - and that was at low overlock levels of around 20% or less. I do not want manage overclocking or thermal management or worry about frying the chips. If at all possible I would like to run the chips at stock, or as close to stock as possible. However I'm also open to suggestions about that.

    Actually the 5960X will clock the turbo speed for all cores if you set it that way which is one of the things we do with our systems. All Intel chips that are not locked can clock to their turbo rating for all cores if set that way. Even without setting all cores to the peak turbo ratio they will turbo to a clock speed higher than base when all cores are active. It's just not the peak turbo ratio. That has to be manually set. Turbo occurs anytime the system load reaches beyond a low level regardless of what your doing. The system boards and bios effect that. You can also disable a setting in the bios and the system will always stay at it's peak clock ratio. The 5960X clocked at 3.9 will easily outperform the 5930K with all codecs due to the cores and cache.
    We can configure the systems with any hardware available in the market. However we cant include all those items on the website right now without making it far harder for people to configure systems. The hardware options we list are there because they are tested to work with the video and audio hardware/software and the reliability. We also support the systems as a solution for the life of the system. We have price the systems for that support which is part of the price difference. The options you are looking at wont have near the same support or expertise with the hardware and software together hence why your asking the questions here.
    Eric
    ADK

  • Editable bg color in div tag

    Hello,
    I am trying to create an editable background color within the
    div tag of the top portion of my webpage. I have a banner image and
    I would like not only it, but also its associated bkgd color to be
    easily changeable from page to page. So I am trying to have these
    appear within an editable region (the div) of my template. It looks
    like it works in design view, but when I preview it in a browser,
    although the image shows up ok, the background color disappears
    here is the code in question:
    <!-- TemplateBeginEditable name="bannerimg" -->
    <div id="header" bgcolor="6999bc">
    <img src="../imgs/banr_genl_6999bc.gif" alt="banner
    image" width="687" height="118" />
    <!-- end #header --></div>
    <!-- TemplateEndEditable -->
    Any suggestions?
    Many thanks!
    Alan

    > Maybe how
    > I have typed the code for this tag is where I have
    erred...?
    I would think so, yes.
    > I think I may have found a workaround though - I created
    a separate
    > editable
    > region in the head of the template and placed the
    bgcolor reference there,
    > within opening and closing style tags.. that seems to
    work although its
    > not
    > quite as tidy.
    It's actually much more tidy, and it's how you should always
    do such things.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "alan kirker" <[email protected]> wrote in
    message
    news:fc2402$ltt$[email protected]..
    > Thanks Murray,
    > That is what I would expect as well and its what I
    want... however, when I
    > apply the template with this code to a page, and then
    test it by browsing
    > it
    > locally, the image appears, but the bkgd color does
    not... And although
    > its
    > technically "editable" for the reason you point out,
    changes made to the
    > hex
    > value still yield no color behind the image. Even when I
    add the "#" or
    > try
    > using "background-color" instead of "bgcolor" as the
    attribute name. Maybe
    > how
    > I have typed the code for this tag is where I have
    erred...?
    >
    > I think I may have found a workaround though - I created
    a separate
    > editable
    > region in the head of the template and placed the
    bgcolor reference there,
    > within opening and closing style tags.. that seems to
    work although its
    > not
    > quite as tidy.
    >
    > many thanks for your help... if you have additional
    suggestions, I am all
    > ears,
    > Alan
    >

  • CS5.5 crashes when I change work space from editing to color correction

    When I change my work space from editing to color correction CS5.5 crashes.
    Can get it to change from editing to audio work space without crashing, but when I want to change back from audio to editing it crashes then too.
    Any help appreciated.

    In my quick search (check me out there), THIS DRIVER appears to be the latest. I would install and test with it. I find it a good idea to do a System Restore Point for before a driver install, and to also keep a few older drivers available, just in case one needs to roll-back.
    Good luck,
    Hunt

  • Can you edit the color of the bottom play bar on a slide once you assign the cpCmndShowPlaybar to 0

    Can you edit the color of the bottom play bar  on a slide once you assign the cpCmndShowPlaybar to 0. When I assign the slide this action it shows a grey shape at the bottom hiding the playbar controls, but I would like to make that color white to blend in with the white background on my webpage. How do you change the color?

    It is not possible to change the border color by an (advanced) action, sorry. If you do not mind, you could choose the white color for the bottom border from the start. When the playbar is showing, provided it it stretched, it will cover up this bottom border.
    Lilybiri

  • Can't convert from CMYK to RGB in Illustrator CS6

    I'm moving art over to a new document. It was created in CMYK. The new document has a color mode of Basic RGB. After pasting the art I select it all, and choose Edit | Edit Colors | Convert to RGB. After saving and re-opening the document, the art once again has CMYK attributes, not RGB. What am I doing wrong?

    That might be it, Jacob.
    It's when, for instance, I have the Appearance window open and shift-click on the stroke or fill to see the color attibutes (rather than simply looking at the swatches). It kept showing up in CMYK.
    But making that change in the flyout seems to have it showing properly.
    Thanks!

  • Do any instances of RGB get converted to CMYK on output to PDF?

    Hi,
    I'm producing a HUGE catalogue that I've inherited from another designer. It will be going to print soon and I'll be providing the printers with a press ready PDF. The catalogue contains hundreds of individual blocks of colour (used to show colour options for a product). All of them are currently made of an RGB mix. Without having to go through each and every one changing to CMYK (there's no instance of each colour in the swatches pallet), is there a quicker way? Also, is it necessary anyway if I'm providing a PDF - I assume they get converted to CMYK in the final PDF?
    I've used InDesign for years but never inherited a previous design with so many RGB items in it!
    Thanks.

    It can also be done via scripting. This is AppleScript:
    tell application "Adobe InDesign CC 2014"
        tell document 1
            repeat with a from 1 to count of every color
                try
                    set space of color a to CMYK
                end try
            end repeat
        end tell
    end tell
    Also the converted CMYK numbers you get depends on the document's assigned CMYK profile (or the Color Settings' CMYK Working Space if there's no assignment). And the Intent and Black Point Compensation you choose in Color Settings can have a significant effect on the conversion numbers.

  • Do duotones have to be converted to CMYK prior to PDF for publication?

    Hi, we have a series of duotone images for publication, created in Photoshop CS4.
    The duotones are saved as EPS files, imported into InDesign and exported as PDF files.
    We thought that would have been fine, but sight-unseen the printer is telling us he doesn't even know what duotones are (!) and that those duotones will have to be converted to CMYK and then exported again as PDF files.
    Does this sound right? Do we have to do convert every image, or else it won't print?
    It seemed to us that the duotone "mode" was designed for publication of b&w images, to increase tonality in the print. We figured that if they were saved as duotones and exported to PDF, that the PDF file would be sufficient. So, what then is the point of converting duotones if the printer is then going to turn around and say, nope, can't do it that way?
    I checked instructional tutorials and Adobe "help," but can't find the answer.
    Help would be greatly appreciated.
    Thank you, Kelli & Dave
    (*cross-posted at the PhotoShop forum.)

    If you make use of spot colors n your duotones and your printer only accepts CMYK files some action may be needed somewhere.
    Easiest approach: convert to CMYK using Acrobat Pro (Convert colors feature) or specialized Acrobat plug-ins/tools like pdfToolbox 4 from callas software.
    Olaf
    callas software

Maybe you are looking for