• 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
Re: error code 2 when renaming file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error code 2 when renaming file


  • Subject: Re: error code 2 when renaming file
  • From: Andrew Oliver <email@hidden>
  • Date: Tue, 07 Dec 2004 12:05:12 -0800

On 12/7/04 11:22 AM, "Craig Knelsen" <email@hidden> wrote:

> I'm attempting to rename a file (backing it up before updating) similar
> to the following:
>
[snip]
>
> It works most of the time but I sometimes get an error message "The
> operation could not be completed (2)"
>
> Ok, so why? The Finder might as well have told me "not today". How can
> I get more information on the root cause?
>

The commonest cause of failure for file renaming is an existing file with
the target file name.

Have you checked that 'something_old.dat' doesn't exist.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: error code 2 when renaming file
      • From: Emmanuel <email@hidden>
References: 
 >error code 2 when renaming file (From: Craig Knelsen <email@hidden>)

  • Prev by Date: Re: [OT] Re: Smile and FruitMenu
  • Next by Date: Re: [OT] Re: Smile and FruitMenu
  • Previous by thread: error code 2 when renaming file
  • Next by thread: Re: error code 2 when renaming file
  • Index(es):
    • Date
    • Thread