Re: Newbie: AppleScript support in Non-Document based app
Re: Newbie: AppleScript support in Non-Document based app
- Subject: Re: Newbie: AppleScript support in Non-Document based app
- From: Glenn Howes <email@hidden>
- Date: Fri, 20 Sep 2002 11:36:35 -0700
Steven,
It might be possible to do what you want without mucking around with
scripting dictionaries. If your window has a query string field, you
could use the built in scripting infrastructure to set it like the
following and then deal with the change of text as you normally would.
tell application "InCDius GH 2"
set content of view 3 of content view of window 3 to "Daniels, Charlie"
end tell
If you want more extensive examples in using AppleScript in Cocoa
apps, I've an application I've been working on which is fairly
scriptable you might find something useful in it. It's up on my public
iDisk, so
Via the Finder's Go menu:
http://idisk.mac.com/grhowes/Public
There's a file called InCDius2.pkg which contains a development version
of an Audio CD database organizer and it's source.
--glenn
On Friday, September 20, 2002, at 09:59 AM, Steven M.Palm wrote:
>
Thanks for the pointers in answer to my previous query, but everything
>
mentioned (and everything else I stumble across) assumes you are using
>
an application under the document based model.
>
>
I have a very simple application which will only have one window ever,
>
mostly as a status display. I want to have the ability through
>
applescript to send commands to this application and it will either
>
display the requested text in the window, or do some processing and
>
display the results.
>
>
I have written and rewritten .scriptSuite and .scriptTerminology
>
files, and scratched my head too many times to think of, and still am
>
no closer to getting anything that even remotely resembles working.
>
>
So, anyone out there who can offer some pity or advice? Source code
>
most welcome. <grin>
>
>
-----------------------
>
- Steven M. Palm
>
- Ham Radio Call: N9YTY
>
-----------------------
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.