I want to disconnect a connection to a bluetooth device through an Applescript. Please note that I don't want to disable or enable bluetooth, I just want to disable one specific connection.
Bluetooth functionality isn't made available through the Mac OS APIs (System Events being the chief one for things like this). You should be able to do this with GUI scripting (a great intro can be found on the Mac OS X automation site), but this is a really wonky way of doing it and is error-prone (unexpected dialog windows being the single biggest problem).
Not sure if this will work, my bluetooth has been b0rk3d for quite some time, but
You should be able to say something like
and then you could use the vast array of tragically randomly capitalized switches to work your will upon your bluetooth device, which should be a network interface.
You want to disable one connection, and one connection alone?