Bring in URL for something within my file system

7 views
Skip to first unread message

Sigadoré

unread,
Sep 14, 2009, 2:15:02 AM9/14/09
to Yojimbo Talk
It would be handy to have an easy way to create a bookmark for content
I already have on my hard-drive. It can be done by either hand
crafting file:///Place/on/my/disk/file.txt or using a browser to get
to the same place, but I would like to be able to Drop with "Command
and Option" for a "Link" to the content ideally or at least not get a
BEEP when I attempt to use the Service > YoJimbo > Import URL from the
Finder with a single item selected.

Sometime, I would like to just reference things (like Java Source,
XCode Project Files, Tax Files with Turbo Tax, etc.) quickly and
easily and get the benefits of Tagging, etc.

Thanks!

cubic....@fastmail.fm

unread,
Sep 14, 2009, 8:56:34 AM9/14/09
to yojimb...@googlegroups.com
If you have Snow Leopard this is quite easily done with Automator as a
Service. Open Automator, create a new Service which applies to files
and folders from the Finder (at the top of the edit window), then add
a "Run Applescript" action containing the following:

on run {input, parameters}
tell application "Yojimbo"
set theNote to make new bookmark item with properties {name:(name of
(info for input)), location:"file://" & (posix path of input)}
end
return input
end run

Slava

unread,
Nov 10, 2009, 11:43:23 PM11/10/09
to Yojimbo Talk
Thank you so much! It worked like a charm :)

Dennis

unread,
Nov 11, 2009, 7:56:45 PM11/11/09
to Yojimbo Talk
Here's a variation of cubic's script with a couple bells and whistles:
supports selections of multiple Finder items, adds a "Finder" tag,
inserts a comment with the creation date (not strictly necessary since
Yojimbo tracks import and creation dates, but change it to whatever
you like).

property YojimboTags : {"Finder"}
on run {input, parameters}
tell application "Yojimbo"
repeat with i in input
try
set dateString to "Saved path from Finder on " & (current date) as
string
set fileBookmark to make new bookmark item with properties {name:
(name of (info for i)), location:"file://" & (POSIX path of i),
comments:dateString}
add tags YojimboTags to fileBookmark
on error errMsg
display alert errMsg
end try
end repeat
end tell
return input
end run

Thanks to both of you for the inspiration!

-Dennis
Reply all
Reply to author
Forward
0 new messages