• 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: resetting record values to ""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resetting record values to ""


  • Subject: Re: resetting record values to ""
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 01 Jan 2001 21:13:01 -0800

On 1/1/01 8:56 PM, "John W Baxter" <email@hidden> wrote:

> I think this is one of the places where I would prefer copy over set...
>
> Same code except
> --not this: set thisRecord to defaultRecord
> copy defaultRecord to thisRecord
>
> Doing it this way will preclude accidental changes to defaultRecord.

Yes, 'set' and 'copy' do different things with records. Quite amazing. 'set'
is dynamic, with the "set" record changing along with changes made to the
original, but "copied" records are static , like set variables and lists.
>
>
> Michelle Steiner wrote:
>> BTW, it looks like you'll have to change the names of the "state" and
>> "month" fields because they are already used by Applescript.
>
> Perhaps not...
> copy {state:"a", month:"b"} to x
> x's month
>
> seems to work.


Yes, applescript doesn't seem to mind. It allows applications to use those
words as their own keywords, too, like 'state' in Outlook Express (you can't
also use it as your own variable name there, of course).

--
Paul Berkowitz


References: 
 >Re: resetting record values to "" (From: John W Baxter <email@hidden>)

  • Prev by Date: Re: resetting record values to ""
  • Next by Date: Palm Desktop Primary Category
  • Previous by thread: Re: resetting record values to ""
  • Next by thread: Re: resetting record values to ""
  • Index(es):
    • Date
    • Thread