• 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: Naming a duplicated file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naming a duplicated file


  • Subject: Re: Naming a duplicated file
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 25 Mar 2011 17:46:02 +0100


Le 25 mars 2011 à 16:51, John Haley a écrit :

That didn't seem to help...I am still getting the inconsistent results.  It works for two or three times and then won't work for 3 or 4 times.  The work and not work is the most annoying part!

I didn't think to mention that this is on a shared volume and not the local disk, not sure if that makes a difference.  Also, I din't mention my particulars:  most of us are on X.6.6 or X.6.7.

I have put the current script below with the event log.  Not sure if it helps, but when it is successful, the "document file" includes the whole path in the line and not just the file name.

Any other suggestion appreciated.  

John

Current script and Events:

set artPath to "Artwork:Library:FileMaker Downloaded Photos:Artwork:March 25 2011:"
set pictToDupe to "54074.psd" as string
set pictDuped to "64184.psd"
tell application "Finder"
activate
set temppictDuped to (duplicate item (artPath & pictToDupe))
set the name of temppictDuped to pictDuped
end tell


tell application "Finder"
activate
duplicate item "Artwork:Library:FileMaker Downloaded Photos:Artwork:March 25 2011:54074.psd"
--> document file "54074 copy.psd"
--> error number 0
set name of document file "54074 copy.psd" to "64184.psd"
--> error number -1728 from document file "54074 copy.psd"

Result:

error "Finder got an error: Can’t set document file \"54074 copy.psd\" to \"64184.psd\"." number -10006 from document file "54074 copy.psd"

What's the meaning of error number -10006 ?
I searched with Google and got nothing.
I don't remember ever seeing it.

Yvan KOENIG (VALLAURIS, France) vendredi 25 mars 2011 17:45:52



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Naming a duplicated file
      • From: Tommy Bollman <email@hidden>
    • Re: Naming a duplicated file
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Naming a duplicated file (From: John Haley <email@hidden>)
 >Re: Naming a duplicated file (From: KOENIG Yvan <email@hidden>)
 >Re: Naming a duplicated file (From: John Haley <email@hidden>)

  • Prev by Date: Re: asc ascii file extensions
  • Next by Date: Re: Naming a duplicated file
  • Previous by thread: Re: Naming a duplicated file
  • Next by thread: Re: Naming a duplicated file
  • Index(es):
    • Date
    • Thread