Re: Error -10000 for one user
Re: Error -10000 for one user
- Subject: Re: Error -10000 for one user
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 19 Apr 2016 08:06:15 -0400
> 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.
Deivy Petrescu
email@hidden
_______________________________________________
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