爲什麼我一直在收到錯誤「無法將\」0.0 \「編入編號。」從「0.0」到數字-1700?如果我刪除作爲編號,顯示對話框始終顯示。「無法將」0.0 「編入類型編號。」編號-1700從「0.0」到編號
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
您看到此消息的時間可能已經太晚了,但請不要忘記您對此問題給予的獎勵。它昨天過期,寬限期結束於3小時。對於你的問題,你有3個正確的答案,所以獎賞獎賞應該沒有問題,更不用說通常的提議和回答接受了。謝謝。 –