Re: Error -10000 for one user
Re: Error -10000 for one user
- Subject: Re: Error -10000 for one user
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 19 Apr 2016 15:53:13 +0200
Le 19 avr. 2016 à 14:06, Deivy Petrescu < email@hidden> a écrit :
On Apr 19, 2016, at 04:26 , Yvan KOENIG <email@hidden> wrote:
Hello
Maybe I got it. In your script I read :
tell application "Finder" duplicate file thisItem to thePath end tell
but thePath is defined as a string.
Maybe the problem will be solved if you edit the code as :
tell application "Finder" duplicate file thisItem to folder thePath end tell
On my mac running 10.11.4, both work flawlessly but I'm not sure that every system accept the first syntax which ask the Finder to duplicate a file in a string.
Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) mardi 19 avril 2016 10:26:17
Yvan, I wrote that first time I saw his script. But, it turns out that it works even if you send a text instead of a path or folder. This might have changed recently, may be el Capitan or Yosemite. Actually it worked the first time when he sent file (alias…). It threw an error but it duplicated the file.
Oops, I forgot that. I forgot too the fact that the original asker wrote : The machine with the problem is running El Capitan.
Maybe there is a permission problem. As Disk Utility no longer repair permissions, it would a a good idea to download and run the free Maintenance. Maintenance delivers a subset of Onyx's features so that non experimented users aren't offered the ones able to make annoying changes.
Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) mardi 19 avril 2016 15:53:06
|
_______________________________________________
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