Home > Questions

How to recover accidentally deleted files when using the wrong Applescript command?

I was going to transfer photos from a memory stick to my computer. Then I input "make folder" with Applescript, and I checked and found that my photo folders disappeared and an untitled folder poped up. I have downloaded MacKeeper to scan all my files. Does anyone know why the command deletes my files and how can I recover my important photos?

Best Answered by

iBoysoft author Yuri Zhang

Yuri Zhang

Answered on Monday, April 29, 2024

AppleScript is a scripting language coming from a Mac application - Script Editor. It can help you delete, and format your lost data from a Mac hard drive or storage media device. And MacKeeper enables you to remove files or erase the files on the hard drive.

The reason why the folders created by the script were affected is likely due to the specific path used in the command. It targeted a specific location in your file system and created a new folder there, potentially overwriting existing folders or causing unexpected behavior.

Next time, please use the right command in Applescript as follows:

tell application "Finder" to make new folder at folder "Canon EOS T1i" of folder "Pictures" of folder "Steveporter" of folder "Users" of disk "Macintosh HD"

Please do not operate on your folders again to make sure the disk space they occupied hasn't been overwritten by new data. Here are some general ways you can take for file recovery:

1. Use reputable data recovery software: iBoysoft Data Recovery for Mac, this data recovery software can deeply scan the hard drive and find all lost files, follow the instructions provided by the software to scan your disk and attempt recovery.

2. Check backups: If you have backups of your photos, consider restoring them from your backup storage.

3. Seek professional help: If you're unable to recover the files yourself, consider consulting with a data recovery professional or a tech support specialist who can assist you further.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

recover deleted videos on Mac

How to Recover Permanently Deleted Videos on Mac | 2024 Tips

A tutorial about how to recover permanently deleted videos on Mac. Different ways for recovering deleted videos from Mac.

Mac Data Recovery Tips

Mac上のKeynoteファイルを復元する方法

[トラブルシューティング] Mac上の保存されていない / 削除されたKeynoteファイルの回復方法

Keynoteファイルが保存されていない、消失、削除、または紛失してデータが失われた場合、心配しないでください。この投稿では、複数の方法でMac上のKeynoteファイルを回復する方法を説明します。

マックデータリカバリー

recover permanently deleted files on mac

[Guide]How to Recover Permanently Deleted Files on Mac

This post answers whether you can recover permanently deleted files on Mac and provides different ways to restore permanently deleted files on Mac based on different scenarios.

Mac Data Recovery Tips