要通过命令行显示的对话框的话就用 $ osascript File.scpt
然而,进度条特征不限制于一个对话窗口,因为它适应于当前的应用程序,例如一个Finder窗口,其中进度更新显示在窗口的底部。 File.scpt看起来像这样。 set numUpdates to 100
set progress total steps to numUpdates
set progress comp
我已经关闭所有应用一个AppleScript: tell application "System Events" to set quitapps to name of every application process whose visible is true and name is not "Finder"
repeat with closeall in quitapps
说我有一个类似的子路径一堆文件夹: Folder 1
Do
Re
Mi
<Files>
Folder 2
Do
Re
Mi
<Different Files>
我知道我可以使用tell application Finder to open "Macintosh HD:Users: ...打开文件夹。有什么
的错误是 “桌面:_XNB_Extract:” tell application "Finder"
set x to path to desktop
make new folder at x with properties {name:"_XNB_Extract"}
set y to path to "desktop:_XNB_Extract:"
make
我想修剪AppleScript中返回的字符串。这是我打包的应用程序中的脚本目录。其想法是让此应用程序移动,因为旧应用程序依靠静态目录在其应用程序包中包含的另一个应用程序Spore_origin.app中运行脚本。下面的代码: to run
set current_path to POSIX path of (path to me) as string
tell applica