小编Sch*_*Dev的帖子

将进度条添加到AppleScript中"do shell脚本"的对话框中

我有一个我正在使用AppleScript编写的应用程序将圣伯纳德重定向LaunchDaemon移动到当前用户的目录,以便用户可以访问家中的任何网站,但让他们在回到学校之前将其放回原处.这样做的原因是,在学校,iPrism阻止学校不希望你去的任何网站,但是当学生在家时,圣伯纳德LaunchDaemon阻止了相同的网站,我认为没有必要这样做.

无论如何,我想在一个对话框中添加一个进度条,该对话框显示删除应用程序的shell脚本的输入.谁知道怎么做?

(我也想要没有任何按钮display dialog "Removing..." buttons "",而只是有进度条.这可能吗?)

这是代码:

display alert "You may have to restart your computer after using this tool!" buttons {"Ok"} default button 1

set question to display dialog "RMR (Remove My Redirect)

Are you unable to go to a website at home because of that annoying St. Bernard Redirect?

If the answer is Yes, then RMR is your solution! Simply Choose Remove to remove it, and Replace to put it back." buttons {"Remove", "Replace", "Erase …
Run Code Online (Sandbox Code Playgroud)

terminal applescript dialog progress progress-bar

4
推荐指数
1
解决办法
6756
查看次数

标签 统计

applescript ×1

dialog ×1

progress ×1

progress-bar ×1

terminal ×1