From 84346f4576674e3d358b1226d9d1b340ff0355d0 Mon Sep 17 00:00:00 2001 From: verapat <22202604+verapat@users.noreply.github.com> Date: Sun, 26 Jun 2022 22:06:37 +0700 Subject: [PATCH] Init move desktop to trash --- _enabled-commands/Move desktop to trash | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 _enabled-commands/Move desktop to trash diff --git a/_enabled-commands/Move desktop to trash b/_enabled-commands/Move desktop to trash new file mode 100644 index 000000000..07a880db5 --- /dev/null +++ b/_enabled-commands/Move desktop to trash @@ -0,0 +1,22 @@ +#!/usr/bin/osascript + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Move Desktop to Trash +# @raycast.mode silent + +# Optional parameters: +@raycast.icon 🗑 +@raycast.packageName System +# @raycast.needsConfirmation true + +# Documentation: +# @raycast.author Seypopi +# @raycast.authorURL https://github.com/Seypopi +# @raycast.description Empty the desktop. + +tell application "Finder" + set allDesktop to every item of folder (path to Desktop folder as text) + move allDesktop to trash + log "" +end tell