Scriptability of ASObjC Cocoa applications
Scriptability of ASObjC Cocoa applications
- Subject: Scriptability of ASObjC Cocoa applications
- From: Stan Cleveland <email@hidden>
- Date: Fri, 15 May 2015 16:14:56 -0700
I'm rebuilding an old AppleScript Studio app using ASObjC. The old "Controller" app is basically a scratchpad used by external AppleScripts to report their status. The interface consists of text fields, progress bars, and images used as buttons.
All of the elements in the ASStudio app are accessible and changeable via external scripts using code like this:
tell application "Controller"
tell tab view item "ProcsTab" of tab view "Tabs" of window "Main"
--
set contents of text field "ProcTime1" to currentTime
--
tell progress indicator "ProgBar1"
set indeterminate to false
set maximum value to maxValue
set contents to currentValue
end tell
--
set image of button "Enabled1" to (load image "RedLED")
--
end tell
end tell
In early testing of my new ASObjC-based "Controller", it appears that it is NOT scriptable. Is this indeed true or am I missing something? Is there any way, short of creating terminology with an sdef file, to access the contents of interface elements from outside the app? Perhaps there's a "Make Scriptable" check box somewhere in Xcode that I haven't yet found?
Thanks,
Stan C.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden