More improvements to xedReplacement.sh

Added fallbacks to the AppleScript to handle scenarios where the Xcode window name isn't the same as the passed-in $client variable (e.g. this can occur with sub-projects within projects). Also handling the case where Xcode isn't already open when a log item is double-clicked.