hello, I'm sorry for this very stupid question but I'm loosing my mind. I am trying to get how this whole thing works. I found this tutorial (http://blog.stickupkid.com/script/2005/01/tutorial-two-circles.html) and I think I understand it. But I can't get the result.
I put the script into Scriptographer's scripts dir, but when I run it, I get just the console window. What do I have to do to get the result showed in the tutorial? I must be missing something. I checked installed scripts, but found nothing helpful. I would appreciate any related answer.
Re: beginner: how to run a script properly?
From: Alex
Date: 7. October 2006, 15:27
Adam-
It looks like the code on that blog belonged to the previous version of Scriptographer. I think this is the code you're looking for:
function createCircle ()
{
var newSize = 50 * Math.random() ;
var x = 400 * Math.random() ;
var y = 400 * Math.random() ;
rect = new Rectangle(y, x, y + newSize, x + newSize);
activeDocument.createOval(rect);
}
createCircle();