如何将文件作为文档批量添加到 OSX Lion Server Wiki 3

发布于 2024-12-27 01:42:13 字数 405 浏览 2 评论 0原文

我们在 AFP 共享上有 000 个文件,由 4 或 5 人使用。该共享位于 OSX 10.7 服务器上。

用户没有尝试进行版本控制或重复数据删除。我想将每个文档保存在单独的 wiki 页面中,并使用 Lion Server 附带的 Wiki 的文档管理功能来跟踪每个文档的更改。 我正在寻找一种脚本化的方法来:

  1. 选择共享文件夹中的每个文档
  2. 创建一个 wiki 页面作为“新文件”
  3. 将文档上传到页面
  4. 使用文档路径标记页面(以便用户进行搜索

)是 collabd 服务的一部分,该服务是一系列 ruby​​ 程序。

我可以看到脚本可以在 ruby​​ 中完成,也可以使用 URL 访问脚本作为 applescript 完成。我正在寻找可以调整的示例代码。

We have 000s of files on an AFP share, used by 4 or 5 people. The share is on an OSX 10.7 server.

There is no attempt at version control or de-duplication by the users. I would like to hold each document in a seperate wiki page and use the document management features of the Wiki that comes with Lion Server to track changes against each document.
I am looking for a scripted way to:

  1. select each document in the shared folder
  2. create a wiki page as a "New File"
  3. upload the document to the page
  4. tag the page with the path of the document (to enable searching by users)

The Wiki is part of the collabd services which are a series of ruby programs.

I can see that the scripting could be done in ruby or as applescript using URL access scripting. I'm looking for sample code that I can adapt.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文