Batch "Put Back" files from Trash to original location

Discussion in 'OS X Mountain Lion (10.8)' started by jozeppy26, Apr 22, 2013.

  1. jozeppy26
    Expand Collapse
    macrumors 6502

    jozeppy26

    Joined:
    Jul 8, 2008
    Location:
    St. Louis
    #1
    Is there anyway to use the native "put back" feature to restore 11,000 items that are currently in the Trash?

    Files originated from many different folders throughout the OS. The "Put Back" option in the contextual menu is greyed out unless only 1 file is selected at a time. Has anyone ever tried (and succeeded) at writing something in Automator or an Applescript to batch "put back" each file individually? Or do I really have to use "command + delete" & close the opening folder 11,000 times? My friend is panicking.

    I've tried google searching for a repair to this issue, but I only get a bunch of posts from 2010 with people claiming that "Mac's don't put back anything from the trash. Oh wait, I guess I was wrong, it does" but then no one continues to research the issue.
     
  2. w0lf
    Expand Collapse
    macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #2
    Maybe try this?

     
  3. jozeppy26
    Expand Collapse
    thread starter macrumors 6502

    jozeppy26

    Joined:
    Jul 8, 2008
    Location:
    St. Louis
    #3
    that'll do it. I ran into the same issues with the original code, thank goodness there's someone smart enough to fix it. Many thanks to you and OP.
     
  4. tomtom2
    Expand Collapse
    macrumors newbie

    Joined:
    Jul 4, 2013
    #4
    Put Back All Files from Trash

    I accidentally deleted 1,057 files. I really need those back in their original location.

    I tried to run the script and it is doing something but it doesn't move the files.

    Any idea?

    Thank you in advance.
     
  5. canuckuk1
    Expand Collapse
    macrumors newbie

    Joined:
    Oct 22, 2013
    #5
    files moved to trash with mackeeper!!!

    Does ANYONE know how i can put back all the files that have been moved into my trash by mackeeper where they belong...i tried selecting them one bye one and using the put back option but its greyed out!! i have all the files in tact but i dont know where to put them or how to do it...if anyone has any ideas i would greatly appreciate it!!! i tried using the apple script above but it wont work:( im using an imac 10.8.5 and i live in the UK if that helps anyone with an answer for me...HELLLLPPPPPPPPPP PLEASE!!! im loosing my mind my apps and programmes are not working properly coz the files are out of place:(
     
  6. nxPLQh2SWAjHLnQ
    Expand Collapse
    macrumors newbie

    Joined:
    Jan 15, 2014
    #6
    "Put Back" files from Trash

    For years all that was required to move files from Trash back to their original locations was to select "Put Back" using "Action" gear icon on command bar.What happened to this option and how can it be retrieved? Requiring an "application" to perform a single function formerly handled by use of the "Action" [gear icon] command is absurd: adds unnecessary complexity, wastes available system space, and ultimately detracts from a certain economic measurement known as Gross Domestic Product[ivity].*
     
  7. rikitrader
    Expand Collapse
    macrumors newbie

    Joined:
    Dec 26, 2015
    #8
    Hello Mr. Wolf,

    You wrote these script which is awesome. Is there a way to make a command that if the script finds a file that it has not put back option, it will continue to the next file?

    Let me know if it's possible, the reason is because some of the files were corrupted since when I realized that I was dealing the files I tried to stop them.

    Waiting for your Good News.

    You original script was :

    http://forums.macrumors.com/threads/batch-put-back-files-from-trash-to-original-location.1573914/
     

Share This Page