Error replacing bundled apps
Error replacing bundled apps
- Subject: Error replacing bundled apps
- From: Wade Williams <email@hidden>
- Date: Thu, 27 Mar 2003 12:58:22 -0600
When trying to replace files in the destination, I get:
Finder got an error: Duplicate file name. some object (error message
in Script Debugger)
this happens from the script (appPath and buildPath are set to valid
paths):
tell application "Finder"
select (folder appPath's every item whose name is in theFiles)
duplicate selection to folder buildPath with replacing
end tell
Of course there's a duplicate file name! That's why I'm telling it to
replace.
At first I thought perhaps it was an issue with the files being moved
to the trash and something with the same name already in the trash.
However, it happens even with the trash empty.
The problem is occurring with a bundled application that's in the
directory...( i.e. "MyApp.app"). If I remove the bundled app from the
list of files to be duplicated, it works fine.
Have anyone ever seen this? Know of any workarounds?
Thanks,
Wade
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.