I created an Automator workflow for the shell script "svnRecover" I wrote about in an earlier post. This allows to restore the .svn folders in a Keynote/Pages or similar document that is under Subversion control. For this, you simply select More->Automator->SVN_Recover from the document's context menu (see screenshot). You can download the automator workflow here. To install it, unzip it and copy the workflow document into the folder ~/Library/Workflows/Applications/Finder in your home directory. (You do not need to install the shell script separately; it is included in the Automator workflow.)
Update 2008-09-16: I fixed a bug that could lead to the deletion of all contents of folders with extended privileges.


3 Kommentare:
Ow thanks, that really solved my problem! I like the script you wrote and will use it a lot! Also thanks for the workflow. You've made my night! Marcel.
Daniel, I just found out that this workflow has a serious, dangerous flaw! If you execute it on a directory with extended privileges but without any relation to subversion (e. g. ~/Downloads) IT WILL DELETE ALL OF ITS CONTENTS WITHOUT WARNING.
A friend of mine just executed it on his Desktop background to see what it does and lost everything... Ouch.
Go try it. Put something into ~/Downloads and execute SVN_Recover on ~/Downloads. I'd advise you to repair this bug as soon as possible.
Thank you anonymous, I fixed the bug you described.
Kommentar veröffentlichen