Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

贡献个mac的applescript脚本,实现自动点击试用按钮 #28

Description

@anjia0532

先分配权限

chmod 777 ./reset_navicat.sh

property btnTitle : "试用"
try
	set rr to do shell script "./reset_navicat.sh"
end try

tell application "/Applications/Navicat Premium.app" to activate

tell application "System Events"
	tell application process "Navicat Premium"
		click button btnTitle of window 1
		delay 1
	end tell
end tell

保存为 navicat.scptreset_navicat.sh 同目录

osascript navicat.scpt

会提示获取辅助功能权限,去系统里允许就行了。

再次执行

osascript navicat.scpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions