• 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: Tommy Bollman <email@hidden>
  • Date: Sat, 26 Mar 2011 10:46:56 +0100

Den 25. mars 2011 kl. 17.46 skrev KOENIG Yvan:

>
> 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


Hello guys.
I just want to shoot in my very few.
I ran the MacError program which we all have and it gave this output:

500$ MacError -10006
--> Mac OS error -10006 (telCAUnavail): a CA is not available

I might guess very bad, but I guess CA to be "Certificate Authority",
maybe the shared volume is over a secure connection, which would require a certificate
to access instead of a password, and that AS don't know how to pass the certificate along
to the server volume.



Best regards



Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
	If an idea can survive a bureaucratic review
	and be implemented it wasn't worth doing.

 _______________________________________________
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: Emmanuel LEVY <email@hidden>
    • Re: Naming a duplicated file
      • From: Tommy Bollman <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>)
 >Re: Naming a duplicated file (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Naming a duplicated file
  • 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