Logging in to Drupal from AppleScript

Peter Rukavina

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.)

Comments

Submitted by Boris Mann on

Permalink

Actually, if you want remote access to Drupal for posting, look at the blogAPI. If you built it for Drupal to work with (e.g.) the metaWeblogAPI, it would also work with any other blog tool that supports the metaWeblogAPI.

Googling metaweblog API applescript shows some useful hits: http://www.google.ca/search?q=…

Submitted by Peter Rukavina on

Permalink

The blogAPI is great for posting to blogs, and with patches it can be used to post pages and stories. This script is useful, however, to post images (with some add-ons, of course) and for other things not available via an API.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

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