How can I open the "Convert to indexed colors" dialog box with custom presets?
Hello
I need to automatically open the "Convert to indexed colors" dialog box in Photoshop. Before and after that I have a few scripts that are running, so it is not possible to open the dialog manually. Also, I want to put some custom presets (like the number of colors, etc.).
Find something similar to what I want for the color range selection (opens the dialog with the presets you put in that):
function colorrange(enabled, withDialog, fuzziness) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness); var desc2 = new ActionDescriptor(); desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22); desc2.putDouble(app.stringIDToTypeID("a"), 0.86); desc2.putDouble(app.stringIDToTypeID("b"), 0.31); desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2); var desc3 = new ActionDescriptor(); desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34); desc3.putDouble(app.stringIDToTypeID("a"), 54.59); desc3.putDouble(app.stringIDToTypeID("b"), 49.85); desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3); desc1.putInteger(app.stringIDToTypeID("colorModel"), 0); var desc4 = new ActionDescriptor(); var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode); };
How can I get the same thing for the indexed color conversion dialog box? Apart from doing a lot of guessing about the stringIDs.
Is there some kind of "table of choice" for char and string ID?
Guys thank you very much in advance! This forum has been a great help on several occasions.
OK never mind I got it, stupid me.
He has recorded with Listener Script and changed the "DialogMode" parameter of the function of executeAction "DialogModes.No" at "DialogModes.All".
var idCnvM = charIDToTypeID( "CnvM" ); var desc249 = new ActionDescriptor(); var idT = charIDToTypeID( "T " ); var desc250 = new ActionDescriptor(); var idPlt = charIDToTypeID( "Plt " ); var idClrP = charIDToTypeID( "ClrP" ); var idSele = charIDToTypeID( "Sele" ); desc250.putEnumerated( idPlt, idClrP, idSele ); var idClrs = charIDToTypeID( "Clrs" ); desc250.putInteger( idClrs, 4 ); var idFrcC = charIDToTypeID( "FrcC" ); var idFrcC = charIDToTypeID( "FrcC" ); var idNone = charIDToTypeID( "None" ); desc250.putEnumerated( idFrcC, idFrcC, idNone ); var idTrns = charIDToTypeID( "Trns" ); desc250.putBoolean( idTrns, false ); var idDthr = charIDToTypeID( "Dthr" ); var idDthr = charIDToTypeID( "Dthr" ); var idDfsn = charIDToTypeID( "Dfsn" ); desc250.putEnumerated( idDthr, idDthr, idDfsn ); var idDthA = charIDToTypeID( "DthA" ); desc250.putInteger( idDthA, 75 ); var idIndC = charIDToTypeID( "IndC" ); desc249.putObject( idT, idIndC, desc250 ); executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL
Tags: Photoshop
Similar Questions
-
How can I get the standard Windows save as dialog box in Acrobat DC?
The new Save as clumsy and save as a means of taking many steps to do a simple one. Is it possible to get rid of it and use standard windows, one?
Edit-> preferences-> General
Depending on what you want - disable: Show online when opening files storage, storage online show registration files
-
How can I open the file ASHX on Vista 64 - bit PC
I downloaded an ASHX file on the internet and my PC Vistia 64 bit does not recognize. How can I open the file?
Hello
File with the extension to ASHX file is an ASP.NET Web Manager.
ASHX files are files used with the ASP.NET programming and can be opened with any program code in ASP.NET (like Microsoft Visual Web Developer). ASHX files are not intended to be read or opened by the browser. If you have downloaded a file ASHX and expecting that it contains information (such as a document or other recorded data), it is likely that something is wrong with the website and instead of generating usable information, she provided this file server instead.
You can search on the Internet a program that can open this file.
Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
Important: Take great care when opening file formats executable received in e-mail or downloaded from Web sites, that you are not familiar with as it could cause damage to your computer.
-
How can I open the NEF (Nikon D800) files?
How can I open the NEF (Nikon D800) files?
Support for Nikon D800 ships began in Camera Raw version 6.7 and Lightroom 4.1. You will need to at least Photoshop CS5 or later or Lightroom 4.1 or later.
Your other option is to use the Free DNG Converter.
-
How can I open the RAW files in Photoshop CS4 to Canon EOS 6 d camera?
How can I open the RAW files in Photoshop CS4 to Canon EOS 6 d camera?
You can't directly but can use DNG Converter to convert your files so ACR can read and process the.
-
How can I open the case and clean the fans Pavilion g6
How can I open the case to get fans to clean?
Thank you
Hello
Check the page #75 of the following book:
http://h10032.www1.HP.com/CTG/manual/c02770249.PDF Kind regards.
-
How can I open the batterydoor of a mouse of 3500
How can I open the batterydoor of a mouse of 3500
Hello
See the Product Guide and quick start here Guide:
Wireless Mobile Mouse 3500 - manuals (in English)
http://www.Microsoft.com/hardware/en-us/p/wireless-mobile-mouse-3500/GMF-00010#support-------------------------------------------------------------------
If necessary:
Wireless Mobile Mouse 3500 - has a 3 year warranty.
http://www.Microsoft.com/hardware/mouseandkeyboard/ProductDetails.aspx?pid=019&active_tab=systemRequirementsMicrosoft Hardware warranties
http://www.Microsoft.com/hardware/warranties.mspxThese mice are delivered with 90 tech support of day of the 1st incident which would begin
When you contact Microsoft at the number below.Hardware support of MS and warranty claims
Tech Support 1-800-936-5700 for MS Hardware.I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
How can I open the case on a compaq c560us
How can I open the case on a Compaq c560us to replace the fan. There is a post that is located under the space bar below the V button which is somehow connected when all the visible screws the bottom have been deleted.
NO! The solution I found is to lift the piece above the keyboard that has the buttons of the speaker. Which exposes the two screws holding the keyboard. When the keyboard is raised the remaining screws that cements the case is exposed.
-
How can I open the trial of lightroom?
Hello
Just downloaded a free trial LR cloud. How can I open the program?
Hi leonam47568985,
You will need to open creative cloud and go to the applications tab.
From there please click on 'Open' in front of Lightroom.
Kind regards
Tanuj
-
When I open a pdf file. the document that I'm automatically redirected to page 3 of the doc. How can I open the 1st page?
Hi Monica
Open the properties of the Document window (ctrl + d), click on "Display Initial" tab, check "Open page" option, type 1 in the text box.
Kind regards
Rahul
-
I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEASE PROVIDE ME WITH A
Deleted file recovery can recover incomplete files, i.e. the part of these files may be missing. Recover deleted files is much more reliable if recovery of a backup, instead of using recovery software.
These things depend on the operating system and the file system.
One thing, you can see: open one of these files damaged with a text editor, and then make sure that the constant % PDF is somewhere in the first 1024 bytes.
PS please do not post ALL uppercase; It is very difficult to read!
-
I have a Nikon D 810 camera and Photoshop CS5. I downloaded camera 8.8 Raw and DNG converter. I can't open the raw (.nef) files, and treat them with the DNG Converter. What's not? Thank you!
As I said earlier, the DNG Converter works ONLY on files, not on files.
Do not target the individual files. Target Of THE FOLDER that contains them.
Make sure that said FILE DO NOT contain any other files , you have already settled before, or your settings will be eliminated when re-converted to DNG.
No need to write long explanations. More messages are, the more chances you have of receiving relevant responses.
-
I can't open the Acrobat Pro XI after you install with my serial number.
I can't open the Acrobat Pro XI after you install with my serial number on 8 to win. My daughter has a report due tomorrow.
Thanks Rick
Hi Rick,
Could if it you please let me know what happens when you click on the Acrobat icon to launch it for the first time.
You get the error message? If Yes, then please let me know by sharing the screenshot of the same so that I can analyze the problem.
You can try to uninstall and then reinstall Acrobat XI from the below mentioned link:
Download Acrobat products | Standard, Pro | DC, XI, X
In the activation window that appears, use your serial number to activate the software.
Then, try to start again and check.
Let me know how it goes.
Kind regards
Ana Maria
-
How can I change the workspace to a color for my computer screen will not show
How can I change the workspace to a color for my computer screen will not show Submit question Submit question Photoshop CS6 now opens by default with the "Application Framework" lighted. You can go window > frame application in the main menu and uncheck this
We have a lot of useful information in the FAQ section. The answer to this question was also there. See the link:
FAQ: UI - how do I change the color theme, text size, or cut the course of enforcement?
Feel free to browse other FAQS, there might be a few other things of interest.
Guinot
-
How can I check the ink levels in a printer-c410a with windows 8?
How can I check the ink levels in a printer-c410a with windows 8?
Hi Doug007,
I see that your wanting to check ink levels. I'd take a glance on the document below it shows alternate ways to check ink levels.
I hope this helps.
Maybe you are looking for
-
Hi all I am trying to export several networks of neurons in simulink model to the SBRIO-9631. I use the simulation interface toolkit to achieve and I started with the model of the sine wave, downloaded from http://www.ni.com/white-paper/11654/en. Aft
-
The Surface RT will be all support stiletto?
I ordered a Surface just before RT and wondered what stylus support, if any, it will have? I don't know the Surface with Windows 8 pro will come with the stylus and use technology to block palm, but this same stylus works on the RT version, or will b
-
I recvd error 'program compatibility problem' for my logitech g27 wheel.
Logitech G27 Racing Wheel game controller I recvd 'compatibility problem program' error for my logitech g27 steering wheel wheel.it has been running for 1 1/2 years.
-
While in a while loop loop will not stop running
HY, I have a while loop and hand inside the other 2 If. The attached VI supposed to work like this: 1. define the input data 2 - Press START to "animate" the data in the chart 3 - Press STOP to stop the animation and the hand while the loop must trav
-
How can I get chewck fate for Windows Mail?
Had to start all over again because of problems with Pak 1 Download Vista and now Windows Mail does not check the spelling.