User Error: Strike user to continue.

I Need Some AppleScripters!

July 16, 2007 - 2:03am

Notae 2.1 is knocking at the door, but I need some people to break it first. If you like integrating apps into your workflow, I’d love it if you poked at a beta Notae 2.1 for me. I think it’s done, but I do need some folks to test it, first.

A sample of what it can do:

tell application "Notae"
	activate
	make new document
	tell the front document
		make new note with properties {name:"Note 1", note text:"Note 1"}
		set noteTwo to make new note with properties {name:"Note 2", note text:"Note 2"}
		make new note with properties {name:"Note 3", note text:"Note 3"}
		make new note with properties {name:"Note 4", note text:"Note 4"}
		
		make new tag with properties {name:"Tag 1"}
		set tagTwo to make new tag with properties {name:"Tag 2"}
		make new tag with properties {name:"Tag 3"}
		make new tag with properties {name:"Tag 4"}
		
		add tag (tag "Tag 1") to note 1
		add tag tagTwo to noteTwo
		add tag (tag "Tag 3") to note 3
		add tag (tag "Tag 4") to note 4
		add tag (every tag) to note 1
		add tag (tag "Tag 3") to every note
		
		export note 2 as native to ("Kalyke:Users:ahknight:Desktop:export" as alias)
		export (every note whose name is "Note 2") as HTML to ("Kalyke:Users:ahknight:Desktop:export" as alias) without replacing
		export (every note whose note text contains "Note 2") as text file to ("Kalyke:Users:ahknight:Desktop:export" as alias) with replacing
		
		set theImportedNotes to import ("Kalyke:Users:ahknight:Desktop:export" as alias)
		set theImportTag to make new tag with properties {name:"Imported"}
		repeat with aNote in theImportedNotes
			add tag theImportTag to aNote
		end repeat
		
		get the properties of every note whose tags contains tag "Tag 1"
	end tell
end tell

Result:

  1. {{paragraph count:1, creation date:date "Monday, July 16, 2007 2:55:57 AM", modification date:date "Monday, July 16, 2007 2:55:57 AM", size:360, editable:true, class:note, comment:"", note text:"Note 1", name:"Note 1", word count:2}}

If you’re interested, please use the contact form and let me know (use the Notae category).

If there’s something you want to be able to do via scripting that I didn’t demo above, please leave a comment and I’ll investigate doing it.

“A change of opinions is almost unknown in an elderly military man.” – A Utopia of Usurers, CW, V, p396 — G. K. Chesterton