「\"0.0\" を型番号にできません」というエラーが発生し続けるのはなぜですか。数値 -1700 「0.0」から数値へ? number として削除すると、表示ダイアログが常に表示されます。
tell application "System Events"
repeat
set PID to unix id of process "JPEGmini"
set getCpuPercent to "ps aux | grep " & PID & " | grep -v grep | awk '{print $3}'"
set cpuPercent to (do shell script getCpuPercent) as number
if (cpuPercent) < 5 then
display dialog cpuPercent
end if
end repeat
end tell