help stroking the selection border in Photoshop 7

hello,

I am trying to stroke a border around a pdf before saving it as a jpeg. But it is giving me an error saying that it expected end of line but found property. I followed the example in the scripting photoshop PDF and I have looked around for other insight but have found none except when stroking a layer.

Here is my code for the stroke:

select all docRef

stroke selection of docRef using color {class:CMYK color, cyan:0, magenta:0, yellow:0, black:50} width 1 location inside mode normal

if someone could give me some insight into this it would be very appreciated. It is the last thing I have to do on this project.

Thanks so much,

Teddy

To specify a blending mode, you have to say “blend mode normal”.

But, actually, since the default blending mode is normal, you don’t have to specify it at all.

Ok, thank you so much Carl. Taking that out worked like a charm. I had it originally without the mode at all but the referencing to the document itself wasn’t correct so I was playing with it. It works now. And I am done with my first application using the interface and can keyline jpegs and gifs all I want… :smiley: :smiley:

Teddy