Hello
I hope some of the gurus here can help me with this strange problem.
I have this script which executes fine for certain files but an error on others, so im not sure if there is a specific requirement for a file.
Code: Select all'Save as JPG
Public Const psJPEGSave = 6
Public Const psPNGSave = 13
Public Const psSaveForWeb = 2
Public Const psDocument8Bits = 8
'exporting
Dim objExportForWeb, outFile
objFile.BitsPerChannel = psDocument8Bits
Set objExportForWeb = CreateObject("Photoshop.ExportOptionsSaveForWeb")
Thats mode code... the script will exit at line: objFile.BitsPerChannel = psDocument8Bits
is there certain requirements for the file for this line to execute properly?
Thanks in advance
Weird script error for BitsPerChannel setting
Weird script error for BitsPerChannel setting
I don't use VB so I'm just guessing. The javascript version of BitsPerChannel is a document property. is 'objFile' a document or a file?
Weird script error for BitsPerChannel setting
Set objFile = objApp.Open(imageLocation&"folder\"&filename)
Its a file
Its a file
Weird script error for BitsPerChannel setting
Mike,
Thanks to your comment, although it didnt directly solve my problem but it made me aware of the cause
Thanks again
Thanks to your comment, although it didnt directly solve my problem but it made me aware of the cause
Thanks again
Weird script error for BitsPerChannel setting
I glad you got it working. I wish we had more members that used VB or Applescript. Most of the active members use javascript.