Re: script object properties: seeking confirmation
Re: script object properties: seeking confirmation
- Subject: Re: script object properties: seeking confirmation
- From: Jon Pugh <email@hidden>
- Date: Mon, 11 Mar 2002 08:22:33 -0800
At 11:14 AM -0800 3/5/02, Bill Hoffman wrote:
>
I just wanted to clarify whether AS allows dynamic creation of properties of a script object at runtime, or requires that all possible properties of an object be declared on creation of the script object.
Once again invoking Donald's Commands, I must mention that AppleScript provides this capability via the OSA API to code (i.e. not AppleScript code) but the "set property" osax provides that aspect.
Here's a sample:
script foo
property bar : "bar"
end script
set foo to set property "xyzzy" of foo to "it's magic"
xyzzy of foo
You can get Donald's Commands from here:
<
ftp://mirror.apple.com//mirrors/gaea.scriptweb.com/applescript/osaxen/DonaldsCommands.sit.hqx>
Good luck.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.