| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The error message indicates the file is still open on the user's mac. Possibly during unstuffing? I'd suggest adding a try block and a delay. Here's a version that traps an error, waits 5 seconds, then tries two more times, then gives up. on moveItems(Sources, destination) log Sources tell application "Finder" repeat with ThisBit in Sources set errorcount to 0 repeat try log ThisBit duplicate ThisBit to destination with replacing on error errText number errNum set errorcount to errorcount + 1 if errorcount = 3 then log "Error: " & errText & return & errNum & return & ThisBit display dialog "Error: " & errText & return & errNum & return & ThisBit buttons {"OK"} default button 1 giving up after 5 exit repeat end if delay 5 end try end repeat end repeat end tell end moveItems You may also consider getting the size of thisBit, delaying a few seconds, getting its size again, and if the size hasn't changed, then duplicate it. HTH, ES = |
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.