Im having issues trying to do the following. It keeps stopping at the return attribute. Thanks! I want this to check for various filenames and then change the output for those values.. thx.
if (activeDocument.search("160x600")>0)
{
if (activeDocument.search("300x600")>0)
{
path: activeDocument.path,
maxSize: 59 //size in kbs
return
};
saveJPG(
{
path: activeDocument.path,
maxSize: 39 //size in kbs
});