OSXのフリーソフト紹介、基本的な使い方を解説。
| PAGE-SELECT | NEXT ≫

(*
指定フォルダ内のwmv/wmaファイルから、.asxメタファイルまたはQuickTimeムービーを作成して連続再生できるようにします。
(QuickTimeムービーの作成には、Flip4Mac WMV Componentが必要です)
*)
--ダブルクリックで(又,メニューから)起動したとき,"ムービーファイル" を含むフォルダを選択させる
on run
choose folder with prompt "連結するムービーファイルのみを含むフォルダを指定"
set target_Folder to result
generate(target_Folder)
end run
--フォルダをドラッグ&ドロップしたとき
on generate(target_Folder)
try
tell application "Finder"
set target_File_List to every file of folder target_Folder whose name extension is in {"mov", "mp4", "m4v", "wmv", "wma"}
end tell
display dialog "連結 ムービーを作成します" buttons {"Cancel", "OK"} default button 2 giving up after 2 --& return & "( Flip4Mac WMV コンポーネントが必要です)"
join_Movie(target_File_List)
end try
end generate
on join_Movie(target_File_List)
tell application "QuickTime Player"
activate
try
set show movie info window to false --情報ウィンドを閉じる--誤作動防止
end try
make new document --新規ムービー(書類)を作成
set new_Movie to name of document 1 ----新規ムービーの仮の名前--通常「名称未設定」になっている
repeat with Chop_Movie in target_File_List
with timeout of 600 seconds
open Chop_Movie as alias
set Chop_Movie_Name to name of Chop_Movie
tell document Chop_Movie_Name
select all
copy
end tell
close document Chop_Movie_Name
tell document new_Movie
paste
select none
end tell
end timeout
end repeat
tell document new_Movie
rewind
end tell
set show movie info window to true --情報ウィンドを開く
beep 2
display dialog "できあがったムービーを保存しますか?" buttons {"キャンセル", "保存"} default button 2
if button returned of result is "保存" then save document 1
end tell
end join_MovieこのAppleScriptをスクリプトエディタで開く





| PAGE-SELECT | NEXT ≫