Afconvert with find and exec.

So I'm trying to make a recursive command to find and convert all .mp3 files to .m4a.
This is what I have this far for a few tries:
afconvert -d 'aac ' -f 'm4af' *.mp3 new1.m4v
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' *.mp3 *.mv4 {} \;
I know *.mv4 may not be the best wildcard to use.
Thanks much
Josh

Let's talk about your wildcard expansion. In your first attempt -
afconvert -d 'aac ' -f 'm4af' *.mp3 new1.m4v
The shell attempts to expand every file that ends in .mp3 into the arguments of the command. Something like-
afconvert -d 'aac ' -f 'm4af' file1.mp3 file2.mp3 file3.mp3 new1.m4v
According to the sparse manual and overly verbose help option the command accepts one source file and an optional outfile name.
In your second attempt, you are attempting to expand file names within find's exec function. This function is not a shell so wildcards are meaningless.
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' *.mp3 *.mv4 {} \;
The enclosing parenthesis "{}" contain the file name. You do not need to have a outfile name. afconvert will automatically name the file with the m4a extension. This should work- Of course, Use at Your Own Risk.
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' {} \;

Similar Messages

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Dumb Q: problem with Find And Replace window in Flash 8

    Dear Flash Group,
    apologies if this is trivial, it's my first day using Flash.
    I downloaded a Flash project from
    http://www.flashorb.com/articles/benchmark_files/flash-benchmark.zip.
    This
    flash calls into a web service at localhost:8080. I used the
    'Find and
    Replace' window within Flash Professional 8 to locate the
    string
    'localhost:8080' and replaced it with plain 'localhost'.
    However, when I 'Debug the Movie' (Ctrl-Shift-Enter), it
    still tries to
    access port 8080! Obsiously, my replace command did not do
    what I thought it
    would do. I opened the FLA file in a binary editor, and saw 4
    more
    references to 8080, One if them in 'Properties' of a
    WebServicesConnector,
    but I cannot figure out how to find the other occurences.
    Checking on google, I see lots of people having similar
    problems, but no
    solutions
    Any ideas?
    Regards, /george
    PS. What do you guys do for code completion - is there a tool
    that would
    bring Flash on par with an professional IDE?

    george,
    > when I 'Debug the Movie' (Ctrl-Shift-Enter), it still
    > tries to access port 8080! Obsiously, my replace
    > command did not do what I thought it would do.
    Agreed.
    > I opened the FLA file in a binary editor, and saw 4
    > more references to 8080, One if them in 'Properties'
    > of a WebServicesConnector, but I cannot figure out
    > how to find the other occurences.
    Might they be the result of that WebServicesConnector
    reference?
    > Checking on google, I see lots of people having
    > similar problems, but no solutions
    That's really odd, actually. I'm on these boards every day,
    and I've
    never heard of this issue. I don't *think* the Find/Replace
    dialog visits
    panel contents, such as the Component Inspector panel, but I
    wouldn't swear
    to that.
    > What do you guys do for code completion - is there
    > a tool that would bring Flash on par with an
    professional IDE?
    Well, Flash is a professional IDE, of course. By definition,
    if you pay
    for something, you have acquired a professional product or
    service. I know
    what you mean, though. Flash itself rocks, but the Actions
    panel can be
    glaringly weak. Personally, I use SE|PY to edit ActionScript.
    http://www.sephiroth.it/python/sepy.php
    Sorry I can't speak to your other issue. :-/
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Possible bug in inDesign CS5 with find and change

    This could be a problem with my script or it may be a bug, not sure.
    The script is used for finding a double space in a fragment of text and changing it to single space.
    It works only once when it is executed.
    To make it work again you have to close and reopen inDesign.
    Here's the code:
    app.findTextPreferences.findWhat = "  ";
    app.changeTextPreferences.changeTo = " ";
    app.documents[0].changeText();

    This one worked, Harbs also works but I think I'll go the unicode grep route for find and change on this one.
    I like the use of the positive lookbehind GREP character. (?<=) 
    thank you

  • Need Help With find and Replace

    I am a little green to this all. I am trying to find and
    replace a word inside the edit region and Dreamweaver will not
    change it, because it says its inside a locked region, but its a
    editable region?
    I have about 900 pages I need to make this change on and was
    relying on the find and replace tool to do that. I tried differn't
    advanced options, nothing seams to change it. I am using cs3.
    Thanks for any help

    Using Templates with a 900 page site is a crime against
    humanity. You reach
    the optimal size for Templates between about 50 and 100.
    The error you are getting suggests that there are coding
    errors on the page
    (perhaps even unrelated to ANY DW Template markup). We'd need
    to see the
    page to make progress with what that might be, as Alan says.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RyanWaters" <[email protected]> wrote in
    message
    news:ggs7fq$gnq$[email protected]..
    >I am a little green to this all. I am trying to find and
    replace a word
    >inside
    > the edit region and Dreamweaver will not change it,
    because it says its
    > inside
    > a locked region, but its a editable region?
    > I have about 900 pages I need to make this change on and
    was relying on
    > the
    > find and replace tool to do that. I tried differn't
    advanced options,
    > nothing
    > seams to change it. I am using cs3. Thanks for any help
    >

  • Help with find and replace regex

    Hello.
    I have a page listing about 50 services that have named
    anchors to a
    glossary page. Something like this:
    <a href="/glossary.html#Blogging">Blogging</a>
    And what I need is to have the glossary open in a new window.
    So how
    do I write a regex that will give me:
    <a href="/glossary.html#Blogging"
    taget="blank">Blogging</a>
    Thanks for any help
    Lance

    Thanks Brendon.
    It's Regular Expression; an optioin in the find and replace
    dialog.
    I've got to replace 50 of these anchors, each different.
    <a href="/glossary.html#Blogging">Blogging</a>
    <a href="/glossary.html#yadayada">yadayada</a>
    etc.
    to make them each open in a new window.
    <a href="/glossary.html#Blogging"
    taget="blank">Blogging</a>
    L.
    On Thu, 18 Oct 2007 14:40:46 +1300, "Brendon"
    <[email protected]>
    wrote:
    >Whats a regex?
    >Why not just do a Find and Replace? Specify the current
    local site, and
    >voila. Make sure you spell target correctly though ;-)
    >
    >
    ><@networkologist@@gmail.com> wrote in message
    >news:[email protected]..
    >> Hello.
    >>
    >> I have a page listing about 50 services that have
    named anchors to a
    >> glossary page. Something like this:
    >>
    >> <a
    href="/glossary.html#Blogging">Blogging</a>
    >>
    >> And what I need is to have the glossary open in a
    new window. So how
    >> do I write a regex that will give me:
    >>
    >> <a href="/glossary.html#Blogging"
    taget="blank">Blogging</a>
    >>
    >> Thanks for any help
    >>
    >>
    >>
    >> Lance
    >

  • Problem with Finder and Menu Fonts (uppercase A)

    Hello --
    I'm having a problem with fonts. All the characters that appear under icons in the Finder or in the menu for any application appear as uppercase As with boxes around them. There appears to be one uppercase A for each character that should be there. If I click-pause-click to edit the filename in the Finder, the text appears normal during the duration of the change, and then reverts to uppercase A with a box around it again. All other operation of the computer is normal.
    I was watching and downloading video files in iTunes when the problem appeared. When I pressed ESC to exit full-screen mode, the Finder said that my start-up disk was almost full, and I saw the font problem. Upon investigating, I discovered that my start-up disk was completely full (and the download had failed), so the first thing I did was move some video files to an external drive, which freed about 5 GB.
    Since freeing the space, I've tried the following to fix it, in this order:
    1. booted from Tiger CD to run Repair Disk from Disk Utility
    2. rebooted from the boot hard drive to run Repair Disk Permissions from Disk Utility
    3. run through Disk Warrior
    4. created a test admin user and logged in as that user
    5. removed font cache files using terminal
    6. booted in safe mode, logged in as myself, and then rebooted normally
    None of these actions has had any effect. The computer is still operating normally, except for the characters that don't display correctly.
    I'm running 10.4.6 on a Titanium Powerbook 500 MHz with 512MB RAM. A few months ago, I replaced the internal hard drive with an 80GB Seagate.
    Tibook 500   Mac OS X (10.4.6)  

    Hi again, zoobieboots —
    I appreciate your initiating a new thread. Your post here helps to make the situation much clearer than in bmewolf's thread — particularly in terms of what you've already tried. Thanks again.
    A few initial thoughts —
        (a) As I was trying to suggest previously, you're apparently operating (after moving some files to an external drive) with ~6-10% (?) free disk space. Particularly given that you were working with large video files when this appeared, File fragmentation would be expected. While I haven't heard of this particular symptom resulting from fragmentation, that would be a concern to me — particularly since this immediately preceded the problematic behavior.
    I've read some good reports about iDefrag, but haven't used it myself. A demo version is apparently available for HDs < 100GB. But you'd presumably need to free significantly more space first (you haven't actually said whether 5GB or ?? is the total available now). Having never experienced severe fragmentation, I don't fully understand its consequences — but another participant may be able to explain this.
        <b>(b) You don't mention trying to troubleshoot potentially corrupt or incompatible fonts (or font caches), also as outlined in the other thread. As I suggested there, The X Lab's "undoing Font Book" FAQ is a useful resource in this.
        (c) Although I agree it may be an unsatisfying "solution," an Archive & Install did work for bmewolf in the case that you've indicated matches yours closely.
    I hope one of these suggestions is helpful. Please post back to discuss your progress.
    Regards,
    Dean

  • Problem with Finder and Samba

    I have done some looking around and apparently this has been an issue for others. I have not noticed it until Snow Leopard. Basically when trying to copy files to a samba server share I will get the error:
    The Finder can’t complete the operation because some data in “” can’t be read or written.
    (Error code -36)
    I have tried copying this same file in the terminal and it works fine. From what I was reading it has to do with the way finder negotiates the encryption to the samba server. I have never seen this until now but when thought I had was to try to dis-join from the Active Directory domain I'm connected to. I saw the apple document to allow clear text passwords but I really don't see that as a solution clear text passwords are not good enough.
    It seems that this is related to active directory membership.

    I have confirmed I can copy the same file using the terminal to /Volumes/ShareName.
    I dis-joined from the domain logged on the local account and copied the same file connected as the same user to the file server and it worked perfectly. The only people that have had issues since Snow Leopard are the ones that have their Mac joined to the domain. We didn't see this issue with Leopard.

  • IBook G4 slowdown with find and sort

    My wife's iBook frequently decides to slow down to a mere crawl, and it sounds like the hard drive (I think) is working steadily during these spells. Looking at the processes w/ top, find seems to be sucking up heaps of CPU time. I tried killing the find process, at which point sort and then makewhatis took over and continued beating on the machine. Any idea where these commands are issuing from and how to avoid them or at least reschedule them? (This often happens in the middle of the work day.) Perhaps this is a spotlight issue, since it started around the time we updated to 10.4. But I've noticed no such issues with my powerbook since updating to 10.4.
    Thanks for any suggestions.
    iBook G4   Mac OS X (10.4.4)  

    Errr...  A quick reality check is called for. If you make files visible to the finder then they are no longer invisible files, so ignoring invisible files won't help you one bit. your best bet is to do a manual check for a file that starts with a "." (which would normally be invisible):
    tell application "Finder"
              set thisFolder to folder "Pictures" of home
              set sortedFiles to (sort (files of thisFolder) by modification date) as alias list
              set newestFile to last item of sortedFiles
              if name of newestFile starts with "." then
                        set newestFile to item -2 of sortedFiles
              end if
    end tell

  • Script with find and ex

    i want to run a utility from the terminal for all the files in a directory. The utility has an input file name and output file name as parameters. The filenames have spaces and the utility is not taking the names. Can someone help me with a script where i can do the following
    find . -name *.opus
    for each of the files found above I need to run this command
    opusdec "name of the file form above find" "name of the file from above find with an extention wav"
    I wrote this script but it is not working
    ListOfFiles=`find .  -name *.opus
    for i in $ListOfFiles
    do  
        optfile="${i}.wav"
        ./opusdec $i outfile
    done
    thanks for your help.

    Looks like you're missing a backtick
         Change ListOfFiles=`find .  -name *.opus to ListOfFiles=`find .  -name *.opus`
    $() is preferred.  Try
         ListOfFiles=$(find .  -name *.opus)

  • Problems with finder and mail. Lion no mountain lion. Sorry HELP!

    I came through here as cannot open in Lion.
    When down loaded up dates, had many problems in lion 10.7.5   
    when up loading photos and the drop down menure in finder opens, To chose file , When clicking on file another opens,
    When exporting same problem , click on folder and another folder opens , I have to go through this again to get in the right folder.
    i also have mail issures. and up loading issus that no one ells ssem to have that dont use mac.
    When up loading to pixoto. the up loads on large files are all triped colours.
    I enterd the canon marathon, dead line 9pm.. I had so much stress as their up loader would not start. i had to send e mail.
    E mails :  I have to clck view and tick view by date every time now, Its unstable , never stays the same.
    Cannot enlarge enough to read the mail Got new galses but the enlarge only 3 steps. Same for the desk top. Un user friendly for shot sighted people.
    please help resolve this , Cost my an over draft to get this mad book pro.

    GMail works just fine in Mail 6 here. In what way is it not working there? As to your Canon scanner, that is a Canon issue. If Canon has opted not to update their software, you can remove it and try scanning directly from Image Capture instead.
    Regarding downgrading, unless you have a backup made right before installing ML, it's not an easy task. You would have to erase the hard drive, reinstall the previous system, reinstall all your apps and then import data from somewhere. And some data formats have changed - Mail, for example, has had slight changes to its mailboxes in both the last two major system upgrades. The only way to import messages that aren't still stored on the server into an older version of Mail is one at a time.

  • Problem with Runtime and exec()

    I have been trying for some time and having no luck yet.
    I think i better put the code here to make it clear.
    public static void main(String[] args) throws Exception
    try {
    String line;
    Runtime rt = Runtime.getRuntime();
    String[] cmd = {
    "cmd.exe","/c", "c://PROGRA~1//Java//jdk1.5.0_05//bin//javac.exe", "c://Temp//Test.java"
    Process p = rt.exec(cmd);
    int exitVal = p.waitFor();
    System.out.println("Process exitValue: " + exitVal);
    System.out.println("Is it compiled");
    catch(IOException e) {
    System.err.println("Error on exec() method");
    e.printStackTrace();
    I am getting 1 as an exitVal, which is an erro obviously.
    Does anyone knows what could be going wrong there?

    Well, the file is just a .java class. It is not a package - it is just one class. And in nofrmal cicumstances i would compile and run that same class name. So i can not include any package.
    To be clear i would put the lines i have added here:
    public static void main(String args[]) throws Exception
            try {
                String line;
                Runtime rt = Runtime.getRuntime();
                String[] cmd = {
                    "cmd.exe","/c", "c://progra~1//Java//jdk1.5.0_05//bin//javac.exe", "c://Temp//Test1//MainTest.java"
                 String[] cmd2 = {
                    "cmd.exe","/c", "c://progra~1//Java//jdk1.5.0_05//bin//java.exe", "c://Temp//Test1//MainTest"
                Process p = rt.exec(cmd);
                Runtime rt2 = Runtime.getRuntime();
                p = rt2.exec(cmd2);
                BufferedReader input = new BufferedReader(new InputStreamReader(p.getErrorStream()));
                String temp = "";
                while((temp = input.readLine()) != null) {
                    System.out.println(temp);
                input.close();I just copyied the method and sorry for not using code tag earlier.

  • Help with Finder and Home Directory

    I know this sounds daft but I wish to create a new folder under the home folder on my system but the house icon within finder has a lock on it. I have tried applying root access to this account and accessing finder again but to no avail. Therefore I assume I need to do something else to be able achieve this?

    It's supposed to have a lock on it, requiring an admin user password to unlock. There's no reason to use root access. Click on the lock, enter your admin password, and set the settings as: user w/R&W, staff or admin w/R only, and everyone w/read only. That should allow you to create a folder within that account.

  • Find and replace a table style

    I have about 10  table styles in a document and I want to replace all of them with the #1 table style. Can this be done with Find and Replace?

    You'll need to do this for each of the Table formats that need to be replaced.
    Let's assume the desired format is "Format A" (a default FM style), and one of the formats to be changed is "Specs 2".
    Click in any instance of a Specs 2 table.
    In the Table Tag field, pull down and click on [Format A].
    Click Commands > Global Update Options:
    (*) All Properties
    (*) All Tagged [Specs 2]
    [Update]
    If it works properly, you'll get a dialog:
    OK to change all Format B tags to Format A?
    [OK]
    Additional global updates may be required to clean up any overrides.
    Trying this on FM7 at home, it didn't always work. I don't know if newer versions are more stable. Personally, I never do it this way (probably because of prior experience), and I usually just hack the MIF.

  • Find and remove duplicates advice?

    hi all,
    would it be possible to get a little advice and some feedback on others' experience with finding and removing duplicates from the aperture database?
    i am doing this now for scans, pdf's, images and other data on my mac book pro and on my mac pro and it would be helpful for me to know what is possible for me to get done with the aperture database.
    TIA

    I haven't used it  myself but  Duplicate Annihilator it is mentioned here often as a solution for this.

Maybe you are looking for

  • Error while creating new user in Oracle 11i EBS

    I am getting following error while creating new user. How solve this issue? "Unable to load java class % specified profile option SIGNON_PASSWORD_CUSTOM. Please verify that the class exists and that it implements the java interface oracle.apps.fnd.se

  • Corrupt file error while writting a file in compress mode

    Hello, I have a scenario where i am writting data in a file in appending mode with filter 'compress' addition using open dataset, on Al11 for the first set of records it works fine but if this file is accessed again for writting data in next select s

  • Handling carriage returns (enter)

    I have an application with several pages. If the user pushes the carriage return (enter) on many of the pages, the application goes back to the login page rather than activating a button on the page. What is the best way to trap and ignore carriage r

  • Where is Web server located?

    Dear all, I would like to add some functionality to web pages generated in E-Business Suite module. The problem is I can't find where to put some modified pages or even just find the existing ones! Any ideas? Thanx in advance

  • Why I can't install Mac OS X.4?

    hello! I have PowerPC G4 867 Mgz with 384 MB DDR SDRAM and I'd like to know why I can't install de Mac OS 10.4? When I click the installer, the computer shuts down and reestart asking for a language. Then I choose English and the installer say prepar