Re: Error -10000 for one user
Re: Error -10000 for one user
- Subject: Re: Error -10000 for one user
- From: Steve Mills <email@hidden>
- Date: Tue, 12 Apr 2016 20:17:35 +0000 (GMT)
On Apr 12, 2016, at 02:49 PM, RJay Hansen <email@hidden> wrote:
I had the script I recently finished for uploading files to dropbox and sending an email, working for all my users. Then I was asked to make a small change to it. I added the change and testing had everything working correctly. I deployed it to my users and it’s working on all the machines but one. When the script has the Finder duplicate the chosen file to Dropbox it generates an error -10000 on this one machine. Here’s the pertinent part from the Log History:
tell application "Finder"
duplicate file (alias "Main-Storage:Comtech-Art:V:Vyve:201569 Vyve channel lineup cards (81):HOLD!!!!!:201569 Vyve Lineup Herington - KS.pdf") to "Macintosh HD:Users:corei7user:Dropbox: Blue"
--> document file "201569 Vyve Lineup Herington - KS.pdf" of folder " Blue" of folder "Dropbox" of folder "rjay" of folder "Users" of startup disk
--> error number -10000
Result:
error “Finder got an error: AppleEvent handler failed.” number -10000
end tell
I’m at a loss as to why this one Mac is throwing this error on this script while it’s working great on three other machines. A bit more information: The machine with the problem is running El Capitan. One of the machines the script works fine on is also running El Capitan and the other two (that it runs fine on) are running Yosemite.
Does anyone have any suggestion as to what the cause of the problem may be? Any help is greatly appreciated. I can post the whole script if that would be helpful.
Well, the path listed there is very different from the one shown in the script's duplicate command. It's pretty hard to debug something when the output doesn't match the input. I'd suggest you ensure that both the source and dest paths can be resolved before you use them in the duplicate command. I'd guess that one of them is bad, and the duplicate command is just masking that error.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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