Hey Chris,

Thanks for the reply!

The problem is that I want to keep the current selection in the project (which 
is why I want to open the other file in a new window in the first place). 

I know I can also use the contextual menu in the Currently Open Documents area 
of the sidebar, but again, in addition to opening the document in a new window, 
it also selects it in the project (and I don't want to change the selection 
method from one click to double-click).

I also knew about the AppleScript way, and another method is to use BBEdit's 
disk browser. But I hoped I was overlooking some pref. 

Best regards,

Philippe



On 10 sept. 2012, at 15:13, Christopher Stone <[email protected]> 
wrote:

> On Sep 10, 2012, at 07:30, Philippe Martin <[email protected]> wrote:
>> When I have a project document open, if I try to open from the Finder a file 
>> that is part of this project, it opens in the project window's editor. Is 
>> there a pref or an expert pref that escape me to change this behavior so it 
>> opens in a new window instead? 
> 
> ______________________________________________________________________
> 
> Hey Philippe,
> 
> I don't know of any way to change this automatic behavior, but there're a 
> couple of easy work-arounds.
> 
> Move to New Window - Cmd-Opt-O will open the current document into its own 
> window, and then of course there's the scripted solution:
> 
> ----------------------------------------
> tell application "Finder"
>       set _files to selection as alias list
> end tell
> tell application "BBEdit"
>       open _files opening in front_window
>       activate
> end tell
> ----------------------------------------
> tell application "Finder"
>       set _files to selection as alias list
> end tell
> tell application "BBEdit"
>       open _files opening in new_window
>       activate
> end tell
> ----------------------------------------
> tell application "Finder"
>       set _files to selection as alias list
> end tell
> tell application "BBEdit"
>       open _files opening in separate_windows
>       activate
> end tell
> ----------------------------------------
> 
> All of these should work with one or more items selected in the Finder.
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> -- 
> 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>
>  
>  
>  

-- 
-- 
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>



Reply via email to