tips

BBEdit Memory Lane

I've been researching some BBEdit scripts and I didn't want to reinvent the wheel. A logical source to review is Daringfireball. It was fun looking over the old articles and seeing how BBEdit evolved and how much Gruber contributed. Here's a canned Google search for anyone that's interested: Daringfireball

Custom Grammar Checker in BBEdit

Here’s a bit of a BBEdit hack for a very specific problem. There are a number of words I either confuse or overuse when I write hastily. I’m not talking about misspelling of words, but rather using one word in the place of another.[1] For example, using “peak” when I meant “pique” or “your” when I meant “you’re”. I wanted a custom grammar checker to let me know when I might have a problem with a document.

Bash Prompt Tutorials Link

Beginner and what I assume is advanced, since I can't understand most of it. Enough between each to make the shell a bit more attractive.

Quick Tip Sleep Display Shortcut

My secondary monitor goes all squirly occasionally when I wake the displays. It's a NEC Multisync 3090WQXi and a very nice display. I suspect the issue is the Apple DVI adapter. If you have similar issues, the most reliable and easy solution is to force the displays to sleep and wake. There's a shortcut key combo for sleeping displays: ctrl-shift-eject.

What's So Fun About Fake?

I wrote about the Mac application “Fake”[1] awhile ago. From my very first use, I thought it was an incredibly clever tool. Fake is like a super-charged automator for Webkit. It makes automating interactions with webpages easy and simple. But why would I want to use Fake instead of Automator or curl or even a Python script? Here’s an example that I just started using. If I want to add an affiliate link for a Mac or iOS app, I need to visit the Apple Link Maker page with my affiliate id as a get-parameter in the link.

Multimarkdown and Image Attributes

I’ve been mostly oblivious to this aspect of MMD but found it in the Byword documentation. Multimarkdown supports things like width and class attributes for images, if they are included as link references. Handy. I really should read more documentation.  UPDATE: Here’s an image reference for one of my inserted images. [fakemacro]: http://www.macdrifter.com/uploads/2011/12/Screen%20Shot%2020111223_232543.jpg style=“display: block; margin-left: auto; margin-right: auto; width: 600;"

Holiday Security Chores

I’ll be taking advantage of some vacation time over the holidays to do a clean sweep of my secure credentials. I’m a 1Password user, so it’s pretty easy. However, it’s still time consuming. The first step for me is to make a list of the accounts to update. I keep a text list of the services I frequent but there are still a lot that gather dust. For example I have an Amazon S3 account that I almost never need to login to.

CodeRunner and Patterns Quick Review

I just started using CodeRunner and Patterns for script writing.[1] They are both available in the MAS. CodeRunner supports AppleScript, Python, Ruby, Shell and several more. It provides syntax highlighting and code completion. Importantly it also provides a console window to display the output as well as a mode for accepting input. Sure, it’s not BBEdit, but it’s lightweight and single minded. There are not many frills but it works great.

SitePoint Programming Book Sale Link

I purchased about 6 books last year. The sale has some great price reductions and the SitePoint books are very good. I particularly like their HTML Reference book. Books come in both dead-tree and magnetically aligned particle formats. Pay attention to the version that is on sale before you buy. SitePoint Holiday Sale

Keyboard Maestro Variables Get Pixel Measurement

I’ve written previously about Keyboard Maestro variables. Last time I showed how a variable in Keyboard Maestro could be used to create a push and pop mechanism for the finder. In that case the trick was to pass the variable into an AppleScript. Here’s another example using variables in Keyboard Maestro except this time I’m going to perform a calculation with variables right in the macro Here’s a macro to determine the change in coordinates of a mouse cursor.