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

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

问题描述

我的苹果脚本中有一个 选择文件.如何更改出现的 Choose a File 窗口的标题.我知道 with prompt,但它不会改变标题.

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 回答了(请看下面),但是否有关于如何在 Cocoa-Applescript 中执行此操作的好的教程?

Edit 2: Red_Menace answered (look below) but are there any good tutorials on how to do this in Cocoa-Applescript?

附言看看我的评论.

编辑 3: 我已经把这个问题放到了另一个问题中.

推荐答案

普通 AppleScript 中的对话框没有该选项,但您可以使用 AppleScriptObjC 在 Snow Leopard 和 Lion 中访问各种 Cocoa 方法.在 Lion 中,您可以从 AppleScript 编辑器中的模板创建 Cocoa-AppleScript Applet,然后创建您自己的对话框,例如使用 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天全站免登陆