这些脚本旨在作为示例,展示在完成传输后可以自动化的其他任务。大多数脚本也可以独立使用。
此脚本处理单个传输日志并将其合并到一个传输报告 (CSV) 中。

此脚本可以单独使用(使用 .app),也可以与 OffShoot 的File Copy Completed 事件一起使用。
此 AppleScript 会将 OffShoot 创建的传输日志文件复制到目标上的源文件夹中。

将脚本添加到 OffShoot Settings > Scripting 选项卡中的 File Copy Completed 事件。
此 AppleScript 将使用 OffShoot 传输日志中的信息将 FoolCat PDF 移动到目标文件夹。此脚本仅适用于通过 OffShoot Foolcat 集成创建的报表。

创建 FoolCat 报告后,运行 AppleScript 并将其指向 OffShoot Transfer Logs 文件夹。
此 AppleScript 使用 OffShoot 的 Disk Added 事件来标识 OffShoot 应用程序的启动,并通过 OffShoot API 设置一个或多个目标。
set theAPItoken to ""
set destinations to { "" } -- e.g { "/Volumes/T1", "/Volumes/T2" }
Settings > Scripting 窗口的 Disk Added 事件中。destinations 中指定的目标路径。禁用 OffShoot 的 Auto Source 并记住 Destination 设置,可以获得“更简洁”的应用程序启动体验。
此 Applescript 使用 OffShoot 的 Disk Added 事件来标识 OffShoot 应用程序的启动,并通过 OffShoot API 设置一个或多个首选项。
set theAPItoken to ""
set settings to ¬
{auto_eject:"0"} & ¬
{auto_source_recents_enabled:"0"} & ¬
{auto_destination_enabled:"0"} & ¬
{auto_source_on_name_enabled:"0"} & ¬
{auto_source_on_name:""} & ¬
{queue_mode:"0"} & ¬
{checkpoint_enabled:"0"} & ¬
{logs_enabled:"1"} & ¬
{ignore_files:""} & ¬
{rename_files:""} & ¬
{create_folders:""}
Settings > Scripting选项卡的 Disk Added 事件中。 settings此 AppleScript 使用 OffShoot 的 Disk Added 事件通过 OffShoot API 自动启动传输。
set theExpectedVolumeName to {"UNTITLED", "CANON"}
set theExpectedVolumeParts to {"A_", "B_"} -- will check if volume name STARTSWITH 'A' and CONTAINS '_'
set theDestinationPath to ""
set theLabel to ""
set theFolderFormat to "${DISKTITLE}"
将脚本添加到OffShoot Settings > Scripting 选项卡的 Disk Added 事件中。
当磁盘被添加到 Offshoot 时,脚本将检查 Volume name。
theExpectedVolumeName ,则磁盘将设置为 Source 并传输到 theDestinationPaththeExpectedVolumeParts和theExpectedVolumeParts的第一个字符开头,则如果卷名称包含磁盘的最后一个字符,则将其设置为 Source 并传输到theDestinationPath。当您在 OffShoot > Settings > General 中禁用 OffShoot 的自动源和记住目标设置时,此脚本效果最佳。
此 AppleScript 将删除 OffShoot 在传输后创建的 .mhl 文件。只有在转移成功后,才会删除 MHL。
Settings > Scripting 选项卡中的 File Copy Completed 事件。此脚本向 Slack Webhook 发送消息 (https://api.slack.com/incoming-webhooks)
set slackWebhookPath to ""
set theChannel to ""
set theUserName to "Hedge File Copy Completed"
set theEmoji to ":bell:"
set theText to ""
Settings > Scripting 选项卡中的 File Copy Completed 事件。此脚本通过 Apple Mail 应用程序发送电子邮件。
set recipientName to "Jeroen de Jong"
set recipientAddress to "jeroen@hedge.video"
Settings > Scripting 选项卡中的 File Copy Completed 事件。此脚本专为 ZCAM S1 360° VR 摄像机制作。它有 4 个镜头,可在 4 张单独的卡上录制。为了能够在 NLE 中拼接剪辑,需要将它们重新组织为文件夹结构,每个镜头都有一个单独的文件夹。
剪辑命名约定:ZCAM2300_0001_201811251455
ZCAM= 品牌 2300= 卷0001= 镜201811251455= 时间戳 此脚本将所有镜头(0001 到 0004)中的所有剪辑重新组织到名为 [timestamp]_[zcam-reel] 的文件夹中。它可以单独使用,也可以与 OffShoot 的 File Copy Completed 事件一起使用。
使用 OffShoot
Settings > Scripting 选项卡中的 File Copy Completed 事件。无 OffShoot
如果需要,请在脚本中编辑以下参数:
set createStitchFolderWithName to "_ready for stitching" -- leave empty when there should be no folder made
set showStartConfirmationInHedge to false -- when running from Hedge show a confirmation popup before starting
set customStitchFolderLocation to true -- when running stand alone shows a location picker, otherwise its the same as folder to scan
set showProgressNotifications to true -- not sure when you would ever set this to false :-)
在每次成功的 OffShoot 传输后启动级联副本。
cascadeDestinationset cascadeDestination to "/Volumes/GDRIVE-12TB"
set showAlert to true
Settings > Scripting 选项卡中的 File Copy Completed 事件。showAlert 为 false 来隐藏警告。不支持没有 Label 的源集合,也不支持 OffShoot 的 Organize 功能。