AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
"/Users/YOUR SHORT NAME/Library/Workflows/Applications/Folder Actions/". Next, save your new Script Editor document as "Removed From Trash Folder Action.scpt" to the folder. Write theText & linefeed to writeToFile as text starting at eof Set writeToFile to open for access theFile with write permission ![]() Set theText to (removedItemNames as text) Set theFile to POSIX path of (((path to desktop as text) & "Removed From Trash.txt") as text) on removing folder items from theFolder after losing removedItemNames You can attach a "Removing Items From" folder action to the /Users/YOUR SHORT NAME/.Trash folder that will write to file, the names of the files that were removed from the trash.Ĭreate a new Script Editor document and insert this following AppleScript code. ![]() This AppleScript code works for me using the latest version of macOS Mojave. However you can use this solution to retrieve the filenames removed from the trash, in the future if you need to. In such cases, it might be helpful to contact Apple Support or visit an Apple Store for further assistance.This following solution will not help you retrieve the filenames which were already removed from the trash, before implementing my solution. If none of these steps resolve the issue, it's possible that there might be a more complex problem with your system. Let the process complete, and then try emptying the trash again. Open Disk Utility (located in Applications → Utilities), select your main hard drive, and click on the "First Aid" button. Disk Utility: You can use Disk Utility to check and repair any disk-related issues that might be affecting the trash. If successful, restart your iMac normally.ĥ. Once in Safe Mode, try emptying the trash. Restart your iMac and hold down the Shift key until the Apple logo appears. Safe Mode: Booting your iMac in Safe Mode can help troubleshoot various issues. This command will delete all the files in the trash folder for your user account.Ĥ. Press Enter and enter your administrator password when prompted. Open Terminal (located in Applications → Utilities), and type the following command: Terminal Command: If the above steps didn't work, you can try using Terminal to force empty the trash. ![]() To use this feature, simply right-click (or Ctrl+click) on the trash icon in the Dock while holding down the Command key, and then select "Secure Empty Trash."ģ. This method overwrites the deleted files, which can help in cases where certain files are causing issues. Secure Empty Trash: Instead of using the regular empty trash option, you can try using the "Secure Empty Trash" feature. You can force quit Finder and relaunch it to see if that resolves the problem.Ģ. Force Quit Finder: Sometimes, Finder may encounter issues that prevent it from emptying the trash. If you're having trouble emptying the trash on your iMac, there are a few troubleshooting steps you can try.
0 Comments
Read More
Leave a Reply. |