I’m not very well-versed in Applescript, so I’m afraid I come with a somewhat silly question. Basically, I’d like to write a script that takes whatever file(s) that are currently selected in the Finder and moves them to a given folder.
(I’m using OS X 10.3.4, by the way.)
Generally I discourage using the selection as the basis of moving files. It’s too arbitrary and prone to error. It’s usually better to write a droplet (where you drop the files in question onto the script).
In any case, the basic premise is:
tell application "Finder"
set selectedFiles to (get selection)
move selectedFiles to folder "Path:to:dest:folder:"
end tell