如何将命令行参数传递给 BBEdit 进行测试
我正在编写一个接受命令行参数的脚本。在 Mac OSX 10.6.8 上使用 BBEdit 10.0.1,有没有办法设置 BBEdit“运行”命令,以便它传递一组测试参数?
我的目标是能够设置一个我可以点击的热键,并让它使用我配置的一组参数为我运行脚本。我知道一种方法是直接在脚本本身中编码测试参数,但我想避免这种情况。人们很容易忘记它们的存在并将它们作为更改提交。
我在“#!”中看不到任何方法。对话框本身。也许有一种方法可以编写脚本?
I'm writing a script that takes command line arguments. Using BBEdit 10.0.1 on Mac OSX 10.6.8, is there a way to setup BBEdit "Run" command so that it passes a set of test arguments?
My goal is to be able to setup a hotkey that I can hit and have it run the script for me with a set of arguments I've configured. I know one approach would be to code test arguments directly in the script itself, but I'd like to avoid that. It's too easy to forget they are there and commit them as changes.
I don't see a way in the "#!" dialog box itself. Perhaps there is a way to script it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至 2012 年 1 月 4 日,Bare Bones 的直接回复是:
他们还收到了添加该功能的其他请求。支持人员预计它将在未来的版本中发布。
As of January 4, 2012, the response directly from Bare Bones is:
They have gotten other requests to add the feature. The support person expected it to ship in a future release.