 |
 |
AppleScript: How do I make my .App scriptable?
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2001
Location: Internet
Status:
Offline
|
|
I am wondering how to add AppleScript to my DV device command and control software so that I can create applescripts for <play> <pause> <stop> etc. so that I can cammand these with my voice.
Can anyone point me in the direction of a good resource for this? I have looked on Apple's Developer site and I can not find anything that will help.
Thanx
|

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
If it's a Cocoa app, implementing new scripting commands and enabling scripting support for your model objects is pretty easy. There's a whole chapter of the online documentation about it.
Carbon scripting support isn't quite so easy, and I'm not sure where you'd get help with that.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2001
Location: Internet
Status:
Offline
|
|
My app is written in Java, which in my undersatnding is considered a first class language in OS X (right?). You mention online documantation - are you referring to the documentation for applescript? Could you post a link?
Thanx
|

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
He was referring to the online documentation for Cocoa. Since your app is not written in Cocoa, it won't be of any use. Anyway, you should probably try the java-dev mailing list.
Edit: a quick search of Apple's developer website turned up http://developer.apple.com/java/applescript/ -- but I don't know what the successor is for the aete resource on OS X.
[ 05-24-2002: Message edited by: Angus_D ]
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
Ah, yes, Java ons the Mac is supposedly as easy to make AppleScript support for as Cocoa, using the documentation Angus_D pointed out. In case you're curious, the documentation for Cocoa scripting support is at this link.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |