问题描述
我已经得到了我的AppleScript一个选择文件
。我如何修改标题选择文件
窗口出现。我与及时了解的
,但它不更改标题。
I have got a choose file
in my applescript. How do I change the title of the Choose a File
window that comes up. I am aware of with prompt
, but it doesn't change the title.
编辑: ulvund回答的恐怕与提示的是你能做的最好的的,但是否有任何其他方式来获得选择文件
无AppleScript的?此外,是否有任何黑客?
ulvund answered I'm afraid with prompt is the best you can do, but are there any other ways to get a choose file
without applescript? Also, are there any hacks?
编辑2: Red_Menace回答(下面看),但有没有对如何做到这一点的可可AppleScript的任何好的教程
Edit 2: Red_Menace answered (look below) but are there any good tutorials on how to do this in Cocoa-Applescript?
P.S。看看我的意见。
P.S. Look at my comments.
修改3:
推荐答案
在平原的AppleScript对话框没有这样的选择,但你可以访问使用AppleScriptObjC雪豹和狮子的各种Cocoa方法。在狮子,你可以从AppleScript的编辑器中的模板创建可可的AppleScript小程序,然后使用创建自己的对话框,例如 NSOpenPanel 。
The dialog in plain AppleScript doesn't have that option, but you can access various Cocoa methods in Snow Leopard and Lion using AppleScriptObjC. In Lion, you can create a Cocoa-AppleScript Applet from the template in the AppleScript Editor, then create your own dialog, for example using NSOpenPanel.
这篇关于AppleScript的选择文件标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!