Script to change political colors managent or open the files with "keep profile".
Hello!
I am trying to open the girls with the parameter 'profile hunt kept '' through my script.
I really don't like if it's done with "openoptions" or changing policies managent RGB and CMYK color to "preserve the profile. (Available via the Edit menu-> color settings.)
I know that this is possible through action, but I really need to change that through my script.
I'm totally at a loss here, so any pointers in the right direction would be much appreciated!
Thank you!
/ Peter
A slightly cleaned up version:
Open the file without warning mismatch and keep current color space:
2015, use it at your own risk.
#target photoshop
Var ref = new ActionReference();
ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("colorSettings"));
ref.putEnumerated (charIDToTypeID ("capp"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));
var docDesc = executeActionGet (ref);
var colorSetting = docDesc.getObjectValue (stringIDToTypeID ("colorSettings"));
var theOpenMismatch = colorSetting.getBoolean (stringIDToTypeID ("askMismatchOpening"));
var theRGBPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyRGB"));
var theCMYKPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyCMYK"));
var theGrayPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyGray"));
disable the warning;
preserve var is stringIDToTypeID ('Star');.
setPolicy (preserve, maintain, preserve, false);
Open the file;
App.Open (new File("~/Desktop/VA13AHN_1.psd"));
back to the setting;
setPolicy (theRGBPolicy, theCMYKPolicy, theGrayPolicy, theOpenMismatch);
political game.
function setPolicy (RGB, CMYK, gray, theBool) {}
// =======================================================
var idsetd = charIDToTypeID ("setd");
var desc16 = new ActionDescriptor();
var idnull = charIDToTypeID ("null");
ref4 var = new ActionReference();
ref4.putProperty (charIDToTypeID ('Rprp"), stringIDToTypeID ("colorSettings'));
ref4.putEnumerated (charIDToTypeID ("CAPP"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));
desc16.putReference (idnull, ref4);
idT var = charIDToTypeID ("T");
var desc17 = new ActionDescriptor();
var idpolicyRGB = stringIDToTypeID ("policyRGB");
var idpolicy is stringIDToTypeID ('policy');.
desc17.putEnumerated (idpolicyRGB, idpolicy, RGB);
var idpolicyCMYK = stringIDToTypeID ("policyCMYK");
desc17.putEnumerated (idpolicyCMYK, idpolicy, CMYK);
var idpolicyGray = stringIDToTypeID ("policyGray");
desc17.putEnumerated (idpolicyCMYK, idpolicy, gray);
var idaskMismatchOpening = stringIDToTypeID ("askMismatchOpening");
desc17.putBoolean (idaskMismatchOpening, theBool);
var idcolorSettings = stringIDToTypeID ("colorSettings");
desc16.putObject (idT, idcolorSettings, desc17);
executeAction (idsetd, desc16, DialogModes.NO);
};
Tags: Photoshop
Similar Questions
-
Windows media player does not automatically open a video file on a Web site but I save it and open the file with Windows media player to play the video or audio recording. I used to be able to play any video or audio file in any site!
Hello
Try resetting the default associations for WMP and IE.
How to set default Associations for a program under Vista
http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html
How to associate a file Type of Extension to a program under Vista
http://www.Vistax64.com/tutorials/69758-default-programs.htmlIf necessary:
How Unassociate a Type of Extension file in Vista - and a utility to help
http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html
Restore the Type Associations by default Vista file extensions
http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html
How to view and change an Extension of filename on Vista
http://www.Vistax64.com/tutorials/103171-file-name-extension.html====================================
Also follow these steps:
Follow these steps to remove corruption and missing/damaged file system repair or replacement.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html------------------------------------------------------------
Then, if necessary:
Have you recently installed another player?
Reset your associations for WMP and IE.
How to set default Associations for a program under Vista
http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html
How to associate a file Type of Extension to a program under Vista
http://www.Vistax64.com/tutorials/69758-default-programs.html---------------------------------------------
Do this to reregister the Jscript.dll and Vbscript.dll files.
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
type or copy and paste-> regsvr32 jscript.dll
Press entertype or copy and paste-> regsvr32 vbscript.dll
Press enterRestart and if all goes well, it will run now.
--------------------------------------------------------------
Have you recently added stores or ANY application from Stardock?
Using 64-bit Vista?
Can you think of recent things you did in WMP which could be the cause? You added another
reader recently or an add-on for WMP?When I try to use Windows Media Player 11, the program does not start, or some UI elements
are empty - a Mr Fixit
http://support.Microsoft.com/kb/925704/en-usMaybe something here
http://msmvps.com/blogs/chrisl/articles/17315.aspx
and here
http://msmvps.com/blogs/chrisl/Archive/2004/10/30/17399.aspxCheck here the news of WMP11
http://zachd.com/PSS/PSS.htmlI hope this helps.
I hope this helps.
Rob - bicycle - Mark Twain said it is good.
-
Open the file with Buddy API... and WITH...
Hello
It works well:
on exitFrame me
myFile = the moviePath & "IMBNRadio.M3U".
OK = baOpenFile (myFile, "normal")
end
It opens the multimedia file. M3u with Windows Media Player, but what happens if I want to open the file with another player?
How can I do?
Thank you
See baShell() or baRunProgram()
-
I got a used computer and it worked fine for a while. I guess that I did something for her, because now I had a problem with the opening just like files and almost all of the icons in the start menu. I found someone had mentioned this on another post, but it has not been answered and I have the same problem:
"I don't know what to do. I tried reseting IE back to its "settings by default, but nothing seems to work. It doesn't let me open any programs on my computer. I can't even find the virus because there asking what program I want to open it with and when to choose IE he sent me through a series of 'SAVE or RUN' windows and then back to the "choose a program you want to run the file with.» I am only able to access the internet via a shortcut of Internet Explorer button that I dragged on the start menu, because the original one on my desk does not open. »
It's the best way I can explain this problem. I've had this problem for a while now and I have looked everywhere for an answer and still nothing. It would be great to get help, thank you!
After much research, I found the answer here:
http://WindowsXP.MVPs.org/exefile.htm
But thanks for the help!
This problem has not helped me with my problems to download iTunes correctly, that's why I set out to solve this problem in the first place. I also get a lot of it popping up every 10 minutes:
"MobileDeviceService has encountered a problem and needs to close. We are sorry for the inconvenience. »
The error signature is always:
szAppName: AppleMobileDeviceService.exe szAppVer: 17.88.0.8
szModName: kernel32.dll szModVer: 5.1.2600.5781 offset: 00012afb
It won't do anything when I click to send error report or not, it does not close anything as it is normally would. I think it might have something to do with the steps I took to reinstall iTunes properly...
And
1. I use Microsoft Windows xp Version 5.1, at least that's the stuff I wrote, do not know if this is the answer you're looking for. I am not sure computers.
2. my anti-virus software is ESET NOD32 Antivirus 4
-
Whenever I try to open a program get this error: "open the file with.
whenever I try to connect to the internet or open a program, it rises, open this file with, iwas only able to connect today by selecting search for the appropriate Web file how can I disable that I don't know why he started doing this help please.
whenever I try to connect to the internet or open a program, it rises, open this file with, iwas only able to connect today by selecting search for the appropriate Web file how can I disable that I don't know why he started doing this help please.
Open this link below, go to the answer given by Phantom 010
http://forums.techguy.org/Windows-Vista/899995-solved-Open-box-opens-every.htmlt-4-2
-
Could not open the file with the extension of trx
When I try to open a file with an extension of trx, he is unable to do anything, or, once so far, opened a blank web page.
Any suggestion please?
http://FileInfo.com/extension/Trx
-
Cannot select a program to open the file with
HI - in Windows Explorer, I am trying to choose a program to open a file with. I right click then select "Open with", then select the program .exe file. However, when I click Open, the program I selected does not appear in the list of "other programs." In addition, once I get it appears in the 'Other programs' list, the program will automatically display when I right click and select 'open with '? It does on my other computer. I try to open a picture in Photoshop Elements (as a shortcut) and would like the program appears when I right-click as well as show as an option for a program to open the jpeg format with Windows Photo Viewer (as it does on my other computer). Thanks for the help!
Hi - Thanks for your reply. I actually got to work a little renaming the exe programs.
-
How to change a default program to open the file instead of Widnows Media Player
Original title: Media Player
Windows Media Player opens many of my files (which in fact cannot be opened). What can I do to make the Media Player ceases to be the default to open my files? I can't even open Internet Explorer because Media Player wants to open.
Hello
By the description, I understand that Windows Media Player is been activated as default program to open all the files.
You can change (set another program as default) your default program following the steps mentioned below:
1. open default programs by clicking the Start button, click default programs.
2. click on associate a type of file or Protocol with a program.
3. click on the file type or protocol that you want the program to act as the default value.
4. click on the change agenda.
5. click on the program that you want to use by default for the selected file type, or click the arrow next to other programs to show other programs. (If you don't see other programs or your program is not listed, click Browse to find the program you want to use, and then click Open. If no other programs are installed that are able to open the type of file or Protocol, your choice will be limited.)For more information, please visit the link below:
Change the programs that Windows uses by default
https://support.Microsoft.com/en-us/help/18539/Windows-7-change-default-programsHope this information is useful, if the problem persists please write us back with the quick information so that we can help you further.
-
When I click on a file .nrl extension (belongs to the autonomy I - manage your software) it returns a string of code (which is in the shortened link) instead of following the link and the return document. Is it possible to say Forefox connect to the document that the shortcut is linked to? The .nrl file extension belongs to a piece of software called FileSite (document management system).
What type of content is displayed in "tools > Page Info > general" If you open a file of this type?
- Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
As displayed above, simply configure the server to send this file with the MIME type supported for Firefox to open a dialogue rather than make the file.
-
Problems with opening the file with while loop
Hello everyone,
It is probably a quick question, but I know how to open data files in Labview. The attached code works if you enter a file from the folder on the front panel button. However, if the path is empty and you press the run (arrow) button, a dialog box appears and asks you the file.
I select the file, but the dialog box keeps coming back. I think it has something to do with my while loop. Can someone tell me where I'm wrong?
Thank you!
TheLT
-
looking for a download that will allow me to run a file with a. Extension of the ICA... There's sites but they all want to download their "registry fix" or "speed up your computer" etc.. .i want just the .ica ability... distant help you?
Hi Trevorcollinge,
File of the Independent Computing Architecture (ICA) used by the Citrix application servers; contains configuration information to connect to different servers; can be connected to a published application or a server's desktop environment.
ICA files can be created with the ICA file creator program or a basic text editor.
You can double-click an ICA file to open the virtual application remote or referenced by the file desktop environment. Note that you must have a Citrix client installed for the file to open correctly.
Let us know if this information is useful.
-
When I receive files with file extension wmv I can't open them? Why?
Hottaye,
Welcome to the Microsoft Answers community.
You use Windows Media Player to access the .wmv file? If this isn't the case, follow these steps:
1. save the WMV file on your disk.
2. then, right click, click on Open withand then click Choose default program.
3. in the open with dialog box, click Windows Media Player, and then click OK.
In case you don't have it:
You receive an error message? Can you play other .wmv files that you do not receive as an attachment? In Windows Media Player, play a different file that uses the same extension of file name as the file that you were using when you received the error message. If the other file plays correctly, then you try to play the original file may be damaged.
I can't wait to hear back on your part.
Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
"What program opens the files with extenton PYM.
My insurance company sent me constantly files with the extension "pym. I could open it with Adobe on Windows XP, but not with visited.
Hello
This should help you.
http://www.FileInfo.com/extension/Pym
See you soon.
-
"choose the program you want to open this file" always comes up when I want to download something, and no matter what I choose, it will not download.
frustrating... can anyone help pls.
Take a look at this...
http://forums.techguy.org/Windows-Vista/899995-solved-Open-box-opens-every.html
Scroll down to the answer given by Phantom010 -
I have now Web Design Premium CS6 and can´t the files opened with version 8.2.
If I get CC - he gets it working?
Yes Linda.
CC will work for these files.
Maybe you are looking for
-
How can I update apps on my iphone without wifi?
Hello Since a few software upgrades my iphone 4S does not have wifi access. Unfortunately, this means that the applications are not updated and eventually cannot be used (like whatsapp). Clues? Thank you very much
-
Synchronization error messages
Hello. Since Monday I get on Firefox 31 synchronization with a Windows 8.1 machine errors:"Sync has encountered an error during synchronization: unknown error." Here's the synchronization log: http://pastebin.com/fuY8u572 Looks like it's sync everyth
-
Satellite P305D-S8828 - fan runs most of the time
On my new Satellite P305D - S8828 17 "fan seems to work most of the time, fled to 01:45 for: dry then on new 50." I have the schema defined on "balanced" & the unit is based on a cooler aluminium frame (no fans on radiator). Basically, ventilation un
-
Carrier Bar Pop Up when I have no service
IPhone 6 s locked on Verizon, but when I do not have a settings menu appears enabling why this happens to you signal
-
How can I remove all facebook contacts in my contacts from windows live mail?
All Facebook contacts are listed in my Windows Live email account, I don't want to or we need them. If I want to communicate with them, I'll do so via Facebook. My email has been hacked so I want contacts as little as possible! I won't be able to pos