优化applescript以减少能源影响

时间:2018-12-13 17:21:13

标签: optimization widget base64 applescript battery

我有一个为电池指示器小部件创建的脚本,该脚本将显示在我的(Macbook pro)触摸栏中,并将其设置为每3秒重新运行一次(以更新文本和徽标),但是它正在吃很多能量只是在后台运行,我想知道是否有某种方法可以以某种方式使其更高效以减少电池消耗。

这是脚本:

(请记住,图标的图像位于base64中,因为我计划与可能对计算机一无所知的人共享此小部件,因此我不能让他们下载图像并将其保存在特定目录等中。 )

set bat_empty_icon to "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA3XAAAN1wFCKJt4AAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAALzUlEQVR4Ae3dv69lVRUH8IdMDAxQTYjAWFAQEwsrAWNCYkFoJsgQO7UxYvQPoFWgMDYWxEYrbfzVAoUNgcRkEg2MFcWEhIIYYGhomOFXjOD6jjnkcmfemzez7ptz9r2fnay59915+9y1P/vsNeec+2P29jQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQINAXuKm/iUtbuLX+fLjioYqTFfes3N5R9zUCowpcqMTfqXh75fZM3X+p4qOKoVunAJyokZ+ueKzikYrjFRqBXRH4sAb6YsULFc9XvFexE+22GuVTFamMnwkG9oFLayFrImtja9vNNbKfVpyvsPAZ2Acu3weyNrJGslaGaIc9Bcg5/XMVDwwxKkkSmFfg1Xr6xyty7WDR7TAF4MEaQRb/3YseieQILEsgRwMpAq8sK60vZvOlL/542U8/rEf+XmHxX0bjAQIHCmTNZO1kDS22HXSuksT/VHFssdlLjMCyBbJ2vlfxRsVrS0x1v1OAHPanet2yxKTlRGAwgY8r3+9ULO504EoFIBf8zlY47C8EjcCGBHJN4P6KRV0YXL8GkFMCF/w2NOM2Q2BFIP+gZm0ddNq98us35u56AXiintZLfTfG3rPsnkDWVtbYYtrqKUDexZSLFXctJjuJENg+gXdrSPdVfLCEoa0eATxZCVn8S5gVOWyzQNZY1toi2nQEcKKyebPi9kVkJQkC2y1wsYZ3b8XsHyCajgDyqT6LvxA0AjdAIGsta24xLVcnN/XhjtdrW89UPFrhpcRC0IYWyD6cffnpiuzbm1onWXOLaPkyj1yQ6A7s09rGsxXZnkZgGwWyb2cfz77eXS9Zc4tYK6lu3cEE5FSFRmAXBLKvb6IIZO3N2nINIF/j1W2/qQ38rbsR/QkMIpB9Pft8t21i7XVz2PtjbaFzBJDzokUcyrQlbIDA4QWyz3evCWTtzdpyBJD3/nfaX6rz8F+O2AHQdycFss//tTny7tprPv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bfzFq/z+Dvkxb8iyUTWkE3SjvAv6REk2rb2Vl0xDqgb4XuBH4VbQn2vFo1ZQlYyHwdvTe1lGH7ANo51crll1oB95H0PLeZ/ItTuvaWdp4GPgX4A60OcL7gPPQ6qalaPjK5w1Mbaodfo4FTkNr0DejL5XH/IvhILroo+2816JwLu1oWZwLdQgtSNkA3IPWSq9CVddFoz+74xZwhpqqI68bBekm9MV6gnjbRjfWHBbS/L4MnhIuI+g93I5GYF5Fq/meQu9Rqd+nSr3utSRTqVQy38fkLOA6NPS3Dm2ssj3rQiTF369icwBMI4cAeAvaZXkvOt+tnxwPjojL369icwBMI4cA6EHt/wEKsG98XP5+FZsDwCxgPtjTLGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOA/R+GatypVlYrzAAAAABJRU5ErkJggg=="

set chargeState to do shell script "pmset -g batt | awk '{printf \"%s %s\\n\", $4,$5;exit}'"
set percentLeft to do shell script "pmset -g batt | egrep -ow '([0-9]{1,3})[%]'" as text
set percentcheck to (item 1 of words of percentLeft as integer)


on new_icon(base64Code)
    set percentLeft to do shell script "pmset -g batt | egrep -ow '([0-9]{1,3})[%]'" as text
    tell application "BetterTouchTool"
        update_touch_bar_widget "482F2657-A978-4D25-B9D6-EABFAD7E3B0A" text percentLeft icon_data base64Code
    end tell
end new_icon


if (chargeState contains "AC") then
    my new_icon(bat_charging_icon)
else if percentcheck ≥ 85 then
        my new_icon(bat_full_icon)
    else if (percentcheck < 85) and (percentcheck ≥ 65) then
            my new_icon(bat_three_quarters_icon)
    else if (percentcheck < 65) and (percentcheck ≥ 31) then
            my new_icon(bat_three_quarters_icon)
    else if percentcheck < 31 then
            my new_icon(bat_low_icon)
    else if percentcheck ≤ 10 then
            my new_icon(bat_empty_icon) 
end if

1 个答案:

答案 0 :(得分:0)

您的第一步应该是增加运行脚本的间隔。无需每3秒(!)运行一次。即使一分钟一次就足够了,但我个人将其设置为每十分钟一次,因为电池电量不会在十分钟的时间内仅改变一次。即使更改两次(例如,从97%降至96%,然后降至95%),您的脚本在10分钟的间隔内将级别从97%直接降低到95%也不会带来负面影响。

您接下来要做的是将那些基数为64的字符串存储在属性中,而不是变量中。属性只设置一次,并在脚本的后续运行之间存储。如果属性的值未更改,则脚本不需要在每次执行时都读取一组新的值。由于它们是在编译时设置的,因此在运行时可以减少开销。

接下来要做的就是摆脱do shell script命令。他们会产生很多开销。相反,您可以使用AppleScriptObjC调用来获取所需的信息。与普通的AppleScript相比,实现AppleScriptObjC仍然有少量开销,但是它不如创建多个Shell进程的开销大:

property bat_empty_icon : "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA3XAAAN1wFCKJt4AAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAALzUlEQVR4Ae3dv69lVRUH8IdMDAxQTYjAWFAQEwsrAWNCYkFoJsgQO7UxYvQPoFWgMDYWxEYrbfzVAoUNgcRkEg2MFcWEhIIYYGhomOFXjOD6jjnkcmfemzez7ptz9r2fnay59915+9y1P/vsNeec+2P29jQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQINAXuKm/iUtbuLX+fLjioYqTFfes3N5R9zUCowpcqMTfqXh75fZM3X+p4qOKoVunAJyokZ+ueKzikYrjFRqBXRH4sAb6YsULFc9XvFexE+22GuVTFamMnwkG9oFLayFrImtja9vNNbKfVpyvsPAZ2Acu3weyNrJGslaGaIc9Bcg5/XMVDwwxKkkSmFfg1Xr6xyty7WDR7TAF4MEaQRb/3YseieQILEsgRwMpAq8sK60vZvOlL/542U8/rEf+XmHxX0bjAQIHCmTNZO1kDS22HXSuksT/VHFssdlLjMCyBbJ2vlfxRsVrS0x1v1OAHPanet2yxKTlRGAwgY8r3+9ULO504EoFIBf8zlY47C8EjcCGBHJN4P6KRV0YXL8GkFMCF/w2NOM2Q2BFIP+gZm0ddNq98us35u56AXiintZLfTfG3rPsnkDWVtbYYtrqKUDexZSLFXctJjuJENg+gXdrSPdVfLCEoa0eATxZCVn8S5gVOWyzQNZY1toi2nQEcKKyebPi9kVkJQkC2y1wsYZ3b8XsH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Muix0pGgWImgB11Pb/LppHcDincllrhoEvo+Z14Uw2KeQJNN3xxQzLYkeaizoBO9CX6Geo068Qw0fWtK8Dt1HQMxkmC4ARdHrI76JthSxb0U5APaP/P4jmanwfb+9dFofQXf+zqP1fSFNNC62jTsFfRzvLWnbmoIs/6gA8gPb4exRv81UGW4HPAX9CwY9hb2Ze83rgk6jqeQOaG23pmg8ci9r//ajq/yhe5190B9D07K+i05jirLLNRLMLGzahvcvuA34LOB/NVbfk1VDbfzFq/z+Dvkxb8iyUTWkE3SjvAv6REk2rb2Vl0xDqgb4XuBH4VbQn2vFo1ZQlYyHwdvTe1lGH7ANo51crll1oB95H0PLeZ/ItTuvaWdp4GPgX4A60OcL7gPPQ6qalaPjK5w1Mbaodfo4FTkNr0DejL5XH/IvhILroo+2816JwLu1oWZwLdQgtSNkA3IPWSq9CVddFoz+74xZwhpqqI68bBekm9MV6gnjbRjfWHBbS/L4MnhIuI+g93I5GYF5Fq/meQu9Rqd+nSr3utSRTqVQy38fkLOA6NPS3Dm2ssj3rQiTF369icwBMI4cAeAvaZXkvOt+tnxwPjojL369icwBMI4cA6EHt/wEKsG98XP5+FZsDwCxgPtjTLGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOAOQDMAuYAMAuYA8AsYA4As4A5AMwC5gAwC5gDwCxgDgCzgDkAzALmADALmAPALGAOALOA/R+GatypVlYrzAAAAABJRU5ErkJggg=="

global percentage

set [percentage, powersource] to [|current capacity|, ¬
    |power source state|] of battery's info()

if powersource contains "AC" then
    new_icon(bat_charging_icon)
else if percentage ≥ 85 then
    new_icon(bat_full_icon)
else if percentage ≥ 65 then
    new_icon(bat_three_quarters_icon)
else if percentage ≥ 31 then
    new_icon(bat_three_quarters_icon)
else if percentage ≥ 11 then
    new_icon(bat_low_icon)
else
    new_icon(bat_empty_icon)
end if


on new_icon(base64Code)
    global percentage

    tell application "BetterTouchTool"
        update_touch_bar_widget ¬
            "482F2657-A978-4D25-B9D6-EABFAD7E3B0A" text ¬
            "" & percentage & "%" icon_data base64Code
    end tell
end new_icon

script battery
    use framework "IOKit"

    on info()
        current application's IOPSCopyPowerSourcesInfo() as record
    end info
end script

此外,我整理了if...then...else块,以免进行不必要的数字比较。