I would like to automate the task of copying a folder (which contains a hierarchy of other folders) to an open window with just one click of the applescript in the window toolbar.
I have cobbled together some sort of script from other scripts but it doesn’t seem to work. I did manage to work out how to copy the folder to a specified folder but not to an open window which will determine where the folder needs to be copied to. I hope this makes sence and I’m sure it is easy to do but considering I’ve really only be looking into Applescript for a day it is not a surprise I can’t figure it out!!
Here is the Script so far:
try
tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open folder windows
set the source_folder to path to desktop folder as alias
end try
tell application "Finder"
copy the folder "Folder One:Folder Two" in the startup disk to (source_folder)
end tell
Many thanks in advance if you can help.
(Don’t worry I will be buying a book at the weekend, probably one of those “for Dummies” books knowing my lack of knowledge!!!)