<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 學店廢廢 on Medium]]></title>
        <description><![CDATA[Stories by 學店廢廢 on Medium]]></description>
        <link>https://medium.com/@little-feyfey?source=rss-364bc926056b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KFM5Jp74Tml1FKpuBPxF2Q.png</url>
            <title>Stories by 學店廢廢 on Medium</title>
            <link>https://medium.com/@little-feyfey?source=rss-364bc926056b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:11:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@little-feyfey/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[解決MAC/MacBook 週期性卡頓的問題(Cause by Input Method)]]></title>
            <link>https://little-feyfey.medium.com/%E8%A7%A3%E6%B1%BAmac-macbook-%E9%80%B1%E6%9C%9F%E6%80%A7%E5%8D%A1%E9%A0%93%E7%9A%84%E5%95%8F%E9%A1%8C-cause-by-input-method-a215f3b36409?source=rss-364bc926056b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a215f3b36409</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[系統問題]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[解決問題]]></category>
            <dc:creator><![CDATA[學店廢廢]]></dc:creator>
            <pubDate>Sun, 03 Dec 2023 12:00:23 GMT</pubDate>
            <atom:updated>2023-12-03T14:38:21.556Z</atom:updated>
            <content:encoded><![CDATA[<p>我常常在使用Mac一段時間後Mac會出現卡頓的問題。症狀輕頂多是打字和選字的時候出現卡頓，嚴重的時候就連在切換頁面或是應用程式時會出現需要loading很長時間的情形，如果你也碰到這類的問題，可以試試下面介紹的解決方法。</p><p>本文是整合以下三篇文章的解決方法，如果這篇文章無法解決你的問題，可以參考以下文章提出的其他方法：</p><ul><li><a href="https://medium.com/@mvpdw06/%E8%A7%A3%E6%B1%BA-mbp-%E4%B8%AD%E6%96%87%E8%BC%B8%E5%85%A5%E6%B3%95%E5%8D%A1%E9%A0%93%E5%95%8F%E9%A1%8C-fa7ae45e1df1">解決 MBP 中文輸入法卡頓問題</a></li><li><a href="https://www.zhihu.com/question/22382193">MacBook Air在打字好卡，延迟特别严重，要怎么解决？</a></li><li><a href="https://www.jianshu.com/p/ec2729d485a8">macOS 输入法卡顿问题解决方法：永久解决，一劳永逸</a></li></ul><p>造成卡頓的可能主要原因是中文輸入法的bug造成的，而且卡頓的災情在繁中和簡中輸入法都有出現。</p><p>這個原因主要是輸入法開啟後會累積暫存記憶體長時間累積後沒有被釋放所以造成系統卡頓。麻煩的是在活動監視器(activity monitor)中沒法直接看出來實際佔有的記憶體容量， 所以會出現卡頓時打開活動監視器但是發現記憶體尚未用滿的情況。</p><p>解決的方法也是很直覺的把輸入法的任務給終止就可以了。終止之後輸入法會自動重新啟動，所以不用擔心中之後會出現無法使用輸入法的情況。</p><p>解決步驟</p><p>1.開啟活動監視器( cmd+空白鍵 -&gt; 活動監視器(activity monitor) )</p><p>2.找到”繁體中文輸入法(Traditional Chinese Input Method)“ (search: input)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2SGQQJAUhhBx3DlT8VTNA.png" /></figure><p>3.強制結束(上方❌或是點兩下進去應用程式會有結束的選項)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUO0fbh4fYXYh3hPIvhnOQ.png" /></figure><p>或是</p><p>1.開啟終端機(cmd + 空白鍵 -&gt; terminal)</p><p>2.複製以下指令貼上後按enter執行</p><p>繁中：</p><pre>pgrep -f &quot;/System/Library/Input Methods/TCIM.app/Contents/PlugIn&quot; | xargs kill -HUP</pre><p>簡中：</p><pre>pgrep -f &quot;/System/Library/Input Methods/SCIM.app/Contents/PlugIn&quot; | xargs kill -HUP</pre><p>當碰到卡頓時依照上述的部步驟強制結束輸入法後，問題應該會順利解決。不過當卡頓情形嚴重的時候，連開啟活動監視器可能都要等上一兩分鐘，想要儘快強制結束輸入法的方式可以利用macOS 內建的antomator功能來撰寫一個應用程式來執行這個指令。</p><p>以下撰寫應用程式的步驟是參考這篇文章：</p><p><a href="https://zhuanlan.zhihu.com/p/625052341?utm_id=0">macOS在长时间运行后由于简体中文输入法卡死而引起系统无响应的一个较为高效的临时解决方法</a></p><p>撰寫應用程式步驟</p><ol><li>開啟automator( cmd+空白鍵 -&gt; automator )</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnNoR7ZzVLV65n58lSyN8Q.png" /><figcaption>macOS 內建Automator(圖中紅框)</figcaption></figure><p>2.選取應用程式(Application)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDghV-pQ0KIlQUMSk15QzQ.png" /></figure><p>3.在左邊的功能列表裡找到Run Shell Script(可以善用上方搜尋功能)，點兩下即可添加</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sb5xfXyQhjMmgDXB6mR-bA.png" /></figure><p>4.將shell script的內容，改成強制結束輸入法的指令如下(和本文前面提到的指令相同)</p><pre>pgrep -f &quot;/System/Library/Input Methods/TCIM.app/Contents/PlugIn&quot; | xargs kill -HUP</pre><p>如果是簡中輸入法的用戶將指令裡的TCIM.app改成SCIM.app即可</p><p>5.在左邊的功能列表裡找Run Apple Script一樣點兩下加入到腳本內</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcU5ofXa6nXzkpeW-o8mgw.png" /></figure><p>6.將Apple Script的內容改成以下的程式碼</p><pre>tell current application<br>  delay 2<br>  set quitapp to &quot;untitled&quot;<br>  tell application quitapp to quit<br>  return &quot;done&quot;<br>end tell</pre><p>set quit app to “untitled”這行的untitled 可以改成想顯示的應用程式名稱</p><p>例如：</p><pre>tell current application<br>  delay 2<br>  set quitapp to &quot;輸入法必須死&quot;<br>  tell application quitapp to quit<br>  return &quot;done&quot;<br>end tell</pre><p>7.接下來就是儲存這個寫好的應用程式</p><p>檔案(File)-&gt;儲存(Save) 路徑放應用程式(Applications)資料夾的路徑就行了</p><p>注意如果在上一個步驟修改了應用程式的名稱 這一個步驟也要改同樣的名稱</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQAqdGQv6DJIPSiXL4C7cA.png" /></figure><p>8.接下來在應用程式內就可以看得到了，點擊這個應用程式就會執行終止輸入法的指令。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-YaC5cgGJHiwAxh3HcA3Q.png" /></figure><p>以上到這邊就完成了，後續碰到卡頓可以快速的點選應用程式來解決。</p><p>如果不喜歡預設的機器人圖案的話可以再參考以下的方式修改顯示的圖片</p><p>1.先複製(cmd + C)喜歡的圖片(要點開圖片進入preview後再複製)</p><p>2.在應用程式(Application 資料夾中找到剛才創建的app) -&gt; 右鍵 -&gt; get info</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*S2k-hWlT5WuGi0d_bvO5Yw.png" /><figcaption>點選左上icon(紅框處)會有藍色邊框出現</figcaption></figure><p>3.點選icon後貼上(cmd + V)剛才複製的圖片就順利完成了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*lMH6JYRDkIUuBf9xgQTkew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7l1BEcAxL6oXeEFtlfZKKw.png" /></figure><p>心得：</p><p>如果有使用其他自定義app的朋友(e.g. Bettertouch tool)可以用快捷指令來執行應用程式。在參考文章中也有網友使用corntab 來自動化兩個小時執行一次終止輸入法的指令，雖然這個解法可以確保卡頓不發生，不過這樣背景會多一個執行緒一直在跑所以個人不偏好這個解法。</p><p>這個卡頓的問題真的困擾了我很久，每次都是要靠重新開機來解決問題。而且這個不定時炸彈真的會讓人很擔心在趕作業、視訊上課、面試等重要時刻突然發生。直到找到以上這些網路文章才算是解決了這個問題。如果你也有碰到這樣的問題而且讓你感到頭痛的話，可以試試看吃點止痛藥和這次介紹的方法來解決問題。因為我習慣用英文的介面，所以如果裡面一些名詞有翻譯錯誤的話歡迎留言我再將內容修正。</p><p>Reference:</p><ol><li><a href="https://medium.com/@mvpdw06/%E8%A7%A3%E6%B1%BA-mbp-%E4%B8%AD%E6%96%87%E8%BC%B8%E5%85%A5%E6%B3%95%E5%8D%A1%E9%A0%93%E5%95%8F%E9%A1%8C-fa7ae45e1df1">https://medium.com/@mvpdw06/%E8%A7%A3%E6%B1%BA-mbp-%E4%B8%AD%E6%96%87%E8%BC%B8%E5%85%A5%E6%B3%95%E5%8D%A1%E9%A0%93%E5%95%8F%E9%A1%8C-fa7ae45e1df1</a></li><li><a href="https://zhuanlan.zhihu.com/p/625052341?utm_id=0">https://zhuanlan.zhihu.com/p/625052341?utm_id=0</a></li><li><a href="https://www.jianshu.com/p/ec2729d485a8">https://www.jianshu.com/p/ec2729d485a8</a></li><li><a href="https://www.zhihu.com/question/22382193">https://www.zhihu.com/question/22382193</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a215f3b36409" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>