On Aug 03, 2011, at 06:23, mwra wrote:
> Can't seem to see where on the windows the number of currently open documents
> is displayed - or how I get that figure reported. I tend to have a lot open
> and if the count goes up it's a useful reminder to close a few docs I don't
> now need. Not seeing it in toolbar or status bar I figured it must be in a
> tooltip for the Currently-open-docs pane title bar, but no.
______________________________________________________________________
Hey There,
This is not your ideal solution for window count, however it might do for the
present. Run it from the script menu to get a pick-list of windows and a
counter.
You can pick one or more window names to bring them to the front or cancel and
do nothing.
--
Best Regards,
Chris
------------------------------------------------------------------------------------------------
# Author: ccs
# Created: 2011-08-03 : 08:27
# Modified: 2011-08-03 : 08:27
# Application: BBEdit
# Purpose: Produce dialog with pick-list of window names an window count.
# Dependencies: none
------------------------------------------------------------------------------------------------
tell application "BBEdit"
try
set AppleScript's text item delimiters to return
set winCount to count of windows
set winNames to name of windows as text
set winNames to sort lines winNames
set winNames to text items 1 thru -2 of winNames
set AppleScript's text item delimiters to {""}
set dialogPrompt to ("[ " & winCount & " ] Open Windows")
set winChoice to choose from list winNames ¬
with title "BBEdit Windows" with prompt dialogPrompt ¬
default items {""} ¬
multiple selections allowed true ¬
with empty selection allowed
if winChoice ≠ false then
set winChoice to reverse of winChoice
repeat with i in winChoice
set index of window i to 1
end repeat
end if
on error errMsg number errNum
set sep to "=============================="
set e to sep & return & "Error: " & errMsg & return & sep & return ¬
& "Error Number: " & errNum & return & sep
beep
display dialog e
end try
end tell
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>