script

Date calculation

Tags ( | )

My GTD "Update" script calculates next review dates from a column "Recur" in the notebook.

However, sometimes I want to set that date myself. AppleScript provides the "days" and "weeks" constants, which you can use to calcululate future dates, but it does not have "months" and "years", so a script must calculate those dates itself.

Here's a short subroutine that will do this. It is derived from a script in this thread at MacScripter.

Version:

"Unbreakable" file links

Tags ( | )

I wrote this script when I got ticked off one time too many when I clicked a file link that no longer worked - probably after a bout of spring cleaning in my home folder.

Standard links break when you move the linked file - these don't. The secret? Script makes an alias in a safe place, then links to the alias. Idea from Jeff Porten; uses Satimage osax.

How to use:

Version:

Mori entry to iCal Event

Tags ( | )

This script is a very simple one. Highlight an entry in Mori. The entry should have standard columns Title and Due Date activated.

tell application "Mori"
set theDate to due date of current entry
set theName to name of current entry
set theNote to note of current entry
end tell
tell application "iCal"
tell calendar "MyCalendar" -- the user should specify the name of the target calendar here
set theEvent to make new event at end with properties {description:theNote, summary:theName, start date:theDate, allday event:true}
tell theEvent
make new display alarm at end with properties {trigger date:theDate}

Version: 1.0

Tasks from and to Entourage via AppleScript

Tags ( | )

My employer uses Microsoft Exchange for email in a mostly Windows environment. As one of a smallish number of Mac users, I use Entourage for email, rather than a POP or IMAP client, because it supports many of the calendaring features of Exchange. I habitually create Entourage tasks from email messages in Entourage as well as some that I create directly.

When I discovered Mori, and more specifically Jim Harrison's GTD approach using it, I decided that I needed to give it a try. However, I also needed to be able to play nicely with my existing use of Entourage. These two scripts represent my first run at that.

Version:

Mori to Mail

Tags ( | )

I saw a script for sending the contents of Write Room to Mail. I thought it would be useful to have one for Mori, as well. I didn't see if posted on the script and plugin list, so I thought I would add. Sorry if I just missed it.

tell application "Mori"
set noteName to the name of current entry
set noteContent to the note of current entry
end tell

tell application "Mail"
set newMessage to make new outgoing message with properties {visible:true, content:noteName & return & return & noteContent & return & return}
activate
end tell

Version: 1.5.1

CaminoArchive

Tags ( | )

This is a clunky little script that allows you to save a web page from Camino in Mori. Here's what it does:
- opens a link in Safari,
- creates a webarchive of the page (in ~/Documents),
- imports the webarchive in Mori,
- attempts to delete the webarchive.

Version: .2

Post to Blogger API 'Blog (not atom. old school)

Tags ( )

I use this AppleScript to upload entries to my 'blog. I've written and now maintain my own 'blog software, which supports both blogger API and MetaWeblog API, so the MWA version will be shortly forthcoming as well.

New versions will be found here, and you can stop by my 'Blog to see the results of this @ http://brad.globeproductions.com.au.

Have fun, and I hope someone finds this useful.

Cheers

PS - As the title of this post reads, this is NOT for the newer "atom" blogger API, rather it is for the original old school blogger API. I realize this limits the functionality of the script, but I wrote it for me :D

Version: 0.1

Toggle Various Columns Script

Tags ( | )

I've written a short script I use to toggle certain columns on and off. I work in Widescreen mode usually which has limited space for culmns and so this also can if you wish toggle the layout between standard and widesreen.

You must have 'Enable access for assistive devices' checked in the Universal Access pref.pane


--Code below
-- List of columns to toggle - Enter whatever column names you like here
set glist to {"Comment", "Created", "Due Date", "Modified", "Rating", "Flagged", "Checkbox", "Read"}

-- Toggle the view between standard and widescreen?
set toggle to true

Version: 1

Mori: Set Creation and Modification Date

Tags ( | )

These two simple scripts can be used to manually set the creation and modification date of the selected entries (such dates are not editable with Mori). A dialog window will pop up to ask for the new entry date.
I have created these scripts because I needed to set the creation date of some entries after importing a couple of old notebooks created with HBN 3.5.
I am using them with Mori 1.4b3 but they could not work with older versions of Mori because of some changes to the AppleScript dictionary introduced with v1.4.

Version: 1.0

WriteRoom to ecto

Tags ( )

The simplest possible script to take the contents of the frontmost window in WR and create an ecto draft with it.

Version: 0.1
Syndicate content