Re: How Can I Access Properties of Script Applications?
Re: How Can I Access Properties of Script Applications?
- Subject: Re: How Can I Access Properties of Script Applications?
- From: Stan Cleveland <email@hidden>
- Date: Mon, 09 Mar 2015 12:22:02 -0700
On Mar 9, 2015, at 3:34 AM, S. J. Cunningham < email@hidden> wrote: Is there some way to directly access the properties of a running script application similar to the way you can with a script object?
Hi S. J.,
You've already written a handler to 'set' the property. Now write another one to 'get' it.
Stan C.
property sampleProperty : ""
on setProperty(newValue) set oldValue to sampleProperty set sampleProperty to newValue return {oldValue, sampleProperty} end setProperty
on getProperty() return sampleProperty end getProperty
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden