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

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

问题描述

我必须写一个小的脚本来部署我们的应用程序的补丁。该补丁
将取代一对情侣在application.I文件的决定depploy使用AppleScript补丁。要复制的文件是相当大的,这需要一些时间的文件被复制。我想知道如果有什么办法,我可以得到一个对话框,它不会阻止脚本的执行,这样我可以显示一些消息像在施加补丁更新..等等,然后关闭病房后,对话​​框

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

推荐答案

有一个脚本此外秉公叫糖果(oldy但伪善),有一个显示进度命令。在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.

修改
哦,开溜,那是只为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天全站免登陆