Evaluate Selection in BBEdit

Something the great Applescript support in BBEdit opens up is a nice calculator. I just wrote this in Python using its eval() function so that it would evaluate either the line your cursor is on or the selection and then paste the results. Now I run this via Quickeys as you can’t run a Unix [...]

MarsEdit, Safari and the Ragged Left

OK, this one has been bugging me for a while. Now I learned to type when I was pretty young and monospace was still king. That means that I was the last of that generation taught to type two spaces between sentences. I know I’m not alone. I bet a lot of you do too. [...]

Contactizer Pro to FedEx

So one of the things I’ve historically done when dealing with any address book or CRM program is write a program that quickly generates a FedEx packing slip. I do this since I find myself needing to print packing slips all the time. Having to cut and paste bits of addresses and name is just [...]

Combining Scripting and Quickeys

One reason I switched my macro program of choice from iKey to Quickeys (beyond some reliability issues) was Quickeys’ ability to store shortcuts and then call the shortcut via Applescript.  If you’ve ever spent hours trying to figure out how to script something using GUI scripting simply because Applescript support was lacking you can probably [...]

Testing Contactizer Pro

Regular readers know that I’ve been having an ongoing search for the perfect Address Book and Contact workflow. Honestly this has been one of the weakest aspects of OSX in my opinion. For about a year I used Salesforce.com and had a few “hacks” to make it a bit more integrated into my regular workflow. [...]

Applescript and Sandboxing

So I’ve been hearing that Applescript is going the way of the dodo. Apparently the model for sandboxing Apple is using more or less makes it impossible to write your application in an Apple Event savvy way. Apple is very concerned about security and perhaps understandably Applescript is a huge issue in that regard. In [...]

Drang’s Finder Bar

Dr. Drang has up a good post on what he has on his Finder Toolbar. I used to have a lot on mine. I reduced it to a script that creates two side by side Finder bars at the current location, a fast Obj-C “open in terminal” command, and a “copy location to clipboard” Obj-C [...]

Applescript: Things that Make You Go Huh?

Applescript is one of those things that just annoy me. Not the language but the system. (i.e. Apple Events) Apple has this fantastic system that lets you control applications. However Apple really hasn’t given it a lot of love. I could understand some of the shift from Sys9 to OSX. While I’m anything but a [...]

Use Pages to Replace Text on Clipboard

There was an interesting question at Stack Overflow on how to edit styled text on the clipboard. This is how I’ve always done it. Use an editor that supports styled text as an intermediary and do a find and replace within that application. You could use Text Edit, MS Word or Pages. I use Pages [...]

Select Duplicate Messages

I have a ton of email accounts and then rules to move everything into one master account. For whatever reason I often thereby end up with duplicates. Some of this is just a poorly written rule somewhere I’m sure. Some of it is people CCing me on multiple accounts. Here’s a quick and dirty script [...]

Scripting in Preview Disabled

Did you know that Applescript support in Preview is disabled by default?  What the heck!  Fortunately it’s easy to turn on.  But still… sudo defaults write /Applications/Preview.app/Contents/Info NSAppleScriptEnabled -bool YES It’s times like this that really makes me wonder about Apple’s commitment to scripting.

Cleaning iTunes: The Return

A few years back I had decided to finally clean up my iTunes library using Python and Appscript. I posted the scripts I’d used to do this. (1, 2, 3, 4) I also had a quasi-working script to look up missing information like albums and the like from various online libraries but ended up not [...]

NetNewsWire to MarsEdit

I’m too lazy to see if I’d put a previous version of this up here or not. This is a nice little Python script I use regularly to take the current rss feed I’m reading in NetNewsWire an create a post in MarsEdit. Nice for sidebar entries at my various blogs. Just drop this one [...]

Thoughts on Google Apps

I’d mentioned a few weeks back about my switching much of my mail over to Google Mail. The reasons were two fold. Firstly my server somehow got put on a spam blacklist and I couldn’t get it off. Needless to say this led to a lot of lost mail. The second reason was to have [...]

« go backkeep looking »