-
(Difference between revisions)
Line 3: Line 3: ==Audio Conversion as a Service Menu====Audio Conversion as a Service Menu==[http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/988001944931][http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/988001944931]- [http://lame.sourceforge.net/ LAME Home Page]+ - [[LAME]]+ * Install [[LAME]]- Expand the Lame archive you downloaded.InTerminal,navigate to the resulting folder. Tip: You can type<code>cd </code> andthendrag the finder window right after it and Terminal will automatically reveal thepath. InTerminal, run the following commands:+ * In Automator, create a new Service- <pre>+ ** Get Selected Finder Items- % ./configure+ **<code>on run {input, parameters}- % make+ - % make install+ if input is not {} then- </pre>+ set posix_file to POSIX path of item 1 of input+ if input is not {} then+ tell application "Terminal"+ activate+ set thescript to "/usr/local/bin/lame -V 0 -q 0 \"" & posix_file & "\" "+ do script thescript+ end tell+ end if+ end if+ + return input+ end run</code>+ * Save your workflow as "Convert to MP3"+ * Right-click on audio file in Finder, go to the Services menu and choose your workflow.+ [[category:Automation]][[category:Automation]][[category:WebDev]][[category:WebDev]][[category:Mac]][[category:Mac]]Revision as of 03:03, 12 March 2010
Amazon S3 Snow Leopard Service
Audio Conversion as a Service Menu
- Install LAME
- In Automator, create a new Service
- Get Selected Finder Items
on run {input, parameters}
if input is not {} then set posix_file to POSIX path of item 1 of input if input is not {} then tell application "Terminal" activate set thescript to "/usr/local/bin/lame -V 0 -q 0 \"" & posix_file & "\" " do script thescript end tell end if end if
return input end run
- Save your workflow as "Convert to MP3"
- Right-click on audio file in Finder, go to the Services menu and choose your workflow.
-
Meta