• 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: script object properties: seeking confirmation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: script object properties: seeking confirmation
      • From: Andy Wylie <email@hidden>
References: 
 >Re: script object properties: seeking confirmation (From: Bill Hoffman <email@hidden>)

  • Prev by Date: Re: Do shell script "date" vs current date
  • Next by Date: Re: Curses! How to make new window in OSX Finder?
  • Previous by thread: Re: script object properties: seeking confirmation
  • Next by thread: Re: script object properties: seeking confirmation
  • Index(es):
    • Date
    • Thread