• 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: Dose anyone know....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dose anyone know....


  • Subject: Re: Dose anyone know....
  • From: Emmanuel <email@hidden>
  • Date: Fri, 2 Aug 2002 23:43:43 +0200

At 12:52 AM +0200 1/8/02, Arthur J. Knapp wrote:
>
(sorry, have missed the thread, so am considering Arthur's mail only)

>> tell Database 1
>> tell Table "Customers"
>> set (Value of Cell "Name" of (every Record whose Value of
>> Cell "CodeNumber" = "A2306")) to "Test Company"
>
> Try changing "every Record" to "first Record". This may speed up
>execution. Other than that, there is nothing in your above code that
>seems like it can be improved upon. The application may simply be
>taking a long to find the appropriate record, and there isn't much
>that you can do about that. Is it a very large database?
>
> Without knowing anything else about the application, we can't
>really help very much, sorry.

I know very few programmers who would accept to program an application so
that it would kindly accept to run such a command line as:

set value of cell "name" of every blah blah

Setting a property of "every" thing is already an achievement.

Setting a property of an element (referenced by name, here) of "every"
thing is much harder.

The programmer would not even know what (s)he must do with the records who
don't have a cell named "name" - starting with simple problems.

If I'm right, use a loop, such as:

set theList to (every record ...)
repeat with theRecord in theList
set value of cell "name" of theRecord (or, do you need "of
theRecord's contents")
...

HTH
Emmanuel
_______________________________________________
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: Re: TextEdit and Text Item Delimiters
  • Next by Date: Re: Why root?
  • Previous by thread: Re: TextEdit and Text Item Delimiters
  • Next by thread: Re: Mac OS X Finder views
  • Index(es):
    • Date
    • Thread