Re: Naming a duplicated file
Re: Naming a duplicated file
- Subject: Re: Naming a duplicated file
- From: Tommy Bollman <email@hidden>
- Date: Sat, 26 Mar 2011 13:38:54 +0100
Den 26. mars 2011 kl. 10.46 skrev Tommy Bollman:
> 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
>
Come to think of it: This is a very long shot in the dark:
Maybe you could try to include /System/Library/Cor/System/Library/CoreServices/AppleScript\ Runner.app among the trusted applications in your app firewall. Then it will be code signed. You can also allow it to send data out.
Something along these lines, -it is really a really long shot ... in the dark.
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