While I can set an elements attributes using a dictionary I can’t find a way to do it the other way round.
someElem’s attributes will give me an array(list) like the example below
set theDict to current application's NSDictionary's dictionaryWithObjects:(theArray's valueForKey:"name") forKeys:(theArray's valueForKey:"objectValue")
set theDict to current application's NSDictionary's dictionaryWithObjects:(theArray's valueForKey:"objectValue") forKeys:(theArray's valueForKey:"name")