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-26, at 23:31:42, jj wrote:

property foo : "worked"

set hackscript to "on run {x}
    x's " & "f" & "o" & "o" & return & ¬
    "end run"
set worked to (run script hackscript with parameters {me})

Absolutely brilliant solution jj, 

property foo : "worked"

set pnam to "f" & "o" & "o"
set hackscript to "on run {x} " & return & "x's " & pnam & return & "end run"

set res to (run script hackscript with parameters me)

Thanks for posting,

Philip Aker


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Re: Calling a property by using a string (From: jj <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.