Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a property by using a string



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Calling a property by using a string (From: nino <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.