Scan for any bluetooth device

Hi all,

I have a simple question. I just want to scan with my built in bluetooth every "x"seconds, (i believe the fastest is 5), and return a list of all detected bluetooth devices.

I have searched quite a bit and can’t seem to see any other way but to do it with GUI scripting.

Any ideas?

Kind regards

Tim

The MAC addresses of detected BlueTooth Devices are in ~/Library/Preferences/com.apple.bluetooth.plist, but I don’t know of any shell function for finding them.