BBPony 0.1, Archived Version 0.1, 2011-08-19

Please Note: This is an archived version of BBPony!

I recommend to upgrade to the current version of BBPony. You can download the most recent version of BBPony from the BBPony main page. This archived version is kept for reference, please use it with care!

Features

Installation

  1. Download BBPony_0.1.zip and extract the archive.
  2. Once extracted, you should end up having a folder containing few AppleScript files with strange names like Search•Multi-File Search….scpt, etc. It is very important that you don't change those file names. The file names have to be exactly like the BBEdit menu names to be attached to, using • as delimiter (see BBEdit's manual for details.)
  3. Copy all files named *.scpt into BBEdit's Menu Scripts folder within the Application Support folder for BBEdit. This is usually ~/Library/Application Support/BBEdit/Menu Scripts/. You may have to create parts of the path first. To do so, you can open a terminal window and paste the following command (including the quotes):
    mkdir -p ~/Library/Application\ Support/BBEdit/Menu\ Scripts
    Please note for Mac OS X 10.7 Lion: The users Library folder is hidden by default. You can navigate to it in the Finder by clicking on the "Go" menu while holding down the alt key which makes Library appear in the list.
  4. Now, open BBEdit 10's preferences, select "Menus & Shortcuts" and re-assign the key combination cmdM to the menu item "Search" > "Multi-File Search…". You may get a warning, that this keyboard equivalent is currently assigned to "Edit Markup…". If so, ignore the warning an assign it anyway. This is important.
  5. Next, in the same window make sure that the key combination cmdT is still assigned to "Search" > "Replace & Find Next" or assign it back.
  6. Quit and relaunch BBEdit. This seems to be necessary only in some circumstances, but it also doesn't hurt.

Enabling UI Scripting on your Mac

BBPony makes use of UI Scripting in Mac OS X. You will first need to manually configure your Mac, so that it can respond to UI Scripting commands. To enable UI Scripting follow these steps:

Enabling UI Scripting on your Mac
  1. Open the System Preferences application.
  2. Click on Universal Access.
  3. Enable the checkbox labeled Enable access for assistive devices. See image in the right hand.

Check it out!

That's it, you're done! Try if all works as it should. Hit cmdM in an HTML document. The markup editor should appear. Now open a find window and hit cmdM to see, if it switches over to the multi-file search window. Hit cmdM again, BBEdit should switch back to the single file search window. Finally, open a normal find window and hit cmdT and confirm that the cursor jumps to the first position of the underlying document.

Troubleshooting

If the Menu Script does not work at all or the multi-file search window appears if you hit cmdM, please read and follow all the installation steps above once again very carefully.

Please also make sure, that the UI Scripting is enabled on your Mac like described above.