Brad A Little Yojimbo - Dropbox Fusion Applescript
Dec 29, 2009; 15:20
Brad
A Little Yojimbo - Dropbox Fusion Applescript
No, this isn't the holy grail of a heterogeneous, iPhone-capable Yojimbo, but it is a simple way of automating the export of flagged Yojimbo items into a Dropbox folder so they can be used anywhere supported by Dropbox (including Windows, Linux, and the iPhone). This isn't syncing, it is just selective export. But, it seems to meet my need for some limited Yojimbo multi-platform capability.
This is my very first Applescript, so suggestions and improvements are welcome. -- Brad
This AppleScript moves flagged Yojimbo items into a Dropbox folder so they can be synced to any platform (including the iPhone and web browser clients) supported by Dropbox. If the item already exists in the folder, it is not overwritten. If the item is subsequently unflagged in Yojimbo, it is not removed from the Dropbox folder. Encrypted items are not exported, even if they are flagged. Items in the Trash are not exported either. Changes to the Dropbox folder items are not imported into Yojimbo.
NOTE: The user must first create a directory called Yojimbo in their ~/ Dropbox folder before running this script!
*)
do shell script "mkdir ~/YojimboTemp"
tell application "Yojimbo" set ycollection to collections whose name is "Library" set ydatabase to every database item in (item 1 of ycollection) whose (flagged is "true" and encrypted is "false") set myPath to (path to home folder) as string export ydatabase to myPath & "YojimboTemp" end tell
do shell script "mv -n ~/YojimboTemp/* ~/Dropbox/Yojimbo/" do shell script "rm -rf ~/YojimboTemp"
-- You received this message because you are subscribed to the "Yojimbo Talk" discussion group on Google Groups. To post to this group, send email to yojimbo-talk@googlegroups.com To unsubscribe from this group, send email to yojimbo-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/yojimbo-talk?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group.
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!