Kenneth Kirksey Manage Finder Items in Yojimbo Applescript
Feb 06, 2007; 07:08
Kenneth Kirksey
Manage Finder Items in Yojimbo Applescript
Ever since starting to use Yojimbo, I've wanted to use it to manage stuff other than the data types that it supports natively. Now that Yojimbo supports file URLs, that's possible, albeit in a very hacky way. I whipped up a quick and dirty applescript that moves any finder item to a Yojimbo archive folder, then adds a URL for that file to Yojimbo. I've enclosed the script below.
Some caveats:
- This is a quick and dirty script, with no error checking. If you try to place an item with a duplicate name, it will break.
- You need to specify the HFS path to the folder in which you want to store items at the top of the script in the myArchiveFolder variable.
- I'd like to figure out a way to do this using aliases instead of fixed file paths, so that if you move an item in the finder, Yojimbo can still find it. Any suggestions appreciated.
Enjoy!
set myArchiveFolder to "Kenneth_MBP:Users:kkirksey:Documents:Yojimbo:" set theFileInfo to {}
tell application "Finder" set _selectedFiles to selection as list repeat with theFile in _selectedFiles set newFile to move theFile to myArchiveFolder copy {name of newFile, URL of newFile} to end of theFileInfo
end repeat tell application "Yojimbo" repeat with theItem in theFileInfo make new bookmark item with properties {name:item 1 of theItem, location:item 2 of theItem} end repeat end tell
end tell
-- ------------------------------------------------------------------ This message is sent to you because you are subscribed to the mailing list <yojimbo-talk@barebones.com>. To unsubscribe, send mail to: <yojimbo-talk-off@barebones.com> 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: <support@barebones.com>
Feb 06
Alan German Re: Manage Finder Items in Yojimbo Applescript
Feb 06, 2007; 08:17
Alan German
Re: Manage Finder Items in Yojimbo Applescript
Feb 06
Jon Baer Re: Manage Finder Items in Yojimbo Applescript
Feb 06, 2007; 16:04
Jon Baer
Re: Manage Finder Items in Yojimbo Applescript
Feb 14
Bronson C. Elliott Re: Manage Finder Items in Yojimbo Applescript
Feb 14, 2007; 02:01
Bronson C. Elliott
Re: Manage Finder Items in Yojimbo Applescript
Feb 14
Rhet Turnbull Re: Manage Finder Items in Yojimbo Applescript
Feb 14, 2007; 00:35
Rhet Turnbull
Re: Manage Finder Items in Yojimbo Applescript
Feb 14
Brian Durant Re: Manage Finder Items in Yojimbo Applescript
Feb 14, 2007; 10:16
Brian Durant
Re: Manage Finder Items in Yojimbo Applescript
Feb 14
Kenneth Kirksey Re: Manage Finder Items in Yojimbo Applescript
Feb 14, 2007; 05:35
Kenneth Kirksey
Re: Manage Finder Items in Yojimbo Applescript
Feb 14
Marlyse Comte Re: Manage Finder Items in Yojimbo Applescript
Feb 14, 2007; 05:17
Marlyse Comte
Re: Manage Finder Items in Yojimbo Applescript
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!