Word 2008宏到SVN ADD当前文档

发布于 2024-07-10 02:53:59 字数 150 浏览 8 评论 0原文

我想在当前 Word 2008 文档上调用“svn add”。 我有一个 shell 脚本,稍后会通过 svn 提交它。 我不希望 shell 脚本不加区别地 svn add 文件,因此我希望能够通过与宏或 appleScript 绑定的 Word 2008 中的按钮来完成此操作。

I want to invoke "svn add" on the current Word 2008 document. I've got a shell script that will svn commit it later. I don't want that shell script to indiscriminately svn add files so I'd like to be able to do it from a button in Word 2008 tied to a macro or appleScript.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅唱ヾ落雨殇 2024-07-17 02:53:59

由于 Word 2008 没有 VBA,因此您需要使用 AppleScript。

有什么阻止您使用“do shell script”来完成您需要的操作吗?

您需要 svn add 的文档路径 - 请参阅 文档类

Since Word 2008 doesn't have VBA, you'll need to use AppleScript.

Is there anything stopping you from using "do shell script" to do what you need?

You'll need the document path for svn add - see full name property in the document class

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文