Re: Changing collection icons (was Re: Enhancements)

2008-04-15 Thread Jim DeVona
On Tue, Apr 15, 2008 at 12:49 PM, Jim Correia <[EMAIL PROTECTED]> wrote:

>  The icons for folder and tag collections can be customized. (In much the
> same way that you can in the Finder.)
>
>  - Select the tag/folder collection
>  - Open the Inspector
>  - Click on the icon
>  - Paste a custom icon

I did not know that. Very cool!

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Cycle through Search criteria

2008-04-09 Thread Jim DeVona
On Wed, Apr 9, 2008 at 12:29 PM, Patrick Gilmour <[EMAIL PROTECTED]> wrote:

>  Would anyone else find this useful?

I would, too.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Yohimbo search

2008-04-07 Thread Jim DeVona
On Mon, Apr 7, 2008 at 8:43 AM, Steven Weiniger <[EMAIL PROTECTED]> wrote:

>  Alsois there a way to tab back or use a keyboard shortcut to go from
> DELETE ITEM FROM COLLECTION to DELETE ITEM TO TRASH?

Yes. See 
http://www.listsearch.com/Yojimbo/Message/index.lasso?4443&-session=listsearch:18185BB009f0414C1FIxk28E63AE
for one way.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Keyboard shortcuts

2008-03-14 Thread Jim DeVona
If you enable "All controls" under System Preferences->Keyboard &
Mouse->Keyboard Shortcuts->Full Keyboard Access, you can use tab to
cycle between buttons in almost all dialogs (not just in Yojimbo). The
selected button is shown by a blue "halo" distinct from the normal
default button highlight, and pressing the space bar invokes the
selected button (return and any other dialog shortcuts keep their
conventional roles).

Jim

On Fri, Mar 14, 2008 at 7:45 AM, Steven Weiniger <[EMAIL PROTECTED]> wrote:
>
>  Hi
>  Is there any keyboard shortcut to tab between buttons when Yojimbo asks
> whether you want to delete a note from a collection or from the library?
>  Thanks
>  Steven W

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Feature clarification - capture URL

2008-03-08 Thread Jim DeVona
On Sat, Mar 8, 2008 at 9:54 PM, Rhet Turnbull <[EMAIL PROTECTED]> wrote:

>  --Also, sometimes the title is blank even when it the document
>  has a title
>
>  tell application "Safari"
> activate
> set theURL to URL of document 1
> set theName to do JavaScript "document.title" in document 1

Neat script. I use the following method to get the page title for my
"Bookmark in Yojimbo" scripts, and it seems to work quite reliably:

set theName to the name of document 1

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Feature clarification - capture URL

2008-03-08 Thread Jim DeVona
On Sat, Mar 8, 2008 at 2:10 PM, Wayne Hardy <[EMAIL PROTECTED]> wrote:

> I need to capture the source URL of a website when I copy it, whether
> highlighting some text on a page or capturing a web archive. (I need to copy
> quite a bit of data from the Internet, then be able to document the source
> months later.)

When you create a web archive with Yojimbo, the URL is saved as the
item comment. Likewise, if you bookmark a page in Yojimbo you can
paste text into its item comment.

Anyway, depending what you mean by copying a web site, a script may
indeed be feasible to help capture the information you need. By copy
do you mean create a text item containing the page content, or simply
copying the selected text to the system clipboard?

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Sync Conflict Messages with ID numbers

2008-02-08 Thread Jim DeVona
I think Yojimbo and/or Apple should provide more descriptive messages
in those cases (I'm not sure whose court that ball is in, though).

In any case, you can open that ID as a URL. Type x-yojimbo-item:// in
your browser, followed by the item ID. It should open the item in
Yojimbo. (It's the same format you get with "Copy Item Link" from
Yojimbo itself, but I don't know if there's a direct way to find items
by ID within Yojimbo.)

Jim

On Feb 8, 2008 5:50 PM, Steve Drach <[EMAIL PROTECTED]> wrote:
> When syncing Yojimbo, I sometimes get conflict messages with some form
> of message ID like 7D19D20F-DAB0-4D87-94EE-37ED6340E4E0 in them.  How
> do I get from the ID number to the actual document so I know what to do?

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: [ANN] Yojimbo 1.5.1

2008-02-06 Thread Jim DeVona
Just for reference, the update worked fine on my 10.5.1 machine.

Jim

On Feb 6, 2008 11:39 AM, Neal Watzman <[EMAIL PROTECTED]> wrote:
> >
> > Yojimbo 1.5 can be updated to 1.5.1 by choosing "Check for Updates" from 
> > the Yojimbo application menu. Older versions may updated by downloading and 
> > installing the 1.5.1 installation package from the Yojimbo software updates 
> > page:
>
> Unfortunately, when I choose "Check for Updates", nothing happens.  No dialog,
> nothing.
>
> Yojimbo 1.5 (62)
> MacBook Pro
> OSX 10.5.1
>
> Neal

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Using Applescript to find an existing yojimbo note...

2008-01-18 Thread Jim DeVona
On Jan 18, 2008 2:40 PM, Alan German <[EMAIL PROTECTED]> 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? ;-)

It so happens I just installed Leopard this evening, and indeed I get
the same error now too. Probably just a consequence of the changes to
AppleScript; I didn't realize so much syntax was influenced. (I
foresee a long weekend of... adapting to these improvements.) Anyway,
thanks for your corrections.

Jim

--
--
This message is sent to you because you are subscribed to
  the mailing list .
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 Applescript to find an existing yojimbo note...

2008-01-18 Thread Jim DeVona
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?

Whatever works!
Jim

--
--
This message is sent to you because you are subscribed to
  the mailing list .
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 Applescript to find an existing yojimbo note...

2008-01-18 Thread Jim DeVona
How's this?

tell application "Yojimbo"
set mytags to {"QLogic", "Diary"}
set mytitle to date string of (current date)

-- 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

activate
open location "x-yojimbo-item://" & (get id of mynote)
end tell

I don't know of a scriptable way to reveal items in the main window (I
wish there was - it'd be useful) so the "open location" hack shows the
item in a separate window.

Hope this helps,
Jim

On Jan 18, 2008 11:04 AM, Michael Heinz <[EMAIL PROTECTED]> wrote:
> 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 .
> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
> List archives:  
> 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 .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Yojimbo Password Modification Date

2007-12-20 Thread Jim DeVona
On Dec 20, 2007 12:21 AM, Ivan Pan <[EMAIL PROTECTED]> wrote:

> I noticed the modification date of the Password record did not change
> when I updated the Comments field or the Name field. Is this an
> intended behavior? If so, how can I 'touch' the record, i.e. change
> the modification date?

I see the same behavior here. Anyway, you could briefly change the
username or password to mark it as modified.

My Backdate Items script only provides buttons to change the creation
date or the creation & modification dates together, but it would be
straightforward to make it change only the modification date. At the
time I didn't realize that all modifications don't necessarily change
the modification date, as you've discovered.

http://anoved.net/2007/05/backdate-yojimbo-items.html

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: no. of files associated with each tag

2007-12-11 Thread Jim DeVona

On Dec 11, 2007, at 6:54 AM, Michael Young wrote:

Feature proposal: Could Yojimbo list the number of files associated  
with each tag in Yojimbo > Preferences > Tags? That way I coul see  
if I have "dead" tags (with no files associated).


Or is there already a way to ascertain that?


Here is an AppleScript that will report how many items are tagged  
with each tag.


tell application "Yojimbo"
set tagList to {}
repeat with theTag in tags
		set tagCount to count of (every database item whose tags contains  
theTag)

set tagName to name of theTag
set end of tagList to tagName & ": " & tagCount
end repeat
choose from list tagList
end tell

Paste it into a new Script Editor document and click Run. After a  
moment, a list of tags and their number of uses will appear.


Unfortunately it doesn't seem very efficient. Does anyone have  
suggestions for making the script faster or more useful?


I agree it would be useful if this information was displayed in the  
tags preferences. Any other tricks for summarizing tag usage? I  
suppose you could just make a tag collection for each tag and look at  
the counts right in the Collections pane.


Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: [ANN] Yojimbo 1.5

2007-12-05 Thread Jim DeVona

On Dec 5, 2007, at 10:36 AM, Rich Siegel wrote:

We are pleased and proud to announce the release and immediate  
availability of Yojimbo 1.5. This new version adds support for  
images as a first-class item type, improves built-in searching  
performance and Spotlight accuracy, and includes bug fixes and  
minor refinements based in no small measure on your feedback. :-)


Great update. I've been looking forward to it for a long time. Thanks!

I tested most of the little scripts I've written for Yojimbo to  
confirm that they work with Yojimbo 1.5:

http://anoved.net/2007/12/yojimbo-15-script-compatibility.html

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: mail act-on for yojimbo?

2007-11-28 Thread Jim DeVona

On Nov 28, 2007, at 11:48 AM, John Stephens wrote:


I want a hotkey to remove an item from the *current*
collection, without removing it from any others. O know this is
possible with 'delete', but then I have to mouse over to the button.


Don't forget that if you select "All controls" in the "Full keyboard  
access" section of the "Keyboard Shortcuts" pane of the "Keyboard &  
Mouse" system preference panel, you can zip through buttons (in any  
window of any application, not just Yojimbo) with the tab key and  
press them with space. With that enabled you remove an item from the  
current collection with the keystrokes Delete, Tab, Space.


Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: mail act-on for yojimbo?

2007-11-27 Thread Jim DeVona

On Nov 27, 2007, at 7:12 PM, John Stephens wrote:


The one thing I'd like
is an easy way to customize hotkeys to quickly
move items to different collections. I'm really
happy with the hotkeys I use in Gmail, and I use
Mail Act-on to implement the same hotkeys in
Mail.app. Is there any tool like this for
Yojimbo?

If the answer involves Applescript, I would need
a balbative step-by- step guide. If there is a
Quicksilver solution, I would be delighted.


Well, here is a script that moves the selected items to a collection  
called "Foo". You could save a copy of this script for each  
collection you want to be able to move items to (change the name of  
the target collection in each copy, of course). Then it's up to you  
how to assign keyboard shortcuts to each script. I'm sure you could  
do it with Quicksilver; I've tested it with FastScripts.


tell application "Yojimbo"
set _collection to folder collection "Foo"
set _items to selected items of browser window 1
if _items is missing value then return
repeat with _item in _items
remove _item from every folder collection
add _item to _collection
end repeat
end tell

As written above, the items are removed from any other folders before  
putting them in the target folder. If you just want to add them to  
target without removing them from other collections, you can delete  
the "remove" line.


Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Import with Spotlight comments as tags

2007-10-28 Thread Jim DeVona
On 10/27/07, Mark F <[EMAIL PROTECTED]> wrote:
>
> Thanks Jim! I will give it a go.
>
> Ideally, I would like it to display the tag dialog box (i.e. with the list of 
> my Yojimbo tags), with the Spotlight comments to also appear in the same 
> dialog box but as highlighted/selected. That way I could easily select which 
> tags I want the item to have, whether they be pre-existing Yojimbo tags or 
> Spotlight comments (of course there is also a chance that I have the same tag 
> in my Yojimbo list of tags as well as in the Spotlight comments of the item 
> I'm importing – so if that happens I would need the dialog box to display 
> just the Spotlight tag so as to not have the same tag listed twice in the 
> dialog box tag list.)
>
> Any ideas on whether that would be possible?

Sure, basically you want to concatenate the list of tags that came
from the Finder comments to the list of tags from Yojimbo.

So, try inserting this version of the tags-from-comments code in your
import script just after the "set allTags to name of every tag" line:

tell application "Finder" to set theComments to comment of theFile
set originalDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set allTags to allTags & every text item of theComments
set AppleScript's text item delimiters to originalDelimiters

Note that all the "text item delimiter" stuff just makes it easier to
use a different delimiter like "," instead of " ". If you'll
definitely be using spaces, you can simplify things a bit:

tell application "Finder" to set theComments to comment of theFile
set allTags to allTags & words of theComments

or probably even:

tell application "Finder" to set allTags to allTags & words of the
comment of theFile

This example doesn't remove duplicates. I don't know if it's the most
concise method, but here's one way:
http://www.rosettacode.org/wiki/Create_a_Sequence_of_unique_elements#AppleScript

Jim

--
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Import with Spotlight comments as tags

2007-10-27 Thread Jim DeVona
Should be possible. If you replace the contents of the first "if not
chooseTagsFromList then" block of your import script with the
following code, the script should read tags from the file's comments
instead of from a dialog:

tell application "Finder" to set theComments to comment of theFile
set restoreDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set the chosenTagList to every text item of theComments

Of course if you want to be able to select tags from a list, from a
dialog, or from the file comments, you'd probably need to fiddle with
the script a little more.

Hope that's useful!

Jim

On 10/27/07, Mark F <[EMAIL PROTECTED]> wrote:
>
> Opps. Looks like those links didn't come up in my first post.
>
> The script which allows you to export while retaining tabs is here - 
> http://www.listsearch.com/Yojimbo/Message/index.lasso?3875
>
> The script I currently use to import stuff into Yojimbo with Quicksilver is 
> here – 
> http://maclawstudents.com/blog/techniques/getting-stuff-into-yojimbo-with/
>
> Cheers,
> inlimbo

--
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Tags seem to be a very superficial add-on [currently?]

2007-09-30 Thread Jim DeVona
On 9/30/07, Florian Leitner <[EMAIL PROTECTED]> wrote:

> 3. Mass tagging. Very important feature, as it is annoying to single-
> handedly assigning the same tag to several or many  items in the
> collection; Admitted, you can solve this with a script (and should do
> that for now, obviously...), but it actually should be a "natural"
> function of Y with a real tag feature.

Select multiple items. Enter tags in the "Tags" field of the "Info"
panel of the Inspector window.

It is interesting to learn that Yojimbo's tagging system is not real.
I have found it quite useful, for a fiction.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Accessing Most Recently Added Item Via Applescript

2007-09-25 Thread Jim DeVona
On 9/25/07, Kenneth Kirksey <[EMAIL PROTECTED]> wrote:

> Subject kind of says it all. What's the easiest way to access via
> Applescript the item most recently added to Yojimbo? Thanks!

Steve Kalkwarf shared an example that does this by getting the last
item of the Recent Items collection:

http://www.listsearch.com/Yojimbo/Thread/index.lasso?786#3857

These are the key lines:

set ri to builtin smart collection named "Recent Items"
set recentItem to last item of ri

Hope this helps.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: selected items whose class is bookmark item

2007-09-20 Thread Jim DeVona
On 9/20/07, Jim Correia <[EMAIL PROTECTED]> wrote:
> On Sep 20, 2007, at 2:47 PM, Jim DeVona wrote:
>
> > Is it possible to use a "whose" clause to get only items of a certain
> > type from a list of Yojimbo database items?
...
> If you are iterating the list to do work, you could filter the list
> as you go and only perform work on the items with the appropriate
> class.

That was my initial strategy, actually. I was curious if there was
another way to do it, but iterating through the selection isn't a big
problem.

> Or you could write a handler to fetch and filter the selected
> items by class for you. Here's an example:

Hmm. That does look useful. Thanks!

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
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: selected items whose class is bookmark item

2007-09-20 Thread Jim DeVona
On 9/20/07, J. Stewart <[EMAIL PROTECTED]> wrote:
> On 9/20/07 at 2:47 PM, Jim DeVona <[EMAIL PROTECTED]> spake thusly:
>
> >Is it possible to use a "whose" clause to get only items of a certain
> >type from a list of Yojimbo database items? Here is an example
> >intended to get any selected bookmark items:
...
> This works for me.
>
> --> Cut <--
> tell application "Yojimbo"
> set foo to every database item whose class is bookmark item
> end tell
> --> Cut <--

Right, same here. However, I'm not after every bookmark item in
Yojimbo - just the bookmark items in a particular subset of the
library, such as the list of selected items.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
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]>


selected items whose class is bookmark item

2007-09-20 Thread Jim DeVona
Is it possible to use a "whose" clause to get only items of a certain
type from a list of Yojimbo database items? Here is an example
intended to get any selected bookmark items:

tell application "Yojimbo"

set _items to selected items of browser window 1
if _items is missing value then return

set _bookmarks to every item of _items whose class is bookmark item

end tell

The bookmarks line gives this error: 'Can't get {bookmark item id
"D0303DFD-C8B1-4F17-BD0E-EAD40018D3A1" of application "Yojimbo"} whose
class = bookmark item.' I suspect I am either grossly off track or
nearly there. Any guidance?

Thanks,
Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Identifying current item when list pane does not have focus (Applescript)

2007-08-31 Thread Jim DeVona
On 8/30/07, Jim Correia <[EMAIL PROTECTED]> wrote:

> tell application "Yojimbo"
> selection
> if class of window 1 is browser window then
> selected collections of browser window 1
> selected items of browser window 1
> end if
> end tell

One question. Am I correct that checking the class of window 1 is
really only necessary if I ask for the selected collections or items
of "window 1", rather than "browser window 1"? I find that as long as
I specify "selected items of browser window 1", I get the selected
items even if a non-browser window is window 1 or if the browser
window isn't even open. Referring to the "selected items of window 1",
on the other hand, only works if window 1 is a browser window.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Identifying current item when list pane does not have focus (Applescript)

2007-08-30 Thread Jim DeVona
On 8/30/07, Jim Correia <[EMAIL PROTECTED]> wrote:

> The scripting class of the main window is "browser window" and it has
> two additional properties which allow you to access the selected
> collection and selected items independent of the currently focused
> view. Run the following with the event log open:
>
> tell application "Yojimbo"
> selection
> if class of window 1 is browser window then
> selected collections of browser window 1
> selected items of browser window 1
> end if
> end tell

Great! Thank you, Jim. Not sure how I missed those, but I'm happy to
have them pointed out. I expect I'll be able to improve my scripts
quite a bit with these properties.

Thanks again,
Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Identifying current item when list pane does not have focus (Applescript)

2007-08-30 Thread Jim DeVona
When writing Applescripts for Yojimbo, the "selection" property
reports the currently selected database item[s]. However, if you
select a note item (for example) and click in the note text to edit
it, the selection is "missing value." The note clearly remains the
current item, and therefore seems as reasonable a target for scripting
as when the item list rather than the note text had focus. Is there an
Applescripty way to determine the id of the current item in these
circumstances?

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: export with spotlight comments

2007-08-30 Thread Jim DeVona
I've posted a final version of "Export with Comment Tags" at:

http://anoved.net/2007/08/yojimbo-export-with-comment-tags.html

Jim

On 8/30/07, Jim DeVona <[EMAIL PROTECTED]> wrote:
> On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to export a yojimbo note and keep the tag information
> > as a spotlight comment?  Has there been any discussion about this?
> > This would be a killer feature for me.
>
> Hi Steve,
>
> Here's a quick AppleScript that might work as an interim solution:
>
> http://anoved.net/files/spotlighttags.scpt.zip
>
> Usage:
>
> 1. Select one or more items in Yojimbo's list pane
> 2. Invoke this script
> 3. Specify a filename or folder (if one or more items are selected,
> respectively)
> 4. Click Save/Choose
>
> The items are exported to that location and their tags are inserted in
> the comments field separated by spaces. Change the delimiters property
> if you want a different separator.
>
> I haven't tested it much, but I thought I'd share it in case it's any
> use. I'll clean it up later.
>
>
> Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
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: export with spotlight comments

2007-08-30 Thread Jim DeVona
On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Is there a way to export a yojimbo note and keep the tag information
> as a spotlight comment?  Has there been any discussion about this?
> This would be a killer feature for me.

Hi Steve,

Here's a quick AppleScript that might work as an interim solution:

http://anoved.net/files/spotlighttags.scpt.zip

Usage:

1. Select one or more items in Yojimbo's list pane
2. Invoke this script
3. Specify a filename or folder (if one or more items are selected,
respectively)
4. Click Save/Choose

The items are exported to that location and their tags are inserted in
the comments field separated by spaces. Change the delimiters property
if you want a different separator.

I haven't tested it much, but I thought I'd share it in case it's any
use. I'll clean it up later.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Archive Existing Bookmarks Script

2007-07-15 Thread Jim DeVona

I wrote a little script to help retrieve web archives for pages I've
already bookmarked in Yojimbo. Just select the bookmark items to
archive and invoke the script. The web archives inherit the name and
tags of the original bookmarks.

http://anoved.net/2007/07/archive-yojimbo-bookmarks.html

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: 5-Star rating via AppleScript

2007-07-14 Thread Jim DeVona

On 7/14/07, jON bEEBE <[EMAIL PROTECTED]> wrote:


I just wanted to share some AppleScripts that I wrote to enable
rating of library items akin to iTunes' 5-star rating system.  You
can read about them here: http://www.beebeography.com/rw/index.php?
id=7659855238015915961.  The download link is at the bottom of the
article.


That's a nice system. I like how you can simply use tag collections to
browse by rating, so to speak. Good stuff!

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Apple Script questions

2007-07-05 Thread Jim DeVona

On 7/5/07, Andrew Janjigian <[EMAIL PROTECTED]> wrote:


1. Can anyone tell me how to get the "frontmost application" script
folder to appear in the applescript menu? I tried running Apple's
setup applet, but since I already have ScriptMenu setup, it won't run.


I'm not sure if this is what you mean, but if you create a "Yojimbo"
folder within an "Applications" folder within your ~/Library/Scripts
folder, its contents will only appear in the script menu when Yojimbo
is frontmost. (This works with the system script menu as well as
FastScripts, and possibly other utilities.)


3. Has anyone compiled a list of all the YJ scripts available? I know
I can search the list, but that is not the most efficient way of
locating the most up-to-date version of each script, and surely there
are some that were never discussed on it. Searching HawkWings is my
current best alternative to a list.


A few weeks ago someone said they were writing an article about all
the scripts and other goodies available for Yojimbo, but I don't what
came of it.

http://www.listsearch.com/Yojimbo/Thread/index.lasso?704

Be well,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Tag list helper

2007-06-30 Thread Jim DeVona

On 6/30/07, Scotty Stevenson <[EMAIL PROTECTED]> wrote:


Is it possible to add in
the Yojimbo menu bar under "view' or such a drop window of all current tags.
Better yet a drop list of all tags in the Quick Input Window, new note, and
"Safari Book & Archive tag windows. We would then have the option to start
typing a remembered tag or choose from drop list a better one we have
forgotten. Even a call up floating translucent Tag list window for reference
would be a big help.


Hi Scotty,

I don't know if you're comfortable using AppleScripts or whether this
is exactly what you're looking for, but I wrote a script once that
just shows a list of your tags. If you select some of them and click
ok, it copies them to the clipboard separated by commas. You can paste
that into a Yojimbo tag field it will recognize each term as a tag.

http://anoved.net/2007/02/yojimbo-tag-list.html

The default list dialog may look kind of doofy if you've got a lot of
tags, but at least maybe it'll give you some ideas.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Tag collections with optional tags

2007-06-14 Thread Jim DeVona

If it was possible to use boolean terms in the tag collection
definitions, that would be pretty handy. Then you could say to collect
items tagged with "'oracle' or 'postgres' or 'mysql' or 'dba'", etc.

What I do for similar situations is use generic secondary tags, such
as 'db' for database in your case, that I apply to items in addition
to the more specific tag, and then set up a tag collection for 'db'.

Jim

On 6/14/07, Arvid Warnecke <[EMAIL PROTECTED]> wrote:

Hello,

I have been wondering if there is a way to create a tag collection
with tags that are possible but not necessary. I've been thinking of a
'database' collection for tags like 'oracle', 'postgres', 'mysql',
'dba' and others. So it would be possible to combine notes which don't
have to have all tags from the collection but at least one.

Cheers,

Arvid

--
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
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 .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Applescript to apply labels

2007-06-14 Thread Jim DeVona

So for example, to create a new note with the label "To do" (one of
the default label names), you might try this:

tell application "Yojimbo" to make new note item with properties
{name:"Title", contents:"Data", label name:"To do"}

That should all be on one line; GMail might wrap it.

Jim

On 6/14/07, Niels Kobschätzki <[EMAIL PROTECTED]> wrote:

On 6/14/07, Arvid Warnecke <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to Yojimbo and still trying to figure out if I'd like to use
> it. I found some interesting mail-to-yojimbo scripts on the list, that
> might help a lot. But I missed the possibility to add a label to that
> new note.
> All I tried I did not make it work myself. Is it possible to add a
> label with applescript to the note. Is it possible? Is there a
> reference available somewhere how to talk to yojimbo via applescript?

Just open the AppleScript-Dictionary in ScriptEditor (cmd+shift+o).
The dictionary states the following:
label n [inh. item] : A label.
elements
contained by application.
properties
name (text) : The label's name.
id (text, r/o) : The unique identifier of the label.
color (color) : The label's color.

Cheers,
Niels

--
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
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 .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Opening a note item after creating by AppleScript

2007-06-04 Thread Jim DeVona

On 6/4/07, Allen Watson <[EMAIL PROTECTED]> wrote:


I want to open the note I just created. "open newNote" does not work,
assumes a file. There is no "select" command. "make new window with contents
newNote" does not work either; in fact, "make new window" fails with the
same error, even when the note isn't referenced.


What I do is open the note as a URL with its ID, like this:

open location "x-yojimbo-item://" & get id of newNote

This opens the item in a separate window. Incidentally, I would really
like a "select" or "show" AppleScript command that reveals the given
item[s] in Yojimbo's main window.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: get other kinds of documents in Yojimbo

2007-05-31 Thread Jim DeVona

Hi Bernard,

You can drag files into note items, where they will be represented as
icons. You can retrieve these embedded files later by dragging the
icons from the note back to the Finder. (This is similar to what can
be done with rich text files in TextEdit.)

This is a rather indirect solution, of course, but at least it is sort
of possible.

Jim

On 5/31/07, Bernard Dorenbeck
<[EMAIL PROTECTED]> wrote:

Hi,

I'm looking for a way to put for example word, excel, powerpoint or other files 
into
Yojimbo, I know I can print this documents to Yojimbo, is it possible to embedd 
the
original documents into Yojimbo to extract them later if needed to change and 
reuse such
a document. I like the idea to make Yojimbo the major repository for my 
documents. But
for some documents I need a possibility to change and reuse them later.

Thanks in advance,
Bernard



--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Folders/Tag-collections

2007-05-25 Thread Jim DeVona

On 5/25/07, Kenneth Kirksey <[EMAIL PROTECTED]> wrote:


Man: This hammer you sold me isn't fully featured! It doesn't do what
I want a hammer to do!

Clerk: (looking perplexed) What doesn't it do?

Man: It won't drive this (holds up philips head screw) into wood!
Where do you get off selling me a hammer that doesn't do everything I
want it to do!


I have to admit, I find the allusion apt!

I currently have 9 tag collections and 809 items in my library. I use
Yojimbo to manage all sorts of loosely related odds and ends, but I
use folders (in the Finder) to organize more structured projects.
(Like a Rolodex and a filing cabinet, to belabor the traditional
desktop metaphor.) I certainly recognize that people work in different
ways, though.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: hyperlink in password item's "Location" field

2007-05-23 Thread Jim DeVona

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Is there a way to format a URL in the "Location" field of a
password item so that clicking on it opens the default browser
to that location?
(and perhaps bring the password in the clipboard!)


I've thought it would be nice if there was a little "Open" button next
to that location field, too. Anyway, someone recently alluded to the
fact that if you right click on that field the first item selected in
the popup menu is "Open URL".


Also, is there a way to format the same field so that clicking
it opens an ftp session to that location?
Also, is there a way to format the same field so that clicking
it opens an ssh connection to that location. In other words,


As with the bookmark locations, just specify the full URL with ftp://
or ssh:// or whatever. When you open the URL the associated program
will open it: in my case, ftp links open in Cyberduck, and ssh links
open in Terminal.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: AppleScript: How to access note contents?

2007-05-23 Thread Jim DeVona

On 5/23/07, Jim Correia <[EMAIL PROTECTED]> wrote:


...

To solution in this situation (when you've got a specifier stored in
a variable) is to use the double contents of syntax:

 set s to contents of contents of variableName

Jim


On 5/23/07, Adrian <[EMAIL PROTECTED]> wrote:


Yes, this one caused no no end of pain. What you want is

  set _text to contents of contents of _item

Killer, huh? I think contents must be some sort of reserved word.


Thank you both for the solution, Adrian and Jim. The AppleScript
information is useful, too.

Thanks again,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


AppleScript: How to access note contents?

2007-05-22 Thread Jim DeVona

Can someone help me figure out how to access note text with
AppleScript? Here is a contrived example of what I'm trying to do:

tell application "Yojimbo"
set _item to make new note item with properties {name:"Foo", 
contents:"Bar"}
set _text to contents of _item
end tell

I'd like to assign the "Bar" contents to the _text variable, but it
just gets another reference to the note item. I don't actually need to
put it all in a variable; I'm just trying to access the text so that I
can do 'set first word to "hello"' type manipulations.

Thanks,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Beginners questions

2007-05-22 Thread Jim DeVona

On 5/22/07, Sebastian Stark <[EMAIL PROTECTED]> wrote:


> Or by templates do you simply mean like default item text that appears
> in the fields whenever you create a new item?

I meant a new type of document (like the existing "Password" or
"Note") that has its own set of fields,
something one can create a smart collection for.


I see. No, I don't think you can do that with Yojimbo. You're limited
to the types of items it already offers.


Or that has a
standard set of tags already attached to it.

But this would probably add unnecessary overhead and complexity.
However, being able to add a note pre-filled with some text could be
enough. Is that possible?


It certainly would be possible to write an AppleScript that creates a
new note (or other item) initialized with a certain set of tags and
default content. You could use a tag collection to display just these
items. In this regard tags make it pretty easy to organize different
types of information using the basic underlying item types.

If you can give an example of the type of document or item information
you'd like to manage, we may be able to come up with some ideas.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Beginners questions

2007-05-22 Thread Jim DeVona

On 5/22/07, Sebastian Stark <[EMAIL PROTECTED]> wrote:


On 21.05.2007, at 17:10, Jim DeVona wrote:

> On 5/21/07, Sebastian Stark <[EMAIL PROTECTED]> wrote:
>
>> 1. In the serial number and password templates the comment field is
>> way to small. How can I make it bigger? For instance, if I get an
>> email with a serial number in it, I  want to store the whole email
>> along with the serial number. Then, for some products I have license
>> keys + several machines IDs that just need more space in the comments
>> field.
>
> I believe the bookmark, serial number, and password item comment
> fields do scroll, but I hear what you're saying about the visible size
> of the field. Happily, these properties are pretty easy to tinker with
> in Interface Builder. Here are versions whose comment fields expand to
> fill the remainder of the item pane:
>
> http://anoved.net/2007/05/expanded-yojimbo-comment-fields.html

Thanks, so far this seems to work very well. What is Interface
Builder? Can I use it to create my own templates?


Interface Builder is an Apple developer tool for setting up
interfaces. It is one of the programs installed if you install the
"Developer Tools" from your system CD.

I am not sure what you mean by templates. You can use Interface
Builder to rearrange existing interface elements, so in that sense,
yes, you can customize the standard views. (The Yojimbo "widescreen
hack" is another example of this:
http://www.hicksdesign.co.uk/journal/yojimbo-widescreen-view-hack)

However, for the most part, Interface Builder only edits the program
interface, not its functionality, so you can't, for instance, add
support for a new type of item just by designing a window for it. (If
you were writing a new program from scratch, of course, you would
certainly create new interface elements.) I would refrain from making
anything other than cosmetic changes to the interface of an existing
program; even that is "hack" territory that Bare Bones (or any other
vendor) can't be expected to support.

Or by templates do you simply mean like default item text that appears
in the fields whenever you create a new item?

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: Beginners questions

2007-05-21 Thread Jim DeVona

On 5/21/07, Sebastian Stark <[EMAIL PROTECTED]> wrote:


1. In the serial number and password templates the comment field is
way to small. How can I make it bigger? For instance, if I get an
email with a serial number in it, I  want to store the whole email
along with the serial number. Then, for some products I have license
keys + several machines IDs that just need more space in the comments
field.


I believe the bookmark, serial number, and password item comment
fields do scroll, but I hear what you're saying about the visible size
of the field. Happily, these properties are pretty easy to tinker with
in Interface Builder. Here are versions whose comment fields expand to
fill the remainder of the item pane:

http://anoved.net/2007/05/expanded-yojimbo-comment-fields.html

Be well,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Importing Excel file into YJ

2007-05-20 Thread Jim DeVona

On 5/20/07, Phil Emery <[EMAIL PROTECTED]> wrote:


Thanks for the info

not too sure what to do with the script.

I suppose copy and paste into the script editor?

then?


Right, copy and paste it into the script editor. Alternatively you can
download a copy from
http://anoved.net/files/YojimboPasswordSerialImport.scpt.zip (the
version in the mailing list archives may contain extraneous line
breaks).

If you only plan to use it once or twice, you can just click the "Run"
button in the script editor window. The script will ask whether you
are importing a list of serial numbers or passwords and will then
prompt you to select a tab-delimited text file containing the list.

In the case of serial numbers, the script expects each line to contain
the product name, the owner's name, the serial number, and comments,
in that order and separated by tabs. For passwords, the expected
fields are title, location URL, account username, and password. These
fields are based on the fields from the original user's spreadsheet,
so if you wish to use the script without modification you'll need to
arrange your spreadsheet to match.

[General background on using scripts, for everyone's reference:]

If you do end up using this or any other AppleScript frequently, you
may want to use the script menu. Save the script file in the "Scripts"
folder in your home folder's "Library" folder. Then open the
"AppleScript Utility" in /Applications/AppleScript and check the "Show
Script Menu in menu bar" option. A new menu with a scroll icon will
appear in your menu bar. Select a script from this menu to run it.

If you only want a script to appear in the script menu when a certain
application is active, create an "Applications" subfolder in yours
"Scripts" folder and a folder with the name of the desired application
inside that. Any scripts placed in the specific application subfolder
will only be visible when that application is frontmost.

Many third-party utilities provide other ways to invoke scripts. I
like FastScripts because it is simple and it uses the same directory
structure as the default script menu. I believe other utility programs
like Quicksilver, LaunchBar, and Butler provide similar capabilities.


let's hope BB puts this capability into Yojimbo. It would make people
more willing to switch to Yojimbo if they can easily move their
existing collection into YJ easily.


True. I suppose the challenge is selecting a suitable "common
denominator" format to move things from other applications to Yojimbo,
as Bare Bones cannot be expected to cater directly to every
individual's particular approach to information management.

I think this works out well in many cases, such as notes, since most
note-taking software offers export to text files. HTML files import as
web archives and .webloc files import as bookmarks. But is there a
popular standard file format for password or serial number
information? If there is, I would agree that it ought to be supported,
but otherwise I think that AppleScript provides an appropriate means
to tack on support for the particular needs that vary from user to
user.

Anyway, be well and let me know if the script is any use.

Jim


>On 5/19/07, Phil Emery <[EMAIL PROTECTED]> wrote:
>
>>Hi there
>>
>>I have an excel database with serial numbers and such that I need to
>>import into Yojimbo.
>>
>>I went through the help and the support section ( I guess there's no
>>manual for Yojimbo?) but there was no info on what kind of formats YJ
>>can import.
>>
>>I tried XML but it didn't work
>>
>>thanks!
>
>My impression is that you can import files that correspond to Yojimbo
>item types (ie, text files and PDFs). However, it is possible to
>import other types of files, such as lists of serial numbers, with a
>little help from AppleScript. I am familiar with at least one case
>where this has been done to import sets of items exported from Excel
>in tab-delimited text format:
>
>http://www.listsearch.com/Yojimbo/Thread/index.lasso?582
>
>I suspect you can find others solutions in the archives, too.
>
>Let me know if that looks useful or if you need help running or
>adapting the script.
>
>Jim


--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Importing Excel file into YJ

2007-05-19 Thread Jim DeVona

On 5/19/07, Phil Emery <[EMAIL PROTECTED]> wrote:


Hi there

I have an excel database with serial numbers and such that I need to
import into Yojimbo.

I went through the help and the support section ( I guess there's no
manual for Yojimbo?) but there was no info on what kind of formats YJ
can import.

I tried XML but it didn't work

thanks!


My impression is that you can import files that correspond to Yojimbo
item types (ie, text files and PDFs). However, it is possible to
import other types of files, such as lists of serial numbers, with a
little help from AppleScript. I am familiar with at least one case
where this has been done to import sets of items exported from Excel
in tab-delimited text format:

http://www.listsearch.com/Yojimbo/Thread/index.lasso?582

I suspect you can find others solutions in the archives, too.

Let me know if that looks useful or if you need help running or
adapting the script.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Adding list of items to a collection with AppleScript

2007-05-19 Thread Jim DeVona

On 5/19/07, Jim Correia <[EMAIL PROTECTED]> wrote:


On May 16, 2007, at 4:59 PM, Jim DeVona wrote:

> How can I add a list of items to a collection with AppleScript? I can
> add one item at a time, but for large sets of items this is a pokey
> (although watching the item count next to the collection icon climb is
> kind of interesting). The scripting dictionary implies that you can
> add more than one object at once, but I can't seem to figure out the
> syntax.

[...]

> Any corrections or suggestions?

The add verb currently only accepts a single specifier as the direct
parameter. You can add multiple items to a collection at once, but
only by way of a single specifier that evaluates to multiple items.

add (every bookmark item whose name contains "foo") to folder
collection "Foo"


Ah, I see. Too bad you couldn't still do something like:

add (every bookmark item whose id is in _bookmark_ids) to folder
collection "Foo"

where _bookmark_ids is a list of the newly created items' ids. (I am
exceeding my grasp of AppleScript here, I think.)


I have logged a feature request to make this verb more flexible in
the future (i.e. accept a list of specifiers). In the meantime,
you'll have to add them one at a time.

Jim


OK, no problem. Thanks for the explanation, Jim.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
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]>


Adding list of items to a collection with AppleScript

2007-05-16 Thread Jim DeVona

How can I add a list of items to a collection with AppleScript? I can
add one item at a time, but for large sets of items this is a pokey
(although watching the item count next to the collection icon climb is
kind of interesting). The scripting dictionary implies that you can
add more than one object at once, but I can't seem to figure out the
syntax.

Here's an example. An arbitrary number of new items are created and
appended to a list; then, a new collection is created and I attempt to
add the list of items to the collection. I'm warned that the bookmarks
list can't be "converted into type reference."

tell application "Yojimbo"

set _bookmarks to {}
set end of _bookmarks to make new bookmark item with properties 
{name:"Foo"}
set end of _bookmarks to make new bookmark item with properties 
{name:"Bar"}

set _collection to make new folder collection with properties 
{name:"Test"}
add _bookmarks to _collection

end tell

Any corrections or suggestions?

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Your favorite scripts, plugins and extensions

2007-05-14 Thread Jim DeVona

Well, I am of course biased, but I use my "Bookmark in Yojimbo" script
nearly every day. As it turns out, I do like having the original
timestamps on some of my older compositions, too, so that's a small
point in favor of the backdating scripts.

http://anoved.net/bookmark_in_yojimbo.html
http://anoved.net/2007/05/backdate-yojimbo-items.html

There has been a lot of AppleScript shared on this list, so I bet
there are some good ones (such as the one to open PDFs in a different
viewer).

Jim

On 5/14/07, Colin Sproule <[EMAIL PROTECTED]> wrote:

Hi,

I am new to the mailing list but have been using Yojimbo for a while
now, it really changed the way I organize things!

I am writing an article covering some of the more useful
scripts/plugins/extensions for yojimbo and wanted some feedback from
everybody. I have collected some of my favorites already but was
wondering what everyone else likes and uses.

Thanks everyone, I really appreciate your help on this!

-Colin



--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: previewing PDFs in other applications

2007-05-14 Thread Jim DeVona

I know there is an AppleScript that can be adapted for this purpose:

http://www.listsearch.com/Yojimbo/Thread/index.lasso?481#2780 (last post)

Just change "Adobe Reader" to the name of your preferred PDF view (ie,
"Skim", "PDFView", etc.). You can save the script in
~/Library/Scripts/ or ~/Library/Scripts/Applications/Yojimbo to access
it with the script menu.

Jim

On 5/14/07, Bryan Liles <[EMAIL PROTECTED]> wrote:


Is it possible to preview a PDF in an application other than
Preview.app?  I would much prefer to use Skim.app.


--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Alternate "Bookmark in Yojimbo"

2007-05-11 Thread Jim DeVona

Just thought I'd mention that I've updated my "Bookmark in Yojimbo"
script. It is now available for Firefox as well as Safari. I suspect
it would not be hard to adapt for other browsers, either. It also
checks for duplicate bookmarks. There are, of course, many ways to
create bookmarks in Yojimbo; this just happens to be my favorite.

http://anoved.net/bookmark_in_yojimbo.html

Jim

On 11/19/06, Jim DeVona <[EMAIL PROTECTED]> wrote:


Being ignorant of the "Bookmark in Yojimbo" (and other) bookmarklets
provided in the Yojimbo documentation, I wrote my own "Bookmark in
Yojimbo" AppleScript to do essentially the same thing. Looking through
this mailing list's archives now I see that this problem and solution
have already been covered pretty well, but I figured I'd share my
script anyway. You can download it or read more about it at
http://anoved.net/bookmark_in_yojimbo.html

Be well,
Jim


--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: Dates created and modified

2007-05-10 Thread Jim DeVona

Just to let you know, I've successfully synced a bunch of "backdated" items
(I use SyncTogether). Both libraries contained a large set of notes I
imported last year (so all the Yojimbo items were considered created in Nov
2006). On one machine I used my backdate items script to restore their
original creation dates, ranging back to 1996. After synchronization, the
other machine now shows these dates as well.

Jim


On 5/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> wow, jim, this is awesome. i'll try it later this evening.
>
> thanks!!
> ------
>
> On May 9, 2007, at 12:25pm, Jim DeVona wrote:
>
> > On 5/9/07, Jim DeVona <[EMAIL PROTECTED]> wrote:
> >
> >> > the more i think about this issue, i realize that there are many
> >> > documents i will need to change. in fact, for me, it will be
> >> > essentially every document that i import as such, going
> >> forward,
> >> > it's going to be quite a bit of extra work to manually change the
> >> > dates of each document that i import.
> >>
> >> True. This script is best suited to making a few isolated
> >> corrections.
> >>
> >> Ideally, you'd like each newly imported Yojimbo item to inherit the
> >> creation and modification dates of the Finder file it was imported
> >> from, correct? I think it would be feasible to write an import script
> >> that uses this script's code to automatically adjust the date of each
> >> imported item.
> >
> > Here it is:
http://anoved.net/2007/05/backdate-yojimbo-import.html
> >
> > When you run the script, it'll present a file browser. Choose the
> > files you want to import. They'll be automatically "backdated" with
> > the creation and modification dates of the actual files after they're
> > imported. (As with the other script, you'll still need to restart
> > Yojimbo before the corrected dates are visible.)
> >
> > Based on a bit more testing it seems that it is safe to edit backdated
> > items before restarting Yojimbo. The modification date will be
> > changed, of course, but the creation date will be untouched.
> > Nevertheless, I still feel obliged to warn that these scripts use
> > unsanctioned methods to do their deeds!
> >
> > Let me know how it goes.
> > Jim
>




--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: Dates created and modified

2007-05-09 Thread Jim DeVona

On 5/9/07, Jim DeVona <[EMAIL PROTECTED]> wrote:


> the more i think about this issue, i realize that there are many
> documents i will need to change. in fact, for me, it will be
> essentially every document that i import as such, going forward,
> it's going to be quite a bit of extra work to manually change the
> dates of each document that i import.

True. This script is best suited to making a few isolated corrections.

Ideally, you'd like each newly imported Yojimbo item to inherit the
creation and modification dates of the Finder file it was imported
from, correct? I think it would be feasible to write an import script
that uses this script's code to automatically adjust the date of each
imported item.


Here it is: http://anoved.net/2007/05/backdate-yojimbo-import.html

When you run the script, it'll present a file browser. Choose the
files you want to import. They'll be automatically "backdated" with
the creation and modification dates of the actual files after they're
imported. (As with the other script, you'll still need to restart
Yojimbo before the corrected dates are visible.)

Based on a bit more testing it seems that it is safe to edit backdated
items before restarting Yojimbo. The modification date will be
changed, of course, but the creation date will be untouched.
Nevertheless, I still feel obliged to warn that these scripts use
unsanctioned methods to do their deeds!

Let me know how it goes.
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: Dates created and modified

2007-05-09 Thread Jim DeVona

On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


thanks, jim. i really appreciate this.


No problem. After thinking about it a bit I realized it was something
I could use myself.


the more i think about this issue, i realize that there are many
documents i will need to change. in fact, for me, it will be
essentially every document that i import as such, going forward,
it's going to be quite a bit of extra work to manually change the
dates of each document that i import.


True. This script is best suited to making a few isolated corrections.

Ideally, you'd like each newly imported Yojimbo item to inherit the
creation and modification dates of the Finder file it was imported
from, correct? I think it would be feasible to write an import script
that uses this script's code to automatically adjust the date of each
imported item.


so, to the yojimbo developers: will you consider adding, as a
preference, the ability to inherit the creation dates of imported
documents?


If there's any indication that this is in the pipeline, I won't bother
writing another script.

Anyway, I did issue a minor update to the script yesterday that just
performs a bit more validation on the format of the date text you
enter.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Dates created and modified

2007-05-07 Thread Jim DeVona

On 5/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


hence, request #1: the ability to edit the creation and modification
dates.

IMHO, registering the date of *import*, as if it were the date of
creation, is simply incorrect. (the date that a pre-existing document
was imported into yojimbo seems completely irrelevant to me, as
opposed to, say, a note that is actually created within yojimbo.)


Hi, folks. I've written a little script to address this idea. It's an
AppleScript called "Backdate Items" that modifies item timestamps
directly in Yojimbo's database. Needless to say, this is an
inadvisably sneaky solution. However, if you'd really like to change
some item creation dates, you may consider it worth the risk.

http://anoved.net/2007/05/backdate-yojimbo-items.html

The script and instructions how to use it are provided at that page.
Note that you do have to restart Yojimbo before timestamp changes are
visible in the program. Again, I can make no guarantees that this
won't cause problems now or in the future (especially with syncing,
which I haven't tested yet). With that in mind, I welcome your
feedback. I've been using it to backdate some of those compositions I
mentioned earlier and everything appears to be working fine.

Be well,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Dates created and modified

2007-05-04 Thread Jim DeVona

On 5/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


hence, request #1: the ability to edit the creation and modification
dates.


I would benefit from this as well. I have a large number of small
compositions (~200) originally written in MacJournal. I was able to
import them without problem, but now they all have the same date. This
doesn't matter for most of my other Yojimbo content, but for these
entries it would be meaningful to be able to sort and view them
chronologically.

Since I have already imported these items, the ability to correct
their dates (item "backdating," if you will) would be ideal. However,
I suppose a valid argument could be made to keep these dates
immutable, so in either case preserving the creation date of imported
items would be a reasonable solution.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: why do we have to "copy" instead of just "select"

2007-05-04 Thread Jim DeVona

On 5/4/07, Bob Koss <[EMAIL PROTECTED]> wrote:


Am I missing something about the question? What is so hard about
selecting the text, cmd-c, F8, enter?


Nothing is so hard about it. I think the questioner simply expressed
an observation that selecting the text, F8, enter would be one step
shorter, and thus preferable to them. Using a service with a keyboard
shortcut could be one step shorter still: select the text, keystroke
(or "grab").

As Patrick noted and you reiterate, copying is a fairly universal
action that presents little or no difficulty to most users. I don't
think the question is about the difficulty of performing the keystroke
sequence so much as its conceptual focus: if you have to copy the text
anyway, why use the quick input panel at all when you could just
Cmd-Tab to Yojimbo and create the note normally?

(Personally, I'm content with the present mechanism as well, but I
enjoy the exposure to different usages and workflows provided by these
mailing lists, so I like to play devil's advocate now and then to see
how easily different approaches can be facilitated.)

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: why do we have to "copy" instead of just "select"

2007-05-04 Thread Jim DeVona

On 5/3/07, VLCofA <[EMAIL PROTECTED]> wrote:


Hi, folks,

I've tried out many of the other note-grabbing programs, like SOHO
Notes and Journler and Eagle Filer. Each of them requires only that
you SELECT the text and invoke its "grab" command. This makes me
wonder why Yojimbo, which I prefer in every other way, requires that
we SELECT then COPY the text before we grab it. Any thoughts?

DS


There is an alternative way to import selected text without using the
clipboard. Yojimbo includes an "Import Text" service (found under the
Services menu in your current application's main menu).

I've also written a standalone service that does more or less the same
thing: http://anoved.net/2007/05/import-yojimbo-note.html The main
difference is that my service imports the text as plain text whereas
Yojimbo's service seems to retain color and style information. Mine
also opens the new note window so that you can edit the note title or
tags.

Hope these methods give you some ideas.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Times Select into Yojimbo?

2007-03-28 Thread Jim DeVona

On 3/28/07, Gary L. Gray <[EMAIL PROTECTED]> wrote:


On Mar 28, 2007, at 9:51 PM, TjL wrote:

> On Mar 26, 2007, at 11:22 PM, Gary L. Gray wrote:
>
>> On Mar 26, 2007, at 11:09 PM, Ted Wood wrote:
>>
>>> Are you logging in first?
>>
>> I am always logged in to TimesSelect when I am on the NY Times web
>> site.
>>
>> Maybe that is the difference?
>
> I'm logging in via my browser, but Yojimbo doesn't know that.
>
> For example if I go to:
>
> http://select.nytimes.com/2007/03/28/opinion/28friedman.html?
> pagewanted=print
>
> I get
>
> How Many Scientists?
> By THOMAS L. FRIEDMAN
> Published: March 28, 2007
> Thank goodness for the way Gov. Arnold Schwarzenegger has built a
> Republican-Democratic coalition in California to blunt climate change.
>
> To continue reading this article, you must be a subscriber to
> TimesSelect. Log in now.

I copied that URL and created a new web archive in Yojimbo and it
opened it without a hitch. I have no idea what we are doing
differently. I wish I could be of more help, but I have no idea what
is going on here.


Just a shot in the dark here, but might it matter which browser you're
using? For instance, if you're logging in with Safari, perhaps the
authentication is recognized by Yojimbo, which presumably uses the
common WebKit type framework for web archives (and the authentication
cookies). On the other hand, if you're logging in with Firefox or
another browser that stores things separately, Yojimbo may be none the
wiser.

Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: [admin] list archives down

2007-03-19 Thread Jim DeVona

Of course, I should note that that site only appears to have messages
from the past month, so it won't be useful for searching prior
discussions. But at least maybe it covers what has been missed by the
recent outages.

Jim

On 3/19/07, Jim DeVona <[EMAIL PROTECTED]> wrote:

Incidentally, I have noticed that fairly up-to-date archives are also
available at http://www.mail-archive.com/yojimbo-talk@barebones.com/

I don't know if that is an unofficial mirror or what, but it seems to
work OK for me.

Jim

On 3/19/07, Patrick Woolsey <[EMAIL PROTECTED]> wrote:
> Good morning folks,
>
> As many of you have noticed, the archives of our mailing lists on
> ListSearch.com have been unavailable recently.
>
> The ListSearch folks are aware of this issue and are working to correct it.
>
> We apologize for the inconvenience, and are investigating alternate methods
> of making the list archives available again. For the meantime, we
> appreciate your patience.
>
>
> [NB: For any urgent concerns/requests related to this matter, please send
> mail to our list admin address <[EMAIL PROTECTED]>, NOT to the list.
> As always, if you have any direct questions about our products, please send
> email to <[EMAIL PROTECTED]> so that we may assist you.]
>
>
> Regards,
>
>  Patrick Woolsey  /  Director of Technical Services


--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: [admin] list archives down

2007-03-19 Thread Jim DeVona

Incidentally, I have noticed that fairly up-to-date archives are also
available at http://www.mail-archive.com/yojimbo-talk@barebones.com/

I don't know if that is an unofficial mirror or what, but it seems to
work OK for me.

Jim

On 3/19/07, Patrick Woolsey <[EMAIL PROTECTED]> wrote:

Good morning folks,

As many of you have noticed, the archives of our mailing lists on
ListSearch.com have been unavailable recently.

The ListSearch folks are aware of this issue and are working to correct it.

We apologize for the inconvenience, and are investigating alternate methods
of making the list archives available again. For the meantime, we
appreciate your patience.


[NB: For any urgent concerns/requests related to this matter, please send
mail to our list admin address <[EMAIL PROTECTED]>, NOT to the list.
As always, if you have any direct questions about our products, please send
email to <[EMAIL PROTECTED]> so that we may assist you.]


Regards,

 Patrick Woolsey  /  Director of Technical Services
==
Bare Bones Software, Inc.
P.O. Box 1048, Bedford, MA 01730-1048

--
--
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
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 .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Import Applescripts

2007-03-07 Thread Jim DeVona

My silly web mail might have broken that script by hard wrapping the
lines. If so you can just download it from
http://anoved.net/files/YojimboPasswordSerialImport.scpt.zip instead.

Jim

On 3/8/07, Jim DeVona <[EMAIL PROTECTED]> wrote:

On 3/7/07, Nicolai Amter <[EMAIL PROTECTED]> wrote:

> I can export out two text files from WC which I'll clean up in Excel and
> then save as a Tab or Comma Delimited file.
> One will be in the format will be Name, Location, Account, Password and
> the other will be Product Name, Owner Name, Serial Number, Comments.
>
> I know enough about Applescript and programming that I should be able to
> change where the data get imported into if you or somebody could write a
> example script.

Hi, Nicolai.

Here is a script that ought to do the job or at least get it started.
You can use it to import tab delimited lists of passwords or serial
numbers as described above. Hopefully it is clear enough to modify or
extend to suit your purposes, but if not please let me know. I've
tested it successfully with some simple examples but it doesn't do
much real error checking so I can't promise it'll handle everything.

Incidentally I suppose it would not be hard to make this script import
other Yojimbo data types from tab delimited files. I leave that as an
exercise for the reader!

Be well,
Jim



--
--
This message is sent to you because you are subscribed to
 the mailing list .
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: Import Applescripts

2007-03-07 Thread Jim DeVona

On 3/7/07, Nicolai Amter <[EMAIL PROTECTED]> wrote:


I can export out two text files from WC which I'll clean up in Excel and
then save as a Tab or Comma Delimited file.
One will be in the format will be Name, Location, Account, Password and
the other will be Product Name, Owner Name, Serial Number, Comments.

I know enough about Applescript and programming that I should be able to
change where the data get imported into if you or somebody could write a
example script.


Hi, Nicolai.

Here is a script that ought to do the job or at least get it started.
You can use it to import tab delimited lists of passwords or serial
numbers as described above. Hopefully it is clear enough to modify or
extend to suit your purposes, but if not please let me know. I've
tested it successfully with some simple examples but it doesn't do
much real error checking so I can't promise it'll handle everything.

Incidentally I suppose it would not be hard to make this script import
other Yojimbo data types from tab delimited files. I leave that as an
exercise for the reader!

Be well,
Jim

set _type to button returned of (display alert "Select what kind of
data to import to Yojimbo:" buttons {"Cancel", "Serial Numbers",
"Passwords"} cancel button 1)
if _type is "Cancel" or _type is "" then
return
end if

-- read the file
set _file to choose file with prompt "Select a tab delimited file
containing " & _type
open for access _file
set _data to read _file using delimiter {(ASCII character 13), (ASCII
character 10)}
close access _file

-- import each line as a tab delimited record
-- per http://www.blankreb.com/studiosnips.php?ID=17
set _delim to AppleScript's text item delimiters
set AppleScript's text item delimiters to tab -- or {","}
repeat with _index from 1 to count of _data
try
set _line to the text items of item _index of _data
if _type is "Passwords" then
-- items are name, location, account, and password
MakePassword(item 1 of _line, item 2 of _line, item 3 
of _line,
item 4 of _line)
else if _type is "Serial Numbers" then
-- items are product, owner, serial number, and comments
MakeSerial(item 1 of _line, item 2 of _line, item 3 of 
_line, item
4 of _line)
end if
end try
end repeat
set AppleScript's text item delimiters to _delim

on MakePassword(_name, _location, _account, _password)
tell application "Yojimbo"
set _new to make new password item with properties {name:_name,
location:_location, account:_account, password:_password}
end tell
end MakePassword

on MakeSerial(_product, _owner, _number, _comments)
tell application "Yojimbo"
set _new to make new serial number item with properties
{name:_product, owner name:_owner, serial number:_number,
comments:_comments}
end tell
end MakeSerial

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>


Re: Import Applescripts

2007-03-06 Thread Jim DeVona

On 3/6/07, Nicolai Amter <[EMAIL PROTECTED]> wrote:


Since Yojimbo is now more Applescriptable. Do any of you have any scripts
the can take data from a formatted list and import them. For example from a
list of websites with their usernames and passwords?


I don't have such a script, but it should certainly be possible. If
you can give a specific example of what a line from your list looks
like, I may have time to write an example script for it.

Be well,
Jim

--
--
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>