Something that drives me crazy about Finder is that there's no Cut function. That is, you can't select a file, hit Cmd-X, then go to another window and hit Cmd-V to move the file to the other window. You can do copy/paste, but then you have to go back and delete the original file. Also, you could just drag it with the mouse, but I would rather keep my hands on the keyboard.
I've written an applescript (used as a Service) to solve this problem. Unfortunately, there are a few caveats to my service:
You need to use the same keyboard shortcut for Cut and Paste. (I used Cmd-X, but you can use whatever you want as long as it already isn't in use.)
Pasting to the desktop has problems. (If you click on the desktop to make it the active window, it will paste into any window's you have open. However, this is easily fixed by hitting Cmd-Shift-D then Cmd-X to paste.)
It's not true Cut and Paste. (Because of the way that the applescript works, you need to paste something before you can cut again. Also, the file isn't moved to the new location until you paste. In addition, you can't paste the same file into multiple locations.)
If these relatively minor problems are fine with you, then read on for how you too can get Cut/Paste in Finder!
I've written an installer to make it easy to install the script. The install will copy the file to the appropriate location in your Home folder and add Cmd-X as the keyboard shortcut. To use the installer, download it, then unzip the file and run the application. You should here a notification sound and you're all set. To get the keyboard shortcut working, you will need to restart Finder. To do this, hit Cmd-Option-Escape, select Finder, then select "Relaunch".
Click here to download the Service Installer.
If you're curious to see the script file, you can download that also.
Click here to download the raw script file.
[Source Script Download Link]
[Service Installer Download Link]
9/18/08
Cut/Paste in Finder.app
Posted by
MacTipper
at
Thursday, September 18, 2008
Labels: AppleScript, Application, Services Menu
Subscribe to:
Post Comments (Atom)


15 comments:
Whats the difference between using the script and using drag when command down?
Drag and drop requires that you use the mouse. The script allows you to stick to the keyboard.
Amazing. I love you, dude!
I have been trying to do this . and used the applescript .
Hi,
what do I do if I want to uninstall it?
Go to (Your home folder)/Library/Services/ and delete the "CutFileInFinder.service" file.
Hi,
doesn't work for me when i cut paste from one hard drive to another. it just copies.
It works fine to cut paste in the same harddrive though
Please help
the bar of says "moving &&& to &&& " but it just copies...
Unfortunately, that is because Finder always copies files from one HD to another. The only solution is to move the file with the mouse. When moving with the mouse, hold the Command key so that the cursor changes from a plus cursor to a normal cursor.
The click here to download installer app link has some pretty horrible shit at MediaFire.com. I would ditch them dude.. seems like they have sold out to the devil. Popups and drive by installs are their flavor. I don't like your taste. Good App.. maybe loose MediaFire. Dubious to say the least. Otherwise.. good work! I am going to tackle copy and paste in OS X as well.. but i wish apple would just include it already. It is seriously a flaw in their OS. Many mac users just don't get how good cut and paste is. Drag and drop has it's place but it's for pansies.. ;-)
i won't cut and paste, it just copy and paste
the original file won't be deleted.
I am right that i should use "Cmd+X" to cut and "Cmd+X" to paste???
anyway, nice try, thx
Yes, that is correct. Cmd-X is used to cut the file and paste the file. (It is independent of the Cmd-C/V that is built in.) Until Apple can provide this to us, this is the best I've come up with so far.
so this app's name should be "Copy/Paste in Finder.app" ???
i am confused...
When you install the service and set up a keyboard shortcut, you can move files using that keyboard shortcut.
When you first activate the service, it finds out where the file you selected is. Then, when you activate the service again, it moves the file to the currently viewed folder.
Copy and paste keeps the original file.
although your work is truly highly appreciated, but it just won't work....
it works ONLY within the same harddisk, but NOT between two harddisks.
Post a Comment