I use Yojimbo as my notes collector, and I'd like to find a way to enter text into LaunchBar and then send that text into Yojimbo to create a new note. I assume this would be done with an AppleScript, but I have no scripting skills.
I've searched the forum and had no luck finding a way to do this. Anyone know of a way or a script that has already been written?
Create New Yojimbo note
Re: Create New Yojimbo note
Okay...I just figured this out a rudimentary fix. This is the first Apple Script I've ever written, and I crafted it by looking about a few other Scripts used by LaunchBar, Quicksilver and/or Yojimbo. So...I apologize if it is ugly and not well formed. 
It meets my simple need of creating a new note in Yojimbo with the title and content matching whatever text I typed in LaunchBar.

It meets my simple need of creating a new note in Yojimbo with the title and content matching whatever text I typed in LaunchBar.
Code: Select all
on handle_string(idea)
tell application "Yojimbo" to make new note item with properties {name:idea, contents:idea}
end handle_string
Re: Create New Yojimbo note
Actually this is a bit easier. On installation, Yojimbo should have installed itself to your services menu. Once you have some text selected (by whatever means you use), you should be able to do a Import Text (Yojimbo). Note, this should come up as an abbreviation by typing 'Yo'. The note should now appear in Yojimbo.
Re: Create New Yojimbo note
Thanks...just stumbled on this response while trying to sort out how to use services with Scrivener too.
Re: Create New Yojimbo note
I worked a bit on that one. Check it out!
Code: Select all
-- »QuickNote for Yojimbo« by Ptujec
--
-- Source:
-- http://maclawstudents.com/blog/techniques/getting-stuff-into-yojimbo-2/
-- http://forums.obdev.at/viewtopic.php?p=8961#p8961
-- http://groups.google.com/group/yojimbo-talk/browse_thread/thread/b984483dded3d88b?hl=en
--
-- (re)written to create (flaged) Notes with Name, Tags via LaunchBar
on handle_string(theInput)
tell me to activate
set theInputName to truncateString(theInput, 20)
set theName to text returned of (display dialog "Name:" default answer theInputName with title "QuickNote for Yojimbo")
tell application "Yojimbo"
if note item theName exists then
tell application "LaunchBar"
display in large type "Note with this name already existing!"
end tell
tell application "Yojimbo"
reveal note item theName
delay 1
activate
end tell
else
tell application "System Events"
activate
set restoreDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to ","
set theTags to "QuickNote, " & text returned of (display dialog "Tags:" default answer "QuickNote" with title "QuickNote for Yojimbo")
-- display dialog "Set Flag?" buttons {"No", "Yes"} default button 2 with title "QuickNote for Yojimbo"
-- set userInput to the result
-- if (button returned of userInput) is "Yes" then
set theFlagvalue to "true"
-- else
-- set theFlagvalue to "false"
-- end if
end tell
set anitem to make new note item with properties {name:theName, contents:theInput, flagged:theFlagvalue}
set the theTagList to every text item of theTags
add tags theTagList to anitem
-- Important! See http://macscripter.net/viewtopic.php?id=24422
set AppleScript's text item delimiters to restoreDelimiters
end if
end tell
end handle_string
---------------------------------------------------------
-- truncate code was written by @cometbus
on truncateString(inString, len)
if length of inString < len then
return inString
else
return text 1 thru len of inString & "..."
end if
end truncateString
Re: Create New TOGETHER note
After checking Yojimbo I stumbled over Together http://reinventedsoftware.com/together/, which is kind of a „Yojimbo Pro“.
I like it much better, since its closer to Journler and also seems to be even better maintained.
The folks at Reinvented Software have been so kind to send me a version of my script for Together …
http://forums.obdev.at/viewtopic.php?f=24&t=3230
I like it much better, since its closer to Journler and also seems to be even better maintained.
The folks at Reinvented Software have been so kind to send me a version of my script for Together …
http://forums.obdev.at/viewtopic.php?f=24&t=3230
-
- Posts: 5
- Joined: Thu Sep 17, 2009 2:43 am
Re: Create New Yojimbo note
While Together is great it still has issues saving webpages - Yojimbo does this perfectly. Yojimbo is simple and for saving Passwords and Serial numbers and filing text and WebArchives it is amazing. Yojimbo 2 is out now. Simple and to the point is Yojimbo