Open Feiju12138 opened 10 months ago
在MacOS系统下,手动将LocalSend设置为启动项后,每当完成LocalSend完成首次自启动,都不会自动隐藏窗口
添加一个设置项,可以在首次启动程序时隐藏窗口
自己再写一个AppleScript脚本用来关闭LocalSend窗口
vim ~/Scripts/关闭LocalSend.scpt
tell application "LocalSend" activate end tell tell application "System Events" click button 1 of window "LocalSend" of application process "LocalSend" of application "System Events" end tell
然后编写一个Shell脚本用来执行这个AppleScript脚本
vim ~/Scripts/关闭LocalSend
osascript ~/Scripts/关闭LocalSend.scpt
将这个Shell脚本添加执行权限
chmod +x ~/Scripts/关闭LocalSend.scpt
将这个~/Scripts/关闭LocalSendShell脚本添加到系统的启动项中 这样每当LocalSend首次启动后,都会有一个脚本自动关闭LocalSend的窗口
~/Scripts/关闭LocalSend
@Feiju12138 Could you please describe your issue in English, that way the whole community can understand.
Is your feature request related to a problem? Please describe.
在MacOS系统下,手动将LocalSend设置为启动项后,每当完成LocalSend完成首次自启动,都不会自动隐藏窗口
Describe the solution you'd like
添加一个设置项,可以在首次启动程序时隐藏窗口
Describe alternatives you've considered
自己再写一个AppleScript脚本用来关闭LocalSend窗口
然后编写一个Shell脚本用来执行这个AppleScript脚本
将这个Shell脚本添加执行权限
将这个
~/Scripts/关闭LocalSend
Shell脚本添加到系统的启动项中 这样每当LocalSend首次启动后,都会有一个脚本自动关闭LocalSend的窗口Additional context