I have some technical questions about this simple script.
The display notification doesn't have to be - and arguably shouldn't be (see 2. below) - inside the Xcode tell block. I had put it there initially in the hope that the notification would appear to come from Xcode and would adopt Xcode's Notification Center settings.
That proved a vain hope. Regardless of where it is, the notification appears to take on the identify and Notification Center settings of the script runner (FastScripts, in my case).
Having failed in that, I thought to move the display notification out of the tell block, but then realized that would only complicate what is otherwise a very straightforward script in that I'd have to pass b's value out of the block. Of course, that's not a big deal, but I wondered whether there was any point in jumping through that hoop.
So my questions are:
- Is there any way to get the notification to take on the NC settings of Xcode?
- I understand that leaving the display notification call within the Xcode tell block is not considered 'best practice', but in this case, does it really make any practical difference?