AppleScript的选择文件标题 [英] applescript choose file title

查看:445
本文介绍了AppleScript的选择文件标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到了我的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小程序,然后使用创建自己的对话框,例如<一个href=\"http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html\"相对=nofollow> 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的选择文件标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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