Move a file using right click menu?

It is possible with a simple Service created in Automator:

The complete AppleScript:


on run {input, parameters}

tell application "Finder"

try

set destfol to choose folder with prompt "Select a destination folder:"

on error

return

end try

end tell

return destfol

end run

MacBook Pro 16″, macOS 13.3

Posted on Nov 16, 2023 11:57 PM

Reply
6 replies

Nov 17, 2023 9:33 AM in response to EFR_at_ASC

Here's a Script for moving a whole folder of items...


tell application "Finder"

activate

set source_folder to choose folder with prompt "Please choose the Source-Folder:" default location ((path to home folder) as alias)

set source_files to every file in source_folder

set target_folder to choose folder with prompt "Please choose the Taget-Folder:" default location (":Applications:" as alias)

repeat with i from 1 to number of items in source_files

set source_file to (item i of source_files)

move source_file to (target_folder) -- use "copy source_file to folder (target_folder as alias)" to copy the files

end repeat

set question to display dialog " Files have been moved."

end tell


You should be able to modify that for one file.:)

Nov 17, 2023 3:22 PM in response to BDAqua

Thank you. Your script may be useful in certain context but it does work with a simple right-click on selected items. The Service I posted is designed to be used in situations such as cleaning the desktop and is much easier to use in those cases. And it can also move a folder or any mixed number of files and folders that may be selected in the Finder.

Nov 18, 2023 5:21 AM in response to dialabrain

This, and the method suggested by VikingOSX, are the methods that I have been always using since the disappearance of the wonderful FinderPop to which I was addicted for too many years.


I find the service "Move to" much faster, although I agree that it is far from optimal.


What I really wish (and what is missing in the Service I posted) is a way to reach the destination folder by navigating thru successive menus that pop up from the initial contextual menu by just hovering over with the pointer without the need of any click (except the final one).


If anybody has a suggestion as to how could that be achieved in a simple way I would be extremely glad to hear it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Move a file using right click menu?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.