小编Bas*_*e_v的帖子

MacOS Automator + Applescript 用于将 docx 导出为 pdf 的解决方案

在阅读了很多关于此的不同主题并尝试了一堆脚本后,我挠头,但似乎都没有工作。

我想使用 Automator 自动将 Word 2016 的精选 docx 文件转换为 pdf。


使用了以下 Automator 服务:

在此处输入图片说明


使用了以下脚本:

on run {input, parameters}
    tell application id "com.microsoft.Word"
        activate
        open input
        set doc to name of active window
        set theOutputPath to (input & ".pdf")
        save as active document file name theOutputPath file format format PDF
    end tell
end run
Run Code Online (Sandbox Code Playgroud)


这会导致错误:Microsoft Word 出现错误:活动文档不理解“另存为”消息。

macos applescript ms-word automator word-2016

5
推荐指数
1
解决办法
5169
查看次数

Tensorboard/tensorflow 与 s3 logdir -curl 返回错误代码 6

一直在尝试使用大量设置/env-vars/tf-versions,但不起作用..

在我的本地机器上,这是有效的AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=XXX AWS_REGION=eu-west-1 tensorboard --logdir="s3://my-bucket/tflogs/"

在 AWS 实例上,这将抛出:

I tensorflow/core/platform/s3/aws_logging.cc:54] Creating HttpClient with max connections2 and scheme http
I tensorflow/core/platform/s3/aws_logging.cc:54] Initializing CurlHandleContainer with size 2
I tensorflow/core/platform/s3/aws_logging.cc:54] Creating Instance with default EC2MetadataClient and refresh rate 900000
I tensorflow/core/platform/s3/aws_logging.cc:54] Found secret key
I tensorflow/core/platform/s3/aws_logging.cc:54] Initializing CurlHandleContainer with size 25
I tensorflow/core/platform/s3/aws_logging.cc:54] Found secret key
I tensorflow/core/platform/s3/aws_logging.cc:54] Pool grown by 2
I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
E tensorflow/core/platform/s3/aws_logging.cc:60] Curl returned error code 6
W tensorflow/core/platform/s3/aws_logging.cc:57] If …
Run Code Online (Sandbox Code Playgroud)

amazon-s3 tensorflow tensorboard

5
推荐指数
1
解决办法
1560
查看次数