Send SMS to Cingular users via Terminal

This is my first hint, and it is really a trivial idea I had. I thought it would be neat to send a text message from Terminal using curl. So here it goes: curl -d "from=$1&min=$2&am​p;msg=$3" \ http://www.cingularme.com/do/p...send This is all on one line, of course (but with the backslash, copy and paste should work). Name the file curlsms, change the permission to allow execution (chmod a+x curlsms), and place it in a folder of your liking. To run it, navigate to its directory and the usage is: ./curlsms sender 1234567890 Message text Replace sender with your name, 1234567890 with the recipient's phone number, and Message text with the message you'd like to send. I'm sure some of you super-creative users could integrate this into AppleScripts and do some really neat Mail rules and all that business with such a script. Keep in mind there is a char...

published on Monday, the 18. September 2006, macosxhints

10.4: Change iCal attendee attendance status via script

Before Tiger (and iCal 2.0), it was possible to manually set the status of attendees in iCal. This meant you could set an attendee (or an event) to Confirmed, Cancelled, or Undecided, and an icon in the upper right of the event would indicate the current status. iCal 2.0 introduced automatic attendee status: now when you send out event invitations, the recipients reply with specially crafted emails to indicate their status. The problem is that you can't manually modify that status any more. It turns out, though, that the status is AppleScriptable. So I wrote a small script that allows you to set the status for individual attendees to a given event. Copy and paste the text into a new script window. Then just save it into your user's ~/Library/Scripts folder, turn on the Script Menu, an...

published on Tuesday, the 5. September 2006, macosxhints

Automatically import Exchange events from Mail into iCal

My company uses Exchange as our mail and calendaring backend, and we rely heavily on Exchange - Outlook -Entourage's ability to send meeting notifications to invitees. I hate Entourage, so I use Apple's Mail and iCal. The only problem is that meeting invites do not always get parsed properly by Mail. Sometimes they show up as standard .ics files that I can double click to have them imported into iCal. Other times they show up as links to somewhere on the OWA (Outlook Web Access) server that don't resolve. Inspecting the email as raw source shows that the ICS data is actually in the email, it just isn't showing up right. So I wrote an AppleScript that will extract ICS data from an email, save it to a temp file, import it into iCal, then remove the temp file. I set this script as the action for a Mail rule of the form: Content-class -- Contains -- urn:content...

published on Wednesday, the 23. August 2006, macosxhints

Mail Scripts 2.7.11

Mail Scripts is a collection of AppleScript Studio applications for Mail and Address Book offering additional features or simplified workflow. Mail Scripts consists of the following scripts: Add Addresses (Mail): Add addresses found in the selected messages (in the header fields 'From', 'To', 'Cc', and 'Bcc') to the Address Book. This is much more flexible than the 'Add Sender to Address Book' available in Mail and provides a convenient way for creating mailing lists. Archive Messages (Mail): Move messages from the selected mailbox(es) to an archive mailbox or export them to standard mbox or plain text files for backup purposes or import into other applications. You can select to move all messages or only messages sent within or certain period as well filter messages based on their read and flagged status. Change SMTP Server (Mail): Switch between different already defined SMTP servers or define a new one. This is especially useful if you are using your computer in more than one location and have to switch servers for several accounts at once. Create Rule (Mail): Create a new rule based on the first of the selected messages. This saves you the trouble of copy/pasting address or other info between the message and the rule window and provides a much quicker way for setting up a rule with multiple criteria/actions. Remove Duplicates (Mail): Locate all duplicate messages found in the selected mailbox(es) and move them to a separate mailbox for easy removal (duplicate matching is based on the unique message header 'Message-Id'). Schedule Delivery (Mail): Allows you to send individual messages at predefined times (this script uses iCal for scheduling message delivery). Send all Drafts (Mail): Immediately send all messages in the 'Drafts' folders for all accounts. This saves you from having to open each draft in order to send it. Open Mailbox, Open Message (Mail): Two small faceless scripts which will open mailboxes with new messages or the new messages themselves when run as a rule action. Filter Sent Messages (Mail): Another faceless scripts which will apply your rules to the messages in the 'Sent' mailbox. Export Addresses (Address Book): Export addresses from the Address Book into tab-delimited text files. You can select which groups and which fields you want to export. Search Addresses (Address Book): Find all addresses inside the Address Book matching one or more criteria. As opposed to the 'Search' function built into the Address Book, this lets you search in any field as well as for empty and non-empty fields. As an example, you might use this script to search for all phone numbers with a certain area code in order to update your contacts after an area code change. Mail Scripts are fully localized in English, German, Dutch, French, Italian, Greek, Brazilian Portuguese, and Norwegian.

published on Monday, the 21. August 2006, scriptbuilders

EudorAttacheMulti droplet 1.0

Since my internet provider won't allow me to send email messages with lots of (big) attachements, I searched for an AppleScript that would automatically create a new message for each attached file. As I could't find such, I made this one. I based this script losely upon the 'Stuff and Mail' droplet by Thomas Johannes Matthias Kuehner, and I also used the 'Get File Name and Container 1.0' script line by David Lloyd (find it at http://scriptbuilders.net/file...'.) What it does: you drop a bunch of files on it (no folders), and the applet will ask you to type or paste a delivery email address, and then tell Eudora to create several new outgoing email messages with the address you just gave, with one of the dropped files attached to each one, and with the subject set to the attached file name. It will work with Eudora, and should be easily adaptable for other email clients.

published on Friday, the 10. March 2006, scriptbuilders

An AppleScript to trash empty emails

I hate how emails with no subject, no sender, and no content appear in my InBox in Mail. So I wrote an AppleScript to use as a Mail rule to automatically move these void emails to the trash. Open up Script Editor, and paste i...

published on Monday, the 27. February 2006, macosxhints