Re: Set a field of an AppleWorks database
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