• 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: Jan Bultereys <email@hidden>
  • Date: Fri, 03 Nov 2006 16:45:47 +0100
  • Thread-topic: Property and variable

Title: Re: Property and variable
Ok, does this mean I can not link a variable to a property?

What is the workaround?

Many thanks
jan


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

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
 _______________________________________________
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: "Mark J. Reed" <email@hidden>
    • Re: Property and variable
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Property and variable (From: Axel Luttgens <email@hidden>)

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