首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >缺少applescript中的关键元素,不知道如何修复

缺少applescript中的关键元素,不知道如何修复
EN

Stack Overflow用户
提问于 2013-07-23 16:07:12
回答 1查看 77关注 0票数 1

我正在使用applescript在自动下载备份网站使用网站。原来的方法行不通,所以我联系了sitesucker的创建者。在当前版本中,这个特性出现了问题,所以他给了我一个applescript来做同样的事情。问题:我基本上对applescript一无所知,也不知道如何指定我需要下载的URL。

这是我得到的剧本:

代码语言:javascript
复制
    on run {input, parameters}

    tell application "SiteSucker"
        activate

        -- Create a new document
        set front_document to make new document

        -- Get the download folder
        tell settings of front_document
            set download_folder to download folder as alias
            set download_folder_path to POSIX path of download_folder
        end tell

        -- Download the specified URLs
        repeat with the_url in input
            download the_url
        end repeat

        -- Wait until the download is finished before continuing
        repeat while downloading of front_document
            delay 1
        end repeat

    end tell

    return download_folder_path

end run

我试着联系给我剧本的人,但他们没有回复。我想也许我可以在这些论坛上得到一个更快的答案。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-23 16:18:58

您不需要使用他们给您的applescript。

将脚本放入新的“”操作(覆盖默认内容)

并在上面添加一个“Get指定的URLS”自动操作。

将您的Urls添加到“获取指定的URLS”自动操作中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17815399

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档