AppleScript名:指定のムービーファイルのエクスポート可能な形式一覧を取得する |
— Created 2016-10-24 by Shane Stanley use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AVFoundation" set posixPath to POSIX path of (choose file with prompt "Choose an Movie file:") set theURL to current application’s |NSURL|’s fileURLWithPath:posixPath set theAsset to current application’s AVAsset’s assetWithURL:theURL set allowedPresets to (current application’s AVAssetExportSession’s exportPresetsCompatibleWithAsset:theAsset) as list –> {"AVAssetExportPreset1920x1080", "AVAssetExportPresetLowQuality", "AVAssetExportPresetAppleM4V720pHD", "AVAssetExportPresetAppleM4VAppleTV", "AVAssetExportPresetAppleM4A", "AVAssetExportPreset640x480", "AVAssetExportPresetAppleProRes422LPCM", "AVAssetExportPreset3840x2160", "AVAssetExportPresetAppleM4VWiFi", "AVAssetExportPresetHighestQuality", "AVAssetExportPresetAppleM4VCellular", "AVAssetExportPreset1280x720", "AVAssetExportPresetMediumQuality", "AVAssetExportPresetAppleM4V1080pHD", "AVAssetExportPresetAppleM4V480pSD", "AVAssetExportPreset960x540", "AVAssetExportPresetAppleM4ViPod"} |
More from my site
(Visited 46 times, 1 visits today)