Bluetooth Connection and that

Must apologies I have posted this sort yesterday but placed the wrong sort of title for it tried to edit but not luck fo rthe title bit.

Is there away to operate my internal Bluetooth to automatically search for devices and if possible write these device addresses and name to a window using applescript, so I can see whats been discovered, I am simply after the device address and username not interested in sending etc info. Its for my Final Yr Project, any help would be great. I have used the search and continuing the reading through but I have found this little thing

 tell application "System Preferences"
   activate
   set current pane to pane "Bluetooth"
   tell application "System Events" to tell window "Bluetooth" of process "System Preferences"
       click radio button "Devices" of tab group 1
   end tell

that connects etc but how would I do the rest.

many Thanks for the help

Model: iBookG4 and a G5
AppleScript: Xcode 2.4.1
Browser: Safari 419.3
Operating System: Mac OS X (10.4)