Skip to content

Templater used to pull calendar entries works on laptop but not m1 mini when using User Function #1128

Answered by cstott
cstott asked this question in Help
Discussion options

You must be logged in to vote

Quick Fix

To fix this I added the path to the commands being used. User Function now looks like this:

/opt/homebrew/bin/icalBuddy -npn -nc -ic Calendar -iep "title,datetime" -tf "%H:%M" -ps "| |" -po "datetime,title" -b "- [ ] " eventsFrom:$CURRENT_DATE to:$CURRENT_DATE | /opt/homebrew/bin/awk -F '[- ]at' '{gsub(/^\s*\[\s*\]/,"");gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2);gsub(/^[[:space:]]+|[[:space:]]+$/,"",$3);printf "- [ ] %s %s\n", $2, $3}'

Observations

  • Created a User Function to identify the shell (by executing echo $0). Outputs /opt/homebrew/bin/zsh
  • Created a User Function to see $PATH. Output same as in original comment.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cstott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant