-
1. Re: VBscript Photoshop: convert active document to RGB (PsChangeMode?)
pixxxel schubser Jun 29, 2013 4:12 AM (in response to David-PS-VBScript)Sorry, I'm not familar with VBS.
But in JavaScript you can do something like this (in VBS, which should be similar):
app.activeDocument.changeMode ( ChangeMode.RGB );
Perhaps this helps a little bit.
-
2. Re: VBscript Photoshop: convert active document to RGB (PsChangeMode?)
David-PS-VBScript Jun 29, 2013 5:31 AM (in response to pixxxel schubser)Thanks for the input. Knowing that your line was good for JS, I decided to try to translate between the javascript ref and the VBscript ref and figure out the equivalent... got it!
appRef.activeDocument.ChangeMode(2)or indeed
docRef.ChangeMode(2)Where 2 relates to RGB. Full table from the scripting ref:
1 grayscale
2 RGB
3 CMYK
4 Lab
5 Bitmap
6 IndexedColor
7 MultiChannel
Thanks for the input. Out of interest, I'm using VBscript because I think it's easier to get it to open and process multiple files. I stumbled with javascript in that respect. I think I'd have had to open all my files first, then run the script; whereas VBscript can open and process a full folder's worth of files (much faster if I'm processing hundreds of images). Just a shame I can't call the VBscript from the PS interface.
-
3. Re: VBscript Photoshop: convert active document to RGB (PsChangeMode?)
Michael L Hale Jun 29, 2013 6:42 AM (in response to David-PS-VBScript)I'm using VBscript because I think it's easier to get it to open and process multiple files. I stumbled with javascript in that respect. I think I'd have had to open all my files first...
No, you don't have to open all the files first with javascript. You can process a full folder one file at a time.
Perhaps you should try javascript again. It's cross platform and you will find more online help.
-
4. Re: VBscript Photoshop: convert active document to RGB (PsChangeMode?)
David-PS-VBScript Jun 30, 2013 3:57 PM (in response to Michael L Hale)Thanks, after your message I did go back to the javascript and managed to figure it out. I will try to stick with javascript because, as you say, there is more support online. Plus I use macs so it makes sense all round.
Cheers
David

