Manila Envelope – Part 9b

One additional thing about Manila Envelope — it’s a little bit of a paradigm shift from my scripts. I think the change is for the better.

With TextEdit2Blog, I started out trying to write a universal “save to the Web” script menu item for all text applications. The script was supposed to grab the selected text from the frontmost application and post it to the web. I soon realized that this just wasn’t feasible. There was no way to address all text applications universally–some had a “selection” property and some didn’t, and each exposed it differently. I decided instead to tie the script to one easily available application with a simple AppleScript Dictionary.

With AppleScript Studio, I don’t think this makes sense any more. It’s too easy to slap a text view onto the user interface, add some menu items, and essentially have all the functionality of TextEdit inside the app. Besides, as someone pointed out to me, copy & paste and drag and drop are pretty universally understood ways to get data into different places.

So Manila Envelope will have more of a text-based application feel to it. Cool. Now it just needs an icon. Anyone with skills want to share?

Manila Envelope – Part 9

If all goes well, this will be the first time I’ve posted something using my tools that I’ve been able to set an explicit Department for the news item.

A point about how Departments are implemented in Manila. Each news item can be assigned to a Department (for instance, this news item is in the Scripting Department). A site editor can define the categories that can be used and assign them unique images. Unfortunately, the only thing I’ve found in the Manila RPC that addresses Departments is the ability to set the Department for a news item using a string. There’s no way to get a valid list of departments for a given site.

That’s a shame. I’d love to have a drop-down menu that allows the user to choose the department. As it stands I’ll probably have to have the user type it in.

Manila Envelope – Part 8

A follow-up to my earlier item about using secure text fields: Apple’s mailing list comes through again. Tim Bumgarner, the tech lead on Applescript Studio, emailed me to point out that I could address the secure text field as a regular text field instead since the secure text field class inherits from the regular text field class.

What I find interesting about this is that it points up some interesting philosophical differences between Applescript Studio and other environments I’ve programmed in. Here, to address a control or other user interface element, you need to specify the control by class, for instance

get contents of text field "userPassword" of theWindow

Note the quotation marks around the text field name? The control’s names are not bound at compile time but are interpreted–good and bad; you can pass the name in as a string variable but you don’t get any protection from the compiler if you make typos.

Manila Envelope Part 7

I’ve been digging for a while on Manila Envelope, getting frustrated by a few things. Still impossible to work with secure text fields in AppleScript Studio. However, I now have the application working with a preferences file. This is pretty critical, as this was the last missing piece of functionality to make Manila Envelope do everything that my old scripts did.

My original goal was to make this release an “everything and the kitchen sink” one, and add in lots of stuff like style translation and so on. I think, though, that it’s time to avoid the Mozilla syndrome and fix on a reasonable set of requirements for 1.0. With this, I can hopefully release 1.0 in the next few days, before I go on my January road trip.

Don’t ask me about claptrap…

Thing #2: The moon in the mountains of Buncombe County, North Carolina, outside Asheville, is bright enough to walk by.

Thing #3: Buncombe County is the origin of the word “bunkum,” or “bunk.” Apparently Felix Walker, the representative from Buncombe County, started it in the US Congress by making a longwinded speech for show to his constituents while he was on the House floor. This may give you some perspective on some of the things written on the pages of webloggers. We tend to make a lot of speeches for Buncombe. 🙂

Truth hurts.

I’m really playing catch-up here, looking over my blog for the last three weeks (which have been pretty crazy) and going back to highlight things that have happened that I haven’t written about.
Tim Jarrett or Jim Nabors? You decide.  Nabors photo from http://www.sa.ua.edu/osm/corolla/29.html.Thing #1: The MIT Sloan talent show. The show concluded with a slide show of “Separated at Birth” headshots. It was pretty funny, especially the one of yours truly and Jim Nabors. Okay, so I look a little like the guy. The real irony is that he had a heck of a singing voice too.

women musicians

A friend and I have been discussing lately how hard it is to sort through all the mess to find really good music by women artists. I decided to put my money where my mouth is and pull cds out of my collection that feature women singers/songwriters. The list is here. A few notes: Lauryn Hill is missing, but only because Tim borrowed my cd. I’ve left out groups such as the Cowboy Junkies that only have a female lead singer, but included groups such as Concrete Blonde when that singer does most of the songwriting. I was pleasantly surprised; I’ve got more than I thought I did, although it’s still not a big enough proportion of my collection. I offer this list (complete with web sites) as a starter’s list for the uninitiated.

Yo, Ashcroft

“I believe there are more instances of the abridgment of the rights of the people by the gradual and silent encroachments of those in power than by violent and sudden usurpations.” -James Madison, fourth US president (1751-1836)

Girlfriends and dressing

Happiness = sharing shellfish and wine with my best girlfriends. They, along with mucho crusty bread, a huge salad, and way too many old jokes, conspired to make Friday one of the best nights I’ve had in a long time. Many, many thanks to Christina, Jackie, Steph and Debbie (as well as Jack’s golden, Millie) for putting up with what was basically a selfish impulse of mine to have as many of my girlfriends together under one roof as possible (we missed you, Pam and Mary). And thanks as well to Guido (no lie), our waiter at lunch on Saturday, for one of the more surreal dining experiences I’ve ever had. You know when the waiter says, “I want to bask in your radiance” that something loopy is going on.

Hey Stiz, here’s that salad dressing recipe you asked for: coat the greens in olive oil till they’re shiny. Combine balsamic vinegar with lemon and lime juice, sugar, salt, pepper and thyme to taste. Shake it all up and pour over the greens just before you serve. Credit where credit’s due: Tim’s mother-in-law, Ramona Lucadamo, taught me how to make it.

There was more to my weekend, but I’ll have to tell you about it later. Dinner’s ready! Man, I love it when Debbie cooks…

Radio? What’s a radio?

I just found this hommage a radio in Doc Searls’ weblog (I’m only a day late. Sue me, I was in Appalachia). It’s fascinating, except that it’s a nostalgia that I can’t share. I think the equivalent nostalgia for my generation (born in 1972) would have to be personal computers. Maybe video game consoles. Feelin’ old yet, Doc? 🙂

First PC I ever spent any hands-on time with? Probably an Apple IIe (Apple ][e?), or maybe our family friend’s Atari 800. First family computer–Apple //c. First computer of my very own? Mac SE/30. That was only two Macs ago for me. They last a long time…

Sammiches!

My favorite thing on the planet (today): sammiches made with leftover Christmas ham. So good, your tongue’ll beat your brains out. And yes, the technical term is “sammiches”.