View Single Post
04-12-2007   #1 (permalink)
jasonguthrie
TAB Author
 
jasonguthrie's Avatar
 
Join Date: Oct 2006
Location: Bay Area, CA
Posts: 104
jasonguthrie is on a distinguished road
Send a message via AIM to jasonguthrie Send a message via Skype™ to jasonguthrie
I'm hoping someone out there in the TAB community knows a lot more about Applescript than I do. In fact, you only need to know a little bit and I'm sure you could help

Anyway, I have this little piece of code, written to grab a bunch of files in a folder, and dump them into another folder, overwriting if necessary.

Here's just a piece:

Quote:
tell application "Finder"
if (exists folder "Applications:VE LXi Apprentice 7:Outputdrivers" of startup disk) then
duplicate files in folder "vinyl-updater:update-files" of desktop to folder "Applications:VE LXi Apprentice 7:Outputdrivers" of startup disk replacing yes
The problem is that when I run the script, I receive the following error in the event log:

Quote:
exists folder "Applications:VE LXi Expert 7:Outputdrivers" of startup disk
true
copy every file of folder "vinyl-updater:update-files" of desktop to folder "Applications:VE LXi Expert 7:Outputdrivers" of startup disk
"Finder got an error: Can't set folder \"Applications:VE LXi Expert 7:Outputdrivers\" of startup disk to every file of folder \"vinyl-updater:update-files\" of desktop."
Anyone have any suggestions as to why this is being so difficult?? This is driving me crazy!
jasonguthrie is offline   Reply With Quote