MTMR
MTMR copied to clipboard
Error with istats
Any way to see log in case of error?
I'm trying to use this script to see CPU temperature:
{
"type": "shellScriptTitledButton",
"width": 80,
"refreshInterval": 2,
"source": {
"inline": "istats cpu --no-graphs --no-labels"
},
"align": "right",
"bordered": false
},
oh, when I run MTMR from the term with /Applications/MTMR.app/Contents/MacOS/MTMR
it's work?? (Display "error" when I launch it from app).
What happens when you run the inline code in terminal?
it works:
And it works when I launch MTMR from term with /Applications/MTMR.app/Contents/MacOS/MTMR (temperature is displayed on touchbar).
try to using full path for istats such like /usr/local/bin/istats
@DickyQi I tried full path but it doesn't work
/Users/kikobeats/.rbenv/shims/istats cpu --no-graphs --no-labels
if I do the action on my terminal I can see it works, so something between MTMR and the inline bash script is failing 🤔
terminal do "which stats", then, like this, "type": "appleScriptTitledButton", "source": { "inline":"set temp to do shell script "/usr/local/bin/istats cpu --no-graphs --no-labels"\r return temp " },