From: carlos tirado Date: 2006-10-31T08:30:02+09:00 Subject: Re: using ruby with photoshop - p objectroblem using the SaveAs On 10/30/06, Martin Somers wrote: > What verisons are you using, I'm still getting an illegal argument - > argument 1 > Required values is missing WinXP Pro SP2, Photoshop CS (8.0). Works here! :} Have you seen this? http://partners.adobe.com/public/developer/en/photoshop/sdk/PhotoshopScriptingGuide.pdf On page 50 they have examples of SaveAs (in VBS and JS). It looks like the last value you were passing (Extension.LOWERCASE) would be an int (2 == for lowercase). HIH CT > On 10/30/06, carlos tirado wrote: > > > > On 10/29/06, Martin Somers wrote: > > > saveme = ActiveDocument > > > > That should be: > > saveme = cs.ActiveDocument > > > > > > > > > saveme.SaveAs('C:/cells2.jpg', jpgopt, true, Extension.LOWERCASE); > > > > I don't know about Extension here, it gave me an error, so I just > > removed that last part, and it seemed to work: > > > > saveme.SaveAs('C:/cells2.jpg', jpgopt, true); > > > > CT > > > > > >