• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Error replacing bundled apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Labeled parameters
  • Next by Date: Re: getting URL of front web page (addendum)
  • Previous by thread: Re: Making FTP Drop folders?
  • Next by thread: Re: getting URL of front web page (addendum)
  • Index(es):
    • Date
    • Thread