Automator Action "Import Audio Files" error message

Discussion in 'Mac OS X Lion (10.7)' started by cmisener4, Jul 25, 2011.

  1. cmisener4 macrumors newbie

    Joined:
    Jan 29, 2008
    Location:
    Elkhart, Indiana
    #1
    I use this automator action daily when it is activated via an alarm time in iCal. It is the 3rd workflow run in a series of 7 worlflows to create audio files while I'm at work (I record XM programming for use later on my iPod). Since I upgraded to OSX Lion yesterday, I'm getting a new error message I've never seen and I can't find any info on it. Can anyone help? The error message in a popup dialogue box is:

    The action “Import Audio Files” encountered an error.
    Check the actionʼs properties and try running the workflow again.

    Under the Log for the workflow I get this message:

    The operation couldn't be completed. (OSStatus error -1712.) (-1712)

    The imported audio file does actually get inputted into iTunes and converted properly via iTunes, but the error creates two problems. One is the source file isn't deleted after the action runs (which is a checkbox option in that particular action). This isn't a big deal, because I can create another workflow seperately to delete the file, so I'm not as concerned with that. The major problem is that the error dialoge box displays and the sebsequent workflows that are scheduled to run right after this one can't run becasue Automator is occupied with the error message.

    I'm looking for any advice I can find, I've been using this series of workflows for a long time without issue, but seems like everytime there is a new OS I have to go through the geriatrics of figuring out what slight changes apple made to the Automator actions.

    Thanks for reading,
    Chris
     
  2. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #2
    -1712 is an "applescript timed out" error
    Basically Automator gives up if the import takes too long.

    You can increase the time the script is willing to wait by applying a custom timeout to the offending code:

    Code:
    with timeout of 600 seconds  -- that'll allow 10 minutes
         --command which may not work
    end timeout
    If you need Applescript help, check out http://macscripter.net/
     
  3. cmisener4 thread starter macrumors newbie

    Joined:
    Jan 29, 2008
    Location:
    Elkhart, Indiana
    #3

    Thanks Partron22, but I'm afraid that all went over my head. I have absolutely no AppleScript experience. I went into the package contents for that particular action and in the info.plist file there are some lines that read:

    Code:
    <dict>
    		<key>ImportTimeOutValueInSeconds</key>
    		<integer>3600</integer>
    		<key>deleteOriginals</key>
    		<false/>
    		<key>encoderIndicator</key>
    		<integer>0</integer>
    	</dict>
    I changed the 3600 to 10000 with no positive results.
    I also edited the
    Code:
    <key>encoderIndicator</key>
    <integer>0</integer>
    0 value to 600 to no avail.

    I'm probably not even editing the right code...

    I poked around in the macscripter.net forums and have begun reading a "how to" manual, but I'm not far enough in to see the relationship to my issue besides the underlying theme of automation.
     
  4. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #4
    I see now that “Import Audio Files” is a compiled action, rather than an editable script. As such, it could be written in Applescfript, C, Python etc. Regardless, you'll not be able to get at the code to see what's causing the timeout, or to change it.
    Sounds like you tried about all possibilities. Perhaps you could try bringing in the old action which worked in Snow Leopard?
     
  5. cmisener4 thread starter macrumors newbie

    Joined:
    Jan 29, 2008
    Location:
    Elkhart, Indiana
    #5
    Grabbed the old action from Snow Leopard and replaced the Lion version and it worked like a charm, what a terrific idea, yet so obvious! Partron22, I appreciate your help greatly!
     
  6. casey1978 macrumors newbie

    Joined:
    Sep 8, 2011
    #6
    I stumbled across this thread looking for the answer to the same question. I am also getting the 1712 error when importing audio files using automator OSX Lion. I would like to try the fix that cmisener4 used but my problem is I dont know where i can get the "import audio files" action from Snow Leopard or how to replace it. I am new to the mac universe so doing some things is still awkward for me. Any help would be appreciated

    Thanks
    Casey
     
  7. cmisener4 thread starter macrumors newbie

    Joined:
    Jan 29, 2008
    Location:
    Elkhart, Indiana
    #7
    Casey, I sent you a message to email me. I'll send you the file you need. If anybody else has the problem, feel free to message me and I'll help out as best I can.

    Thanks,
    Chris
     
  8. chmatrix macrumors newbie

    Joined:
    Sep 28, 2011
    #8
    Problem solved with only a few clicks

    Hi,

    I just solved the problem pretty easily: earlier, on snow leopard, automator had to be set to work in 32bit instead of 64bit otherwise there has been a lot of error messages.
    I tried to do the same with iTunes on Lion and, oh miracle, it works:

    close iTunes then go to Applications -> right click on iTunes -> read informations -> check the box to run the app in 32bits and restart iTunes and .... that's it.

    I work in a local radio in Belgium and I rely on automator on an everyday basis to download then add prerecorded broadcasts to iTunes to be aired with Lion server and I was stuck since a few weeks because of that problem. Now I can finally work again :)

    the automator task that caused the problem was "import audio files"

    English is not my native language so please forgive me for my mistakes ... :)

    :apple: Apple RULES (but you already know that :)) :apple:
     
  9. Figo macrumors newbie

    Joined:
    Jul 6, 2012
    #9
    Hi Chris,

    I have the same problem with the 1712 error.

    I am also new to MAC's and only getting to grips with automator now, don't have a clue about the applescript yet.

    Would you be able to send me a copy of the old automator action from Snow Leopord?

    Thanks
    Figo
     
  10. cmisener4 thread starter macrumors newbie

    Joined:
    Jan 29, 2008
    Location:
    Elkhart, Indiana
    #10
    Figo, Private message me your email address and I'll fix you up. Thanks, Chris
     
  11. martinpannier macrumors newbie

    Joined:
    Oct 2, 2013
    #11
    Hey Chris,

    Tried sending you a PM but for some reason I can't. Can you send me that action? I have the same issue as you…

    My email is martin dot pannier and I'm hosted by Gmail :)

    Many thanks!
     

Share This Page