The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Logging OmniFocus done items to DayOne through Hazel (http://forums.omnigroup.com/showthread.php?t=27370)

RobTrew 2012-12-14 04:03 PM

[URL="https://github.com/RobTrew/tree-tools/blob/master/OmniFocus%20scripts/Shell%20scripts%20for%20Geektool%20or%20logging/2012-12-10-omnifocus-done-to-DayOne-shellscript.md"]Version 5[/URL]:

Starts a fresh [I]already logged[/I] file every day.

maaron34 2013-01-13 11:37 AM

log everything in one day
 
This is incredible - thank you for creating it! One question - would it be possible to modify the script to log everything in a single Day One entry?

I was able to install this and make it work, but I don't have the scripting skills to do this ;)

RobTrew 2013-01-13 12:15 PM

I don't think that the Day One interface allows you to direct different logging episodes to a single entry, but you could edit the Hazel settings to just log once, at the end of the day.

Guus 2013-02-08 09:41 AM

What a great addition to OF!

The script itself seems to be working just fine but maybe you can help me out with a few remaining questions I have.

I've copied the code from your site an pasted it in Hazel since I couldn't find a way to download it as a sh file. How can I get it as a file so I have a back-up?

You mentioned a Done button appearing in DO. I don't seem to have that. Was it removed?

You also mention a link back from DO to OF. Don't seem to have that either. Where should it be?

Thank you!

RobTrew 2013-02-08 12:32 PM

1 Attachment(s)
[QUOTE=Guus;120142]How can I get it as a file so I have a back-up?[/QUOTE]
A .sh file is just a text file, so a simple paste and save will do.

[QUOTE=Guus;120142]You mentioned a Done button appearing in DO.[/QUOTE]
Just the standard DayOne interface:
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2707&stc=1&d=1360359067[/IMG]

[QUOTE=Guus;120142]Don't seem to have that either. Where should it be?[/QUOTE]
The trailing colon of the project line is a clickable url link.

[COLOR="White"]--[/COLOR]

Guus 2013-02-08 11:56 PM

Thanks for your help Rob.

I tried saving it in TextEdit in a plain text file and that works ok (sh-extension and icon), but in Hazel I can't select it. Should I edit something in the properties of the file or does it has to be in a certain folder?

The Done-button was there this morning. I guess it only appears once in the morning. Now it's gone again.

If you mean a clickable URL in DO, it isn't there. I've checked both the main overview (all items) and the individual items but it's just not there.

I'll try an post a screenshot of what my DO looks like.

Guus

RobTrew 2013-02-09 12:25 AM

3 Attachment(s)
[QUOTE=Guus;120184]in Hazel I can't select it. Should I edit something in the properties of the file or does it has to be in a certain folder?[/QUOTE]

You can just paste the script in ([I]embedded script[/I] option) or browse to any folder, for the file.
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2708&stc=1&d=1360401325[/IMG]

[QUOTE=Guus;120184]The Done-button was there this morning. I guess it only appears once in the morning. Now it's gone again.[/QUOTE]
It shows in edit mode just click [I]edit[/I] to get it back.
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2709&stc=1&d=1360401325[/IMG]

[QUOTE=Guus;120184]If you mean a clickable URL in DO, it isn't there. I've checked both the main overview (all items) and the individual items but it's just not there.[/QUOTE]
The final colon of the project line should be coloured turquoise a clickable link.
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2710&stc=1&d=1360401821[/IMG]

[COLOR="White"]--[/COLOR]

RobTrew 2013-02-09 12:42 AM

1 Attachment(s)
Incidentally, clicking [I]edit[/I] (see previous post) should reveal the link, in [URL="http://daringfireball.net/projects/markdown/syntax#link"]MarkDown format[/URL].

[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2711&stc=1&d=1360402906[/IMG]

(Moving the opening square bracket further back will enlarge the clickable area. This may give an insight into how the source code could be modified to make the whole project line into a link. I don't do that myself because I find that turquoise colour a little over-saturated :-)

Guus 2013-02-09 01:40 AM

Thanks for all your help! Two of three solved!

My DO is set to open in Last View. That's why I didn't see the Done button at first. Now I know where to find it!

The semicolon with URL is there too. I simply overlooked it. :-(

I have the script embedded and it works fine. I just would prefer to use it as a files so it will be in my backup. These internal things have a way of being overlook when reinstalling stuff.

The problem remains that when in Hazel I can't select the file in the finder, it's grayed-out. Also tried moving it from downloads to documents and logged in as admin but it isn't working. I pasted the same script in TextEdit and saved it in plain text. Removed the txt-extension so only the sh-extension remains. The file still wants to open with TextEdit, maybe that should be changed to something else? Terminal?

RobTrew 2013-02-09 01:52 AM

[QUOTE=Guus;120187]in Hazel I can't select the file in the finder, it's grayed-out.[/QUOTE]

To ungray it in the Hazel dialog you need to make the .sh text file executable.
[LIST][*]Open Terminal.app[*]On the bash command line, type [CODE]chmod +x [/CODE](followed by a space)[*]Drag and drop the .sh file from a Finder window to the Terminal window[/LIST]
You should now be looking at something analogous to:

[CODE]chmod +x /Users/houthakker/Desktop/test.sh[/CODE]

and if you hit the enter key, the file will be made executable, and should now be shown as ungrayed and selectable in the Hazel dialog.

[COLOR="White"]--[/COLOR]


All times are GMT -8. The time now is 02:20 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.