Applescript中的非阻塞对话框 [英] Non-blocking Dialog box in Applescript

查看:283
本文介绍了Applescript中的非阻塞对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须编写一个小脚本来为我们的应用程序部署补丁。补丁
将替换应用程序中的几个文件。我决定使用Applescript来使用补丁。要复制的文件相当大,需要一些时间才能复制文件。我想知道是否有任何方式可以得到一个不阻止脚本执行的对话框,以便在应用修补程序时可以显示一些消息,如Updating ..等,然后在病房后关闭对话框

I have to write a small script to deploy a patch for our Application. The patch will replace a couple of files in the application.I decided to depploy the patch using Applescript. The files to be copied are quite large and it takes some time for the files to be copied. I wanted to know if there is any way I can get a dialog box which doesn't block the execution of the script so that I can display some message like Updating.. etc while the patch is applied and then close the dialog box after wards.

感谢
Shivaprasad

Thanks Shivaprasad

推荐答案

另外还有一个具有显示进度命令的Akua Sweets(oldy but goody)。在osaxen.com获取。它位于页面顶部的最受欢迎部分。

There's a scripting addition called Akua Sweets (oldy but goody) that has a display progress command. Get it at osaxen.com. it's in the 'most popular' section at the top of the page.

编辑
哦,bugger,只适用于OS9 。这一天真的很有用,我记得很多(当然,这些日子都需要更长的时间,所以进度条更需要)。

edit Oh, bugger, that's only for OS9. It was really useful back in the day, I remember using it a lot (of course everything took a lot longer in those days so progress bars were more in demand).

另一个编辑
你有我的灵感,有几个脚本我使用需要进度条,所以我去寻找并发现这个脚本添加在 http://osaxen.com/files/extrasuites1.1.html

再次
这是一个基本的教程,了解如何在界面构建器中执行此操作。我认为这可能是正确的方法。

and again here's a basic tutorial for how to do it in interface builder. I think that's probably the right way to do it.

这篇关于Applescript中的非阻塞对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆