Unable to initiate HotSync operation because the port is in use by another application.
One solution seems to be a system restart, but the problem re-appears after the first Bluetooth HotSync. The only other solution I've found is to open the Bluetooth System Preferences Pane, and toggle between the Settings and Devices tabs while the Bluetooth connection is attempting to connect. (I came across this solution in a forum somewhere). This second solution is a little annoying to do manually, so I wrote the following AppleScript to automate the process. It is adapted from the script in this hint.
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click the menu item "Bluetooth" of the menu "View" of menu bar 1
delay 2
click the radio button "Settings" of the ¬
first tab group of window "Bluetooth"
click the radio button "Devices" of the ¬
first tab group of window "Bluetooth"
delay 2
end tell
end tell
tell application "System Preferences"
quit
end tell
After initiating a HotSync from the Treo, simply invoke the script. I use Butler, and assigned a keyboard shortcut to launch the script. Note that you must have enabled access for assistive devices in the Universal Access System Preferences pane, as this script relies on System Events.
I would be interested to know if there is a more straightforward solution to this problem.

