• 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: Set a field of an AppleWorks database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set a field of an AppleWorks database


  • Subject: Re: Set a field of an AppleWorks database
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 26 Oct 2005 22:24:07 +0200


Le 26 oct. 2005 , à 22:13, Jan E. Schotsman a écrit :

Hello,

I can get a field of a database like this:

		select every record
		set myList to {field <field name> of selection}

but the reverse doesn't seem to work:

		select every record
		set field <field name> of selection to myList

Or am I missing something?

I can write it out but it would nice if I could do it in one step:

set listCount to count items in myList
set recNum to 1

repeat until recNum = listCount + 1
set value of field <field name> of record recNum to (item recNum of myList1) as number
set recNum to recNum + 1
end repeat



Hello

I never found a way to do that directly from the selection

I just was able to use a shorter code:

set listCount to count items in myList
repeat with recNum from 1 to listCount
set value of field <field name> of record recNum to (item recNum of myList1) as number
end repeat



Yvan KOENIG _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Set a field of an AppleWorks database (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Global Find and Replace
  • Next by Date: Re: AW database field and floating point
  • Previous by thread: Set a field of an AppleWorks database
  • Next by thread: Global Find and Replace
  • Index(es):
    • Date
    • Thread