I have been using QS just for app starting but your post made me look
at the triggers.
I will have to play with them more.
I tried this applescript instead of using "System Events"
tell application "BBEdit"
if exists text window 1 then
set mywindow to text window 1
else
set mywindow to make new text window
end if
make new text document at mywindow
end tell
It seemed to work every time
if bbedit doesn't have a window open it opens it
and if the doc window is open it just adds another untitled to the list
don't know if this will help, but hope it does.
On Mar 27, 2007, at 8:10 PM, dsjkvf wrote:
hello,
does anybody use BBEdit together with QuickSilver? the point is that i
wrote a simple AppleScript to make a new document in BBEdit:
---
tell application "System Events"
tell application "BBEdit" to activate
keystroke "n" using {command down}
end tell
---
and then i have assigned it to a keystroke trigger in QS. but,
however, not everything seems to be OK: the strangest thing is that it
does work when the shortcut is pressed for the first time, but when
calling it again and again it just brings BBEdit to foreground, but
does not create a new document.
from other side, when calling from the Script Editor, this script
seems to work fine all the time...
so, i would be grateful for any advise or for any other 'system-wide
shortcut for a new document' solution. (sorry if it was discussed
before, though i haven't find anything related after a quick search in
the mailing list's archives :)).
thank you.
--
dsjkvf
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>