You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have very limited experience with AppleScript, but wrapping the do shell scriptin an if statement seems to have put a stop to empty logs being created where there are not tasks marked as done. I am sure there is a better solution to the following lines placed at the end of the script:
endrepeatif archived_tasks asstringis not equal to"## "&name&returnthen-- log done tasks to Day One using jrnldo shell script"echo "& (quoted formof archived_tasks) &" |tr -d \"\\t\"|/usr/local/bin/jrnl"end ifendtellendtell
If no tasks are marked as done, an entry with just the log name is created. A log entry should only be created when relevant content exists.
The text was updated successfully, but these errors were encountered: