• 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: Error -10000 for one user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -10000 for one user


  • Subject: Re: Error -10000 for one user
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 19 Apr 2016 16:06:29 +0200


Le 19 avr. 2016 à 15:42, Axel Luttgens <email@hidden> a écrit :


Le 13 avr. 2016 à 22:19, RJay Hansen a écrit :

I appreciate all the suggestions, but to help make things clearer I’m going to post the entire script here. The final product is a droplet but for testing I’ve got this script with a choose dialog instead of the on open handler:

[…]

Heavily trimming your script, the relevant parts might be these ones:

set theseItems to (choose file with prompt "select a pdf to upload" with multiple selections allowed)
tell application "Finder"
set homePath to (path to home folder) as text # path to home folder belongs to Standard Additions
end tell
set thePath to homePath & "Desktop: Blue"
repeat with i from 1 to count of theseItems
tell application "Finder"
set thisItem to item i of theseItems
set thisItem to thisItem as text
duplicate file thisItem to thePath
end tell
end repeat

I’ve elected the " Blue" folder on the basis of your opening post.

Could you see if the above allows to reproduce the problem?
And, if yes, could you post the exact log messages (events, results) you get in Script Editor?
Also, on which OS version does the problem occur?

TIA,
Axel

Hello Axel.
I disabled above two useless instructions and choose to try to duplicate alias items.
Maybe there is something odd in the treatment of files on the user's machine which may be solved using alias

set theseItems to (choose file with prompt "select a pdf to upload" with multiple selections allowed)
-- tell application "Finder"
set homePath to (path to home folder) as text # path to home folder belongs to Standard Additions
--end tell
set thePath to homePath & "Desktop: Blue"
tell application "Finder"
repeat with thisItem in theseItems # I don't like to use indexes in loops
set thisItem to thisItem as alias
duplicate thisItem to thePath
end repeat
end tell

Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) mardi 19 avril 2016 15:56:02



 _______________________________________________
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: Error -10000 for one user
      • From: Yvan KOENIG <email@hidden>
References: 
 >Re: Error -10000 for one user (From: Steve Mills <email@hidden>)
 >Re: Error -10000 for one user (From: RJay Hansen <email@hidden>)
 >Re: Error -10000 for one user (From: Yvan KOENIG <email@hidden>)
 >Re: Error -10000 for one user (From: RJay Hansen <email@hidden>)
 >Re: Error -10000 for one user (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Error -10000 for one user
  • Next by Date: Re: Error -10000 for one user
  • Previous by thread: Re: Error -10000 for one user
  • Next by thread: Re: Error -10000 for one user
  • Index(es):
    • Date
    • Thread