Skip to main content
October 14, 2008
Question

[CS2/CS3 JS]

  • October 14, 2008
  • 3 replies
  • 333 views
Could someone please tell me why this doesn't work.

app.activeDocument.PasteboardPreferences.minimumSpaceAboveAndBelow = 50mm

The reported error is "Object does not support the method or property PasteboardPreferences"

I has taken this straight out of the scripting reference and have also tried changing the property to "pasteboardPreferences".

Thanks
This topic has been closed for replies.

3 replies

Inspiring
October 14, 2008
That kind of error message would be a runtime error, but your original is a syntax error, so there's no hope of such a clear message -- it told you that it didn't like the "mm" suggesting that you should have used a semicolon -- which would probably have done the job for you if your units were set to millimeters anyway.

That's after you changed to a lowercase "P" of course.

Dave
October 14, 2008
Thank you.

What a shame the error message didn't say something like "Value not recognised"

Simon.
Kasyan Servetsky
Legend
October 14, 2008
app.activeDocument.pasteboardPreferences.minimumSpaceAboveAndBelow = "50 mm";