Re: Graphic use in AppleScript Studio
Re: Graphic use in AppleScript Studio
- Subject: Re: Graphic use in AppleScript Studio
- From: Matt Neuburg <email@hidden>
- Date: Thu, 20 Apr 2006 11:10:06 -0700
- Thread-topic: Graphic use in AppleScript Studio
On Thu, 20 Apr 2006 10:57:53 -0400, Dale J Martin <email@hidden>
said:
>Hi all,
>
>I'm am writing a AppleScript Studio application to gather data from
>various astronomy applications. The application in it final form will
>be used to monitor these applications as well as control a
>observatory dome. I have most of it working but I want to add a
>compass to show the direction the dome is pointing, what I would like
>to do is have a dial and a needle that will rotate using code. Is
>this even possible using AppleScript Studio, if so could someone
>point me is some direction....:) I know doing this with AppleScript
>might not be the best tool for the job........but........
(1) Wrong list. AppleScript Studio question? Use the AppleScript Studio
list.
(2) You can do just about anything in an AppleScript Studio application that
you can do in a Cocoa application. That's because an AppleScript Studio
application *is* a Cocoa application. But you might not be able to do it
using AppleScript as your programming language. If you have a limited number
of directions you could include drawings for all of them and put up the
right drawing using AppleScript, but if you want to draw in real time,
"manually", you will have to use Objective-C (either through "call method"
or with good old ordinary Objective-C code). What you describe is pretty
trivial for Objective-C, since the ability to rotate an image any amount is
built right into Quartz. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden