• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scriptability of ASObjC Cocoa applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Scriptability of ASObjC Cocoa applications
      • From: Shane Stanley <email@hidden>
    • Re: Scriptability of ASObjC Cocoa applications
      • From: Ron Reuter <email@hidden>
References: 
 >Addressing disk problem (From: Brian Christmas <email@hidden>)
 >Re: Addressing disk problem (From: Shane Stanley <email@hidden>)
 >Re: Addressing disk problem (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Spurious Messages from "email@hidden”
  • Next by Date: Re: Scriptability of ASObjC Cocoa applications
  • Previous by thread: Re: Addressing disk problem
  • Next by thread: Re: Scriptability of ASObjC Cocoa applications
  • Index(es):
    • Date
    • Thread