I found that it’s relatively easy to login to Drupal from AppleScript by using cURL. I created a sample script to show how; grab DrupalFromAppleScript, load it into Script Editor, enter values for your username, password and Drupal URL, and you should be able to get it to login to your site.

This will only get you logged in of course — you’ll have to amplify the script to make it do anything useful (like uploading content, grabbing information, etc.)

Question for those with a finer understanding of the human body: if fever is a self-defense mechanism that helps the body kill off invaders through heat, why do we take medications to lower fever when we’re sick? Isn’t that self-defeating?

I found the information on the HealthyOntario website very helpful this weekend.

NOTE: I’ve released an updated version of this script that uses AppleScript only.

Here’s a hack I threw together to allow me to post images from iPhoto into my Drupal image gallery. It’s a two-step process: first, there’s an AppleScript that grabs the photo information from iPhoto and puts it into a temporary file; this script then calls a PHP script that takes this information and uses cURL to do an automated login to my Drupal site and uploads the photo.

There are probably much more elegant ways of doing this, but this one has the advantage of being relatively simply and easy to modify.

Here’s what you’ll need to make this all work:

Once you’ve got all of the above downloaded, installed, and configured, uploading a photo from iPhoto to Drupal is as simple as selecting a photo, and then selecting the iPhotoToDrupal script from the Script Menu:

Note that you’ll need to have at least an image “title” defined in iPhoto, as this is a required field in Drupal; an image description is optional.

Assuming everything is configured properly, you should find the selected photo uploaded to your Drupal image gallery a few seconds later.

I welcome comments on the code and the approach.

I use iPhoto to manage my photos with my iMac. I use Drupal as a content management system for several websites I maintain. Drupal has an “image gallery” function that I use a lot. I also use Gallery to maintain some online photo albums (like this one).

Gallery has a neat iPhotoToGallery plug-in that allows photos, with titles and comments, to be easily exported to an online gallery.

I’d like to have the same thing for Drupal, and it occurs to me that the easiest way to do this would be to create a Drupal module that implements the Gallery Remote Protocol; this would mean that all of the Gallery client-side tools could be used to maintain Drupal image galleries.

Ian Aldrich, a colleague at Yankee for the past several years, has moved on to a new position as Senior Editor at Cincinnati Magazine. We wish Ian all the best; we enjoyed working with him. And we’ve now got an open invite to visit Cincinnati!

The CBC released a document called Enhancing Regional Connections: A Local/Regional Strategy on Wednesday. Possible developments on Prince Edward Island include:

  • A new joint Radio-TV news bureau in Summerside is proposed for 2007-2008.
  • On television, “all or part of expanded supper-hour newscast, weekday late-night newscast, weekend local newscast, weekday interstitials” are proposed for Charlottetown for 2007-2008.
  • On the web, “expanded CBC.ca coverage, 2nd shift weekdays, weekend shift 9AM-5PM” is proposed for Charlottetown in 2005-2006.
  • On radio, “seven days a week news” is proposed for Charlottetown for 2005-2006.
  • News reporters will be “called upon to produce items for both Radio and TV.”

Nationally the new initiatives are forecast by the CBC to cost an additional $82.8 million per year by 2007-2008.

Not many places have a Prothonotary, but we have one here on PEI. Our Prothonotary is responsible for:

  • Assessment of all costs, both party-party and solicitor-client costs;
  • mediation of all small claims cases,
  • garnishee hearings, and criminal show-cause hearings for Provincial Court,
  • execution of conveyances, transfers or mortgages ordered by the Court,
  • issuing subpoenas for inferior courts/tribunals,
  • hearing all uncontested motions, applications and references.

Our Prothonotary is also “empowered by the Marriage Act to perform civil wedding ceremonies.” And this morning he was quoted by the CBC as saying the following about the possibility of being called upon to perform same-sex marriages:

“I’m not allowed to discriminate for any purposes in the performance of my job and I don’t see how the government could really allow me to discriminate. Because then why can’t other people discriminate in other rights issues. I could do it on the basis of race, I could do it on the basis of language.”

Rock on.

From here to here to here to here to a tasty lunch of trout, beets, artichokes, potato dumplings, cream of carrot soup, dessert and drink for $8.50.

If you are a nascent librarian, or a librarian-o-phile, UNC has a summer course in Slovenia for you:

This two-week seminar features tours and presentations relating to librarianship in the Republic of Slovenia, the most advanced republic of the former Yugoslavia. It is bordered by Austria, Italy, Hungary and Croatia.
Co-sponsored by the University of Ljubljana, the seminar is available for academic credit through UNC-Chapel Hill. Participants may earn three hours of graduate credit for attending. This is the first offering of this seminar. The faculty host for this trip will be Dr. Jerry D. Saye, who was a Fulbright Scholar to the University of Ljubljana in 2003.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search