Re: Using Applescript to find an existing yojimbo note...
If it matters, I got the same error as Alan, but I chose to wrap it with the try/on error/end try block that I was already using. -- Michael Heinz Phoenixville, Pennsylvania On Jan 18, 2008, at 2:40 PM, Alan German wrote: On Jan 18, 2008, at 2:24 PM, Jim DeVona wrote: On Jan 18, 2008 1:00 PM, Alan German [EMAIL PROTECTED] wrote: On Jan 18, 2008, at 12:38 PM, Jim DeVona wrote: -- find existing note set mynote to first note item whose name is mytitle if mynote is missing value then -- create a new note set mynote to (make new note item with properties ¬ {name:mytitle, contents:imported on date}) add tags mytags to mynote end if In my testing here, this causes an error (in Script Debugger) when no such item exists. Just for reference, I tested my version with Yojimbo 1.5 on Mac OS X 10.4.11 using Apple's Script Editor 2.1.1 (AppleScript 1.10.7), and no error occurs when an item named by mytitle does not exist. Perhaps it is a Script Debugger issue? I should have offered similar clues -- sorry. I'm using Yojimbo 1.5 on Mac OS X 10.5.1. I get the same error in Script Editor 2.2 (Applescript 2.0) as I do in Script Debugger 4.0.8. Yojimbo got an error: Can’t get note item 1 whose name = Friday, January 18, 2008. Invalid index. Let's blame Apple, shall we? ;-) Whatever works! That's my motto! Alan -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED] -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Using Applescript to find an existing yojimbo note...
Hey, I'd like to use Yojimbo to keep a daily work diary. To make it easier, I'd like to set up an applescript that will create the title of the diary entry (based on today's date) and either (a) find the entry if it already exists or (b) create a new entry if it does not. I've figured out how to create the new entry, but I can't figure out how to search Yojimbo to see if it already exists. In addition, I'm not sure how to have Yojimbo select the diary entry and bring it to the front. Here's what I have: tell application Yojimbo set mytags to {QLogic, Diary} set mytitle to date string of (current date) try -- find existing note set mynote to ??? on error -- create a new note set mynote to (make new note item with properties ¬ {name:mytitle, contents:imported on date}) add tags mytags to mynote end try activate -- how do I bring the note to the front? end tell Thanks for any help you can give! -- Michael Heinz Phoenixville, Pennsylvania -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Re: Using Yojimbo with Spaces
Awww... Watching the drop dock come sliding into view when I changed spaces was one of the cool things about Leopard! ;-) -- Michael Heinz Phoenixville, Pennsylvania On Dec 5, 2007, at 12:30 PM, Jim Correia wrote: On Nov 1, 2007, at 1:01 PM, Gabriel Schwartz wrote: I just wanted to pass on a hint that may be useful for those that use the Yojimbo drop dock, and would like it to appear in every Space. When using Yojimbo 1.5, the Drop Dock will automatically appear in every space. No special trickery with the Spaces preferences is necessary. Jim -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's workingcorrectly? Please send mail to: [EMAIL PROTECTED] -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Re: Restricting Spotlight to search only Yojimbo items
I'm also addicted to QuickSilver. Between that, Spaces, Spotlight and Yojimbo, I've so tuned my Mac I tend to get really frustrated when I have to work on a stock model. -- Michael Heinz Phoenixville, Pennsylvania On Dec 5, 2007, at 8:51 PM, Patrick Gilmour wrote: Looks interesting. I'm still going to need Quicksilver though because of its interarchy etc. plug-ins! On Dec 5, 2007, at 8:00 PM, Robert DeLaurentis wrote: On Dec 5, 2007, at 4:29 PM, Patrick Gilmour wrote: Now all i need to do is find a quick way to get that into the Spotlight search box!! I created a TextExpander snippet that inserts kind:yojimbo item by typing ys Works like a charm. Four keystrokes and a search term. I have dropped QuickSilver for TextExpander and Spotlight in Leopard. For my uses, it works great. b -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's workingcorrectly? Please send mail to: [EMAIL PROTECTED] -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's workingcorrectly? Please send mail to: [EMAIL PROTECTED] -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]