• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property question


  • Subject: Re: Property question
  • From: Arthur J Knapp <email@hidden>
  • Date: Fri, 03 May 2002 12:58:02 -0400

> Subject: Property question
> Date: Fri, 3 May 2002 11:00:24 -0400
> From: "Steve Suranie" <email@hidden>

> property AAFolder : (current date) as string
> property ALFolder : (current date) as string

[snip]

> tell application "Finder"

> --setting up initial arrays
> set magToCheck to {AAFolder, ALFolder, ARFolder, DRFolder, HIFolder, HXFolder,

You are creating a list of the dates, but setting an item of this list
will not update the propertiess, it will just update the list.

There are several ways to go here. First, you could copy references to the
properties into your list:

set magToCheck to { a reference to my AAFolder, etc... }

and then you would set them something like this:

repeat with mag in magToCheck

if ( [test mag] ) then set mag's contents to [whatever]


Another way to go is to hard-code these properties as a list to
begin with:

property magToCheck : { {"AAFolder", current date, etc...}, {"ALFolder", }


Then you can traverse the properties, etc. Otherwise, you have to work
directly with the properties names:

if ( [test AA folder] ) then set AAFolder to [whatever]


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.appleklub.cz/~koudelka/home.shtml>
on error number -128
end try
}
_______________________________________________
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.

  • Prev by Date: [Noise:] Re: Finder Whose by Modification date
  • Next by Date: Send email with attachment
  • Previous by thread: Property question
  • Next by thread: How to create a new outgoing message with a signature assigned
  • Index(es):
    • Date
    • Thread