I tried to do this:
tell application "Finder"
move folder "Macintosh HD:Users:Mark:Desktop:.folder" to the trash
end tell
But Script Editor talks about an error like this:
tell application "Finder"
move folder "Macintosh HD:Users:Mark:Desktop:.folder" to trash
--> error number -1728 from folder "Macintosh HD:Users:Mark:Desktop:.folder"
PS And I'm sorry about my bad English.
This will delete the folder, you won't find it in your trash...
tell application "System Events"
delete folder "Macintosh HD:Users:Mark:Desktop:.folder"
end tell
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.