AppleScript

MAC usage tutorial MAC application

Detailed explanation of Mac computer file batch recovery techniques

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:View files in the Trash When there is only one file in the Trash,You can see the menu option "Replace";But if there are multiple files,There is no such option。 Step 2:Open "Automatic Operation" 1. Click the launch pad at the bottom of the screen,Find the "Other" folder。 2.Enter "automatic operation"。 Step 3:Create a new automatic operation service 1. Select "Service" in the pop-up page,Then click the "Select" button in the lower right corner。 Step 4:Add AppleScript command 1. Find "Run AppleScript" in the left menu bar。 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:Handling error prompts If an error is prompted when executing a command,Just change "trash" in the command to "trash": tell application “Finder” set theItems to items of 废纸篓 repeat with anItem in theItems move anItem to home...