I made the script using vi on my nokia but if you are not used to this editor this is probably not what you would like to use ... also nokia didn't really fix the keyboard for shell scripting as it...
from your Xterminal on N900, copy a BT address (first 6 digits) and replace 00:BD:3A (line #4) with the LAP you copied. Now the alert should appear if that...
so the app should just scan for other devices with N900 in the name and if possible verify that the device name contains this string - I have BT always on.