Drawing Circles in AppleScript Studio?

How can I go about drawing a circle programmatically in AppleScript Studio?

I’m guessing it’s a Cocoa-only thing, and, to be honest, Apple’s Cocoa coverage only confuses me more. :wink:

However, there are four “features” I want on my circle:

  1. Is there any way to make it hollow? (ie just a border around the circle, but not filled in?)
  2. A call to set the color of the circle to whatever I want. (This one is much less important.)
  3. A call to change the radius or diameter of the circle at will.
  4. A call to retrieve the radius or diameter of the circle whenever I so desire.

Is this at all possible? If so, how? Some Cocoa implementation?

Note that I have standard Leopard. It doesn’t snow here. :stuck_out_tongue:

Thanks in advance.

-SuperScripter

Hi,

drawing is only possible in Obj-C, but it’s quite easy to implement into an AppleScript environment.
I created a simple Xcode project with all functions you’ve requested.
As there are only a few lines of code, I suppose it’s self-explanatory.

You can download it here

Wow, thanks sooo much! :smiley:

This worked perfectly.

On an unrelated note, is there an AppleScript-supported way to write to XCode’s console? Or should I just write a Cocoa function that does so?

-SuperScripter

log “SomeValue”

Wow, super quick response - thanks! :wink: