# Mac系统的双指缩放总是失灵，顺便安利AppleScript

* 抖音：<https://v.douyin.com/D27qY9N/>
* B站： <https://www.bilibili.com/video/BV14h4y1W7y8/>

> **alfred插件：**\
> <https://github.com/sunzsh/favoritesWorkflow4Alfred/blob/main/resetZoom.alfredworkflow>

苹果的Mac系统

长期以来一直有个BUG没有解决

不知道大家有没有碰到过哈

就是这个双指缩放

有时候无缘无故就不灵了

我现在是可以的啊

(有时候它就不好使)

那之前我碰到这个问题都是打开设置

然后呢找到里边这个触控板

强制的把这个放大或缩小关闭

再打开它就可以了（有时候需要多试几次）

后来呢

我发现可以用alfred的配合applescript

写个脚本

就像这样我起个名叫fixZoom啊

它就会替我自动操作它

神奇的地方就是它可以找到

任何一个软件上的任何一个按钮

去点击大家看这样就可以了

然后呢我还是把这个插件放到github上

在这里resetZoom

如果大家用的是Mac系统

我强烈推荐大家研究一下这apple script

啊举个例子

像Chrome浏览器它就预留了一些接口

比方说我就可以

让某一个tab页去执行JavaScript

大家看啊它就弹出alert(1)了

这个就是我在这执行的JavaScript代码


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/mac-xi-tong-de-shuang-zhi-suo-fang-zong-shi-shi-ling-shun-bian-an-li-applescript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
