The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Logging OmniFocus done items to DayOne through Hazel Thread Tools Search this Thread Display Modes
That did the trick! I had a feeling something else had to be done but this shell stuff is new to me. Bit like .bat in Windows ;-)

Thanks again for your help!

Guus
 
I cannot seem to get this working. I have DayOne installed & the CLI. I have downloaded the entire script & made it executable (having failed to get it working by embedding it); I have selected it in Hazel. When I complete a task in OF, nothing happens. I have tried running the rule from Hazel and stopping & restarting OF. No DoneToday.txt files have appeared. I don't know what I am doing wrong
 
Quote:
Originally Posted by Bill Westwood View Post
I cannot seem to get this working.
Might be worth checking whether there are any details of your rule which differ from this:



Also, have you tested the CLI from Terminal.app ?
Attached Thumbnails
Click image for larger version

Name:	Rule.png
Views:	1367
Size:	50.4 KB
ID:	2712  
 
Also, what happens if you run OmniFocusLogDone2DayOne.sh directly from the bash prompt in Terminal.app ?

Any error messages ?

(Assuming you have made it executable with
Code:
chmod +x filepath
)
 
I have made the script executable as per your instructions.
Nothing happens when I try to run it.
My rule is identical except for the title:Log OmniFocus items done today to DayOne
How do I test the CLI?
 
Quote:
Originally Posted by Bill Westwood View Post
I have made the script executable as per your instructions.
Nothing happens when I try to run it.
My rule is identical except for the title:Log OmniFocus items done today to DayOne
How do I test the CLI?

Quote:
Originally Posted by Bill Westwood View Post
How do I test the CLI?
Depending on where you have installed it to, you should be able to use a command line like:
Code:
/usr/local/bin/dayone
to check that it is running.

What command line did you use to check the script from Terminal.app ?

Did it generate no error messages ? That would indicate that it is essentially running.
 
This is the reply generated by entering the code above:

Last login: Mon Feb 11 16:27:34 on ttys000
Bill-Westwoods-MacBook-Pro:~ billwestwood$ /usr/local/bin/dayone
Usage: dayone [-d=<date>] [-s=true|false] [-p=<path>]
[-j=<path>] [-h] <command>
Options:
-d, --date=<date> Creation date of the entry.
-s, --starred=true|false Starred value.
-p, --photo-file=<path> File path to a photo to attach to entry.
-j, --journal-file=<path> Location of Day One Journal file.
-h, --help Show this information.

Commands:
new Adds a new entry using text from stdin

Examples:
dayone new
Waits for you type something and then creates a new entry in the default journal

echo "Hello World" | dayone new
Creates a new entry containing the specified text

dayone new < ~/Desktop/note.txt
Creates a new entry containing the contents of the file note.txt
 
Good, so the CLI is running, and, as before:

What command line did you use to check the script from Terminal.app ?
Did it generate no error messages ?

(That would indicate that it is essentially running.)
 
Sorry, but I don't know how to do that
 
Two stages:
1. Make the .sh file executable
2. Run it from the command line.


Make the .sh file executable
  • In Terminal.app, type chmod +x and leave a space after it,
  • drag the .sh file from a Finder window into the Terminal window,
  • hit the enter key to add the x (executable) attribute to the .sh file.

Run it from the command line
  • Again, drag the .sh file into the Terminal window, to get its full path, and
  • hit the enter key to run it.
  • Make a note of any error messages which appear.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Exporting via Hazel varyags OmniGraffle General 0 2012-03-22 11:43 AM
OmniWeb Download + Hazel halbtuerke OmniWeb Feature Requests 10 2008-05-03 01:49 PM
Time logging Finlay Boo OmniFocus 1 for Mac 5 2008-03-12 12:02 PM
Logging into eBay Twice Kazammm OmniWeb Bug Reports 4 2008-03-04 12:19 PM
Suggestion: Logging! seebs OmniFocus 1 for Mac 0 2007-09-19 04:55 AM


All times are GMT -8. The time now is 06:25 PM.


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