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 Wed, 27 Sep 2006 08:31:42 +0200, jj <email@hidden> said:
>> There's no way to do *precisely* what you're describing
>
>You forgot this one, Matt ;-)
>
>
>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})

Yeah, well, I didn't exactly forget it. Using run script as a form of
second-level evaluation is in the book, all right, but I also point out that
it's really a pretty crappy thing to do, so I advise against it. There are
times when one just *has* to use it, of course. But in this case the
record-and-osax solution is way cleaner (esp now that we have portable osax
distribution). m.


-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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



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.