• 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
Re: Calling a property by using a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
email@hidden


 _______________________________________________
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

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

  • Prev by Date: Re: Parsing quoted text
  • Next by Date: Re: New to applescript: year of
  • Previous by thread: Re: Calling a property by using a string
  • Next by thread: Re: OT: formal prefixes
  • Index(es):
    • Date
    • Thread