variable with Computer name won't work to change a record...

Hi

I’m trying to use my computer’s name placed in a variable to change the value of a record. I can’t seem to get this to work. In the posted script I simply set the ComputerName, but in actuality I will be getting the computer’s name from ‘system info’. I want the script to be able to set the value of the record using the computer name of where the script runs.

with the “run script” line, I get the error: “Can’t make G5QUAD of usedTime into type reference.”
with the “set ComputerName of usedTime to…”, I get: “Can’t get ComputerName of {thedate:date “Monday, March 17, 2008 7:13:28 PM”, G5QUAD:0, Powerbook:0, iBook:0}.”

here’s the script:

property usedTime : {thedate:"", G5QUAD:0, Powerbook:0, iBook:0}
property localFolderPath : path to desktop as string

set thedate of usedTime to (current date)
set ComputerName to "G5QUAD"
set ComputerName of usedTime to ((ComputerName of usedTime) + 1)
--run script "set " & ComputerName & " of my usedTime to ((" & ComputerName & " of my usedTime)+1)"

TIA for any help you can provide.

Vince

Model: G5 Quad
Browser: Safari 412.5
Operating System: Mac OS X (10.5)