# [メタ情報] # 識別子: 字幕空白詰め_vimeo_auto_generated_captions_vttの修正_exe # システム名: 字幕空白詰め_vimeo_auto_generated_captions_vttの修正 # 技術種別: Misc # 機能名: クイックアクション # 使用言語: AppleScript ShellScript # 状態: 実行用 # [/メタ情報] WEBVTT ワークフローが受け取る現在の項目:ファイルまたはフォルダ 検索対象:すべてのアプリケーション AppleScriptを実行 on run {input, parameters} set filePath to POSIX path of input -- Remove all spaces from the file do shell script "sed -i '' -e 's/ //g' " & quoted form of filePath -- Ensure the arrow has spaces on both sides do shell script "sed -i '' -e 's/-->/ --> /g' " & quoted form of filePath -- Ensure the first line is exactly "WEBVTT" do shell script "sed -i '' -e '1s/.*/WEBVTT/' " & quoted form of filePath return input end run