My Apple laptop accidentally deleted all the files in "All My Files",What should I do if everything is moved to the trash? Found no batch recovery,Can only be restored one by one。Don't worry,Mac can only batch restore files in the same folder,Unable to batch restore files in different folders。The editor below will introduce how to batch restore Mac files。

step one:查看废纸篓里的文件

当废纸篓里只有一个文件时,You can see the menu option "Replace";But if there are multiple files,There is no such option。

Step 2:打开“自动操作”

1.点击屏幕下方的启动台,Find the "Other" folder。

2.Enter "automatic operation"。

Step 3:创建新的自动操作服务

1.在弹出的页面中选择“服务”,Then click the "Select" button in the lower right corner。

Step 4:添加AppleScript命令

1.在左侧菜单栏中找到“运行AppleScript”

2.Enter the following command:

tell application “Finder”

set theItems to items of trash

repeat with anItem in theItems

move anItem to home

end repeat

end tell

3. Click the black triangle button in the red box in the upper left corner to execute the command。

Step 5:处理错误提示

如果执行命令时提示错误,Just change "trash" in the command to "trash":

tell application “Finder”

set theItems to items of wastebasket

repeat with anItem in theItems

move anItem to home

end repeat

end tell

按照以上步骤您就可以批量恢复废纸篓中的文件了希望这能帮助您顺利恢复文件

statement:All articles on this site,If there is no special instructions or markings,All are originally published by this site。any person or organization,Without the consent of this website,Reproduction prohibited、Misappropriate、collection、Publish content from this site to any website、Books and other media platforms。If the content on this site infringes upon the legitimate rights and interests of the original author,You can contact us for processing。