Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on run {input, parameters}
- set ALACFiles to {}
- set otherFiles to {}
- tell application "iTunes"
- repeat with theTrack in tracks of playlist "Exports"
- set filePath to POSIX path of (location of theTrack as alias)
- if kind of theTrack is "Apple Lossless audio file" then
- set ALACFiles to ALACFiles & {filePath}
- else
- set otherFiles to otherFiles & {filePath}
- end if
- end repeat
- end tell
- -- set value of variable "ALACFiles" of front workflow to ALACFiles
- set value of variable "OtherFiles" of front workflow to otherFiles
- display notification ("" & (count of ALACFiles) & " converting / " & (count of otherFiles) & " copying.") subtitle "Export audio files"
- set ffmpegAndDestinationFolder to value of variable "DestinationFolder" of front workflow
- set value of variable "DestinationFolder" of front workflow to {second item of ffmpegAndDestinationFolder}
- return ffmpegAndDestinationFolder & ALACFiles
- end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement