Simple Task Question

I am new to AppleScript and I just can’t seem to do a seemingly simple task or find any info on how to do it.

I just want to be able to find a folder or file with a specific name and move it from one directory to another on a remote volume.

I guess my question is, how do you find a name of a file or folder and assign it to a variable so that it can be moved?

Many thanks.

Hello DartScott,

I suggest you begin with :

“choose file” (without the quotes)

this returns the path to the file which you can then use in a script

or, if you prefer a folder:

“choose folder” (without the quotes)

For example, you could script:

tell application “Finder”
open alias “Smacintosh HD:Documents:DartScott:”
end tell

if you wished to open a particular file and you had the path to that file.

Also, do a search on this site for keyword “move”, “duplicate”, or “file”. There are many threads and they will likely prove to be of use.

I hope this helps.

Sincerely,

Variable as the shade