Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript: How do I make my .App scriptable?

AppleScript: How do I make my .App scriptable?
Thread Tools
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
May 23, 2002, 12:49 PM
 
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
Reply With Quote
May 23, 2002, 05:36 PM
 
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.
Rick Roe
icons.cx | weblog
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
May 24, 2002, 12:44 PM
 
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
Reply With Quote
May 24, 2002, 02:09 PM
 
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
Reply With Quote
May 24, 2002, 05:58 PM
 
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.
Rick Roe
icons.cx | weblog
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2