• 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: Property and variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property and variable


  • Subject: Re: Property and variable
  • From: Axel Luttgens <email@hidden>
  • Date: Fri, 03 Nov 2006 16:42:50 +0100

On 3/11/06 16:11, Jan Bultereys wrote:
Property and variable Hi all,

Just a quick question:

Why can I not link a property to a variable:
Eg. Works
property theFolders : 5

Eg. Doesn’t work
property theFolders : theFoldersVar

Where thefoldervar is a list

Because properties are defined (and initialized) at compile-time.
Other variables are set during execution, and are thus not available for initializing a property.
But you may use a (previously) defined property:

    property a : "hello"
    property b : a

    b
       --> "hello"


HTH,
Aexl
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Property and variable
      • From: Jan Bultereys <email@hidden>
References: 
 >Property and variable (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: Battery or AC?
  • Next by Date: Re: Property and variable
  • Previous by thread: Property and variable
  • Next by thread: Re: Property and variable
  • Index(es):
    • Date
    • Thread