Re: Can any AppleScript become a Cocoa App in Xcode?
Re: Can any AppleScript become a Cocoa App in Xcode?
- Subject: Re: Can any AppleScript become a Cocoa App in Xcode?
- From: Takaaki Naganoya <email@hidden>
- Date: Wed, 12 Dec 2007 23:21:20 +0900
Almost of AppleScript can be moved to AppleScript Studio (writing
AppleScript on Xcode).
And it runs as a Cocoa and Universal Binary application.
But you have to know these *facts*.
You can not simple "Copy & Paste". Every parts must be checked in
AppleScript Studio environment.
(1) Not same environment
There is a little difference between normal AppleScript runtime and
AppleScript Studio runtime.
Especially controlling application... you will be aware of the
difference among them.
For example...you can open InDesign CS2/CS3 document invisibly in
normal AppleScript but cannot in AppleScript Studio (checked in
Japanese user environment). iTunes acts differently in AppleScript
Studio.
There is much more difference. Source code encoding is different
among them.
(2) Bugs
AppleScript Studio runtime has some bugs and not fixed yet. You can
not use "class" command in AppleScript Studio.
You can't check the class of variables.
(3)Limitation of script size
AppleScript Studio environment can not make or run or compile huge
script (over thousands of lines) at one time.
They must be separated in some script files. So, you must load and
run sub-scripts.
(4)How to kick the script
You have to lern how to execute the scirpt in AppleScript studio
using event handlers. It may be difficult for beginners.
(5)Hard to debug
Debugging in AppleScript Studio is very hard. There is no events log.
Breakpoint and display variables not work now.
Your debugging tool is "log", "display dialog" and "say" command.
Really unfriendly environment it is!
But you can get cocoa-based looks and universal binary app working on
the latest Mac OS X environment.
It is very important.
On 2007/12/12, at 7:30, Justin Laden wrote:
Can any AppleScript become (easily or not, and this is something I
would enjoy responses to as well) a Cocoa application if copied and
pasted into Xcode?
I guess I'm also asking if a script object can be a Cocoa application,
or is more involved?
Extrapolations are appreciated.
Thanks everyone.
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden