![]() ![]() I created a new document in Automator, chose the "Quick Action" document type and the "AppleScript" action with the actual script. It is possible to open MP4 file with almost any player on Windows but on Mac you should use a plug-in or just convert the file to another format. ![]() It is a container that supports all kinds of media such as video, audio, subtitles, 2D and 3D graphics. However, I not know how to work with "audio file in Finder" as input, thanks so much if have your reply Thanks for the modified code. MP4 is an extension defined by MPEG-4 video standard and AAC audio standard. ![]() Thanks, I change the code with "Get Selected Files in Finder" as input to support multi files (on my laptop, MacOS Monterey version 12.5 ) Set convert to do shell script "/usr/local/bin/ffmpeg ' " & theOutputFilePath & ".mp3 " & "' -i ' " & theInputFilePath & "' -codec:a libmp3lame -qscale:a 1 " set theOutput to theOutputFilePath & ".mp3 " end repeat end tell return theOutput Set theOutputFilePath to text item 1 of theInputFilePath Set theInputFilePath to POSIX path of fileAlias " set title to text 1 thru text item -2 of fileName Set AppleScript's text item delimiters to ". Set fileExtension to name extension of fileAlias Convert Youtube to MP3 for free and unlimited. Set fileAlias to fileitem as alias set fileName to name of fileAlias Tell application "Finder " repeat with fileitem in input
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |