Re: Calling a property by using a string
Re: Calling a property by using a string
- Subject: Re: Calling a property by using a string
- From: Philip Aker <email@hidden>
- Date: Wed, 27 Sep 2006 04:22:24 -0700
On 2006-09-27, at 01:34:30, nino wrote:
to extract_usrf(theRecord, fieldName) run script "on run{r} return " & fieldName & " of r end" with parameters {theRecord} end extract_usrf
Hi Nino,
Thanks to both you and jj (on the AppleScript Studio list) for posting this.
So really, for a property in the same script:
property Great_Test : time string of (current date)
on GetPropertyWithName(theName) run script "on run{theObject}" & return & "theObject's " & theName & return & "end" with parameters me end GetPropertyWithName
set this to "Great" set test to "_Test" set thistest to (this & test)
GetPropertyWithName(thistest)
Philip Aker
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden