TidBITS GTD AppleScripts

Looking for the AppleScripts I mentioned in my TidBITS GTD article? Here you go. And here’s the readme, which you really should read.

scripts 1.01.zip

Jeff’s GTD AppleScripts
© 2006 Jeff Porten

Thanks for reading my GTD article and downloading these scripts. This readme provides a walkthrough for using these scripts on a day-to-day basis. You’ll need to do some setup to get them working on your Mac — but you only need to set them up once, and then they’re good (nearly) forever.

These scripts are all battle-tested on OS X 10.4. They might work on 10.3; no guarantees. They might break on your Mac, in a non-damaging way. If so, let me know and I’ll try to post a fix. But notably, the long-suffering people at TidBits haven’t seen these or edited this document, and I’m providing the standard “no warranty express or implied” disclaimer should anything go wrong. Backups are your friend.

Setting up your Mac for easy AppleScripting

You’re going to want to have a quick method of launching your scripts. The easiest way to do this is to activate your script menu. In Tiger, run the AppleScript Utility (in the Applications > AppleScript folder), and choose “Show Script Menu in menu bar”; a scroll icon (it’s an S, get it?) will appear in the upper-right section of your menu bar. (In Panther, look for an application called “Install Script Menu”, which does the same thing.)

You can organize your script menu as you like; Apple’s documentation for how this works is here:

http://www.apple.com/applescript/scriptmenu/02.html

Finally, I strongly recommend an AppleScript launching utility so you can fire off a script with a keystroke. I like Quicksilver, which is powerful and highly complex. There are about a thousand other options, which are discussed in detail in the 43 Folder list archives and website.

http://quicksilver.blacktree.com/

Editing these AppleScripts

Double-click on an AppleScript and it will open in Script Editor. Don’t worry if you don’t know how to use AppleScript; these instructions will walk you through the process. However, it’s useful to know three things:

1) Script Editor will format the text of a finished script to make it look pretty. When you make changes, your changes appear in a different font. This is normal.

2) Comments in AppleScript start with “–“; look there for my notes on what to change.

3) When you’re done with your edits, click the “Compile” button; if everything gets reformatted pretty, you know you have a working script. It might not do what you want it to do, but it “works”….

Comment and label selection

This script will set the label (i.e., the background color) of a Finder selection to yellow, and will ask you for a comment to add. If you have multiple files selected, it will do this to all such files. Probably a good idea not to have 300 files accidentally selected when you launch this script.

If you don’t like yellow, you can change the number 3 to something else at the commented line of the script. If you want multiple colors, copy the script a few times and set each one to a new color. I deliberately did not do this because I thought it was a bit too complicated, but have fun.

Get Alias URL

This is one of those things that should be simple, but is really complicated. At least, the AppleScript is complicated; running it should be simple.

This script will create a new folder called AliasFiles in your Application Support folder, and will stash aliases there so any URLs you create will continue to work no matter where you put the original file. There’s no cleanup utility, so you’ll have a lot of files living here; on the other hand, they’re all tiny and it’s hard to tell when you’re finished using them, so I just leave mine there forever.

Select a single file and an alias will be created to it alone. Select a group of files and they’ll be put into a single folder, with an alias created to that. The URL for this alias will be placed on your clipboard, so you can paste it wherever you like. (Note: don’t have anything you care about already in your clipboard — this will replace it.)

If you have Growl installed, a popup window will tell you that the alias was created.

http://www.growl.info/

Open Some Someday Item

This was definitely a case of making pretty stacks of sandwich orders, but it’s fun. Point this script to your Someday folder, then launch it and it’ll randomly pick out a waiting file and ask you if it’s okay to work with it. If you agree, it’s labeled and stashed on your desktop. If not, you can tell it to pick another. The script is preset to look for a “Someday” folder in your user folder. You can edit it to look for another.

Tickler folder setup

This script will create one folder for every day from now until whenever you like; by default, it’s the next 90 days. Set it to 365 or 3650 if you really don’t want to think about this again for a while. By default, it looks for a folder called “43 Folders” in your home folder.

Tickler file management

This script is designed to launch once a day to move files from your 43 Folders to your desktop. Note: there’s no error-checking in this script, so if you get an error message in the morning, it probably means you already have a file on your Desktop with the same name as a file in your tickler folder. I’ll bet you a dollar you’ll do this sooner or later with a file named “Picture 1”. If this happens, go ahead and manually move your files around for today.

By default, this script looks for ticklers in a folder named “43 Folders” in your home folder. If you changed this in your setup script, you’ll need to change it here too.

Once the script is set up, you’ll need a way to launch it on a daily basis. I have a repeating daily event in my iCal set up to launch this script for me, which is very similar to what is mentioned here:

http://www.macgeekery.com/tips/poor_mans_cron

Troubleshooting

All of these scripts have been in extensive use on my Mac since sometime after the Industrial Revolution. They work fine here. Whether they’ll work on your Mac, I have no idea. But I’ll be glad to make reasonable efforts to that effect, especially if many people have the same problems.

Again, there’s nothing dangerous about these scripts — the only thing that ever gets deleted is an empty tickler folder. That being said, you assume all risk and responsibility yadda yadda yadda.

And while it’s not required, folks who’ve made a PayBits contribution will probably get more attention if they have a problem with the scripts. For example, they’ll get an email when I post an update to the scripts. If you’ve already contributed for part 1, don’t worry, you’re already one of my favorite people.

PayBITS: Has Jeff helped bring order to your life? Show your appreciation via a PayBITS donation! http://www.paypal.com/xclick/business= civitan%40jeffporten.com Read more about PayBITS: http://www.tidbits.com/paybits/

Who I (supposedly) look like

Hat tip to Brian Greenberg on this celeb face-matching site. I ran my own photo, and would have given props to the site had it matched me with Robert Downey, Jr., whom I’ve been mistaken for. No dice.

No, instead, the celebrity I resemble most is: Robin Gibb. You in the back, stop snickering. Coming in second is Larry King, who I think bears a terrifying resemblance to my father, so I guess the site scores points there.

Third, Oliver Stone. Is this thing matching faces or politics?

Fourth and fifth, Mahmoud Abbas, head of the PLO, and Anders Fogh Rasmussen, president of Denmark. Ooookaaaayyyy.

Sixth, Clark Gable. Now we’re talking.

Seventh through tenth… are you sitting down? Marilyn Manson, Dizzy Gillespie, Yogi Berra, and Deborah Kerr. No, I am not making this up.

Driving me to… drive

Greetings from beautiful downtown Washington, DC, where it’s nearly 1 AM and I’m writing from the very scenic Gate C of Union Station. As in the “Stranded at Gate C” Gate C of Union Station.

I suppose I’m not really stranded; after all, I could have boarded my train when it departed 90 minutes late, and arrived in Philadelphia too late to make my connecting train to Atlantic City. So I had my choice of which train station to be stranded in, which I suppose doesn’t completely meet the definition of stranded. I stayed in DC because although the Starbucks is closed, the wifi is live, and there’s a power outlet here. Besides, for some reason DC seems to have a better class of homeless people scattered about than 30th Street.

So I’m passing the time waiting to get to Atlantic City by playing poker online. I would probably think that’s ironic if I gave it much thought.

I wish I could say I’m surprised to be here, but really I’m not. After two decades of being an adult non-driver, and happily carting myself up and down the East Coast via planes, trains, and (other people’s) automobiles, it’s gotten to the point where pretty much every traveling experience has been a negative one. And I’m a guy who’s been stranded by transportation companies on three continents; it really takes a consistent effort to annoy the hell out of me.

Amtrak seems to pride itself on raising surliness and inconvenience to an art form, along with their ticket prices. You can just tell they’re itching to say, “Screw you. If you don’t like it, you can take the bus.”

Which would be tempting, since the train routinely costs three times what the buses charge. But the buses — yeesh. After the gate agents get finished treating you like a suspected terrorist criminal psychotic, you board your bus and spend the trip dealing with the federally mandated quota of terrorist criminal psychotics, whose presence makes you too frightened to sleep, or makes it too loud to sleep without spackling your eardrums.

The only consistent positive experience I’ve had recently is with the “Chinatown” buses, which cart you from one Chinatown to the other for truly dirt cheap rates, and who generally maintain an air of professionalism in the process that exceeds Greyhound’s. But it sort of feels like “hard seat” tickets — bring your food and your nicotine patch with you when you board, because that bus ain’t gonna stop until it gets where it’s going.

I think I’ve had enough, sitting here at 1 AM in downtown DC. I think it’s time to finally do my bit to promote global warming, prop up the economies of countries that donate money to radical Islamists who hate me, tell Amtrak to ram it up their caboose, and send the Greyhound to the glue factory. I’m just too tired of you.

So — does anyone know of a Driver’s Ed class that isn’t filled with teenagers and alcoholics?

Finding potential NSA wiretaps

Kevin Poulsen at Wired News posts a wrap-up on what’s known about the AT&T wiretaps, and demonstrates the lie as to why this isn’t just targeting the suspected terrorists.

Also of note, pointing out what domains in a traceroute indicate that you might be getting sucked into the NSA data maw. I just ran a check from my Comcast cable hookup to Google, and yup, I have to cross an AT&T network to get there.

jeff@themovies: Superman Returns (2006)

There are few things in this life that make me feel like I’m seven years old again, but one of them is sitting in darkened movie theater in the seconds before the John Williams score introduces a new Superman movie. Of course, the last time I felt this way was just before The Phantom Menace started, so I was sort of ready to be bitterly disappointed again.

I wasn’t, although this movie is definitely a mixed bag for aficionados. As anyone who has read a review knows, Superman Returns was directed by Bryan Singer, who did a hell of a job of peppering the first two X-Men movies with winks at the comics-reading audience. Superman is a different story; the winks are at those of us who remember the first two Reeve films.

As for the comics continuity, forget it. Jonathan “Pa” Kent is dead; Lois is engaged to someone else (as opposed to being married to the Big Guy in the comics), and has a child old enough to make you wonder if she was knocked up in high school; and Superman himself has been away for the last five years or so on a homecoming jaunt to see the ruins of Krypton.

That’s the first thing that rings oddly about this flick—Superman is underpowered compared to the guy the comics readers are used to. In a breathtaking early scene, he saves both the space shuttle and a 747, but just barely; the print Kryptonian wouldn’t have strained nearly as hard. Likewise, it’s unclear why it would take five years to get to Krypton and back. In the movie he appears to have some sort of Kryptonian ship; in the comic, he gets around pretty well on his own with wormholes and the like, and can probably crack light speed on his own steam.

At the same time, he’s a bit too powerful to make for interesting movie villains. No human weapon can scratch him, as we’re shown during a great display of “faster than speeding bullet time”. Lex Luthor is dastardly as usual (and not the president, as he recently was in the comic), but all he’s got going for him is a few shards of kryptonite. Which, as per usual, is more darned easy to come by than fragments of a dead planet a galaxy away probably should be.

Kryptonite is another thing that gets the weird treatment. Canonical green-K kills Superman through radiation poisoning, but doesn’t take away his powers—although he might be too weak to use them. There was this scene recently where Superman and Batman got buried alive in a grave together after Superman got shot with a kryptonite bullet (bear with me, it made sense at the time); Batman frees them both by setting off a large explosive to blow them into the sewers, using Superman’s body as a blast shield. Naturally, both of them were in pretty bad shape by the time they made it back to the Batcave. Singer’s Superman, though, does seem to lose his powers when exposed to kryptonite; or at least, he loses them just enough for dramatic effect.

And that’s my biggest criticism of Superman Returns. This Superman just doesn’t seem all that heroic. DC has done a great job of coming up with storylines that challenge Superman’s powers, and he’s certainly gone through plenty of stretches without them—and he’s still the guy who the other heroes routinely refer to as “the best of us.” There are any number of characters flying around with Superman’s powers—off the top of my head I can think of two Supergirls, Superboy (a clone of Superman), Captain Marvel, Black Adam, Power Girl, and theoretically the entire population of Kandor if they could just get out of that bottle—but what made Superman a hero, to those who know him best, wasn’t being born on Krypton, it was being raised in Smallville.

Not so with the screen Supes. The married Lois in the comics didn’t marry Superman, she married Clark; it was only after they were engaged that he revealed his identity to her. Not so onscreen; this Lois has eyes only for Superman, and Clark Kent is as bumbling and annoying as ever. This follows in the footsteps of Christopher Reeve, but give me the comic Clark any day over this one.

Or the comic Superman. That one has too much sense of responsibility to Earth to fly away for five years. That one wouldn’t get the crap beaten out of him by three punks who wouldn’t make Batman break a sweat, kryptonite or no kryptonite. That one wouldn’t use X-ray vision and super-hearing to spy on an ex-girfriend in one particularly creepy scene.

So, you might think by now that I don’t like this movie. And you’d be wrong. I thought it was great, had a blast, looking forward to the next one. It’s just that this isn’t really the same guy I read about in the comic books, and I had a few things to get off my chest. You could say the same about Batman Begins, a great movie in which the hero clearly isn’t the Caped Crusader I know, because he wouldn’t reveal his secret identity to some floozy he used to date.

But, hey, Singer? Next time? Give the guy a proper S. This one is a little scrawny. (Illustration by Alex Ross, from JLA: Liberty and Justice.)

smalls.jpg
larges.jpg