On Oct 27, 2012, at 06:43, Rajkumar <[email protected]> wrote:
> Is it possible to instruct BBEdit to use the path of last open file for the 
> new file that I am opening?  I am finding that when I open multiple files 
> from the same location, I have to navigate to a specific folder for each file.
______________________________________________________________________

Hey Raj,

It's unclear to me what you're doing.

If you're opening a number of files at once from the same location you can 
select multiple files in the open dialog.

BBEdit 10.5 remembers the last location the open dialog went to on my system.  
I use Default Folder to have much more control than that.

You can exercise quite a lot of control by using a script.

This will default to the front window open in the Finder.

-------------------------------------------------------------------------------------------

try
  
  tell application "Finder"
    if front window exists then
      set folderAlias to target of front window as alias
    else
      error "No windows are open in the Finder!"
    end if
  end tell
  
  set fileList to choose file default location folderAlias with multiple 
selections allowed
  
  tell application "BBEdit"
    open fileList
  end tell
  
on error e number n
  set e to e & return & return & "Num: " & n
  tell me to set dDlg to display dialog e with title "ERROR!" buttons 
{"Cancel", "Copy", "OK"} default button "OK"
  if button returned of dDlg = "Copy" then set the clipboard to e
end try

-------------------------------------------------------------------------------------------

Use the Applescript Editor to save it.

Put it in the scripts menu.

Give it a keyboard shortcut.

And go to town.

You can even limit the types of files it will see, but that takes a little more 
code.

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



Reply via email to