i have this shell script [ pmset -g ps | sed -n ‘s/.[[:blank:]]+(.%)./\1/p’ ] but when i put it in to applescript i get a Syntax Error id like it to display my Battery% whit out needing to open terminal
dont mater i got it
set t to do shell script “pmset -g ps”
display dialog t buttons {“Cancel”} default button 1