Re: Finder crash on duplicate file statement
Re: Finder crash on duplicate file statement
- Subject: Re: Finder crash on duplicate file statement
- From: Jim Brandt <email@hidden>
- Date: Sat, 11 Sep 2010 10:30:53 -0500
Hello
It's not clear in your message. Is your code encapsulated in a tell Finder block ?
When I wish to check that a copy process is ended, I use a loop checking that the physical size no longer change.
tell application "System Events" to tell disk item "path_2_my_file" set old_size to -1 repeat delay .5 set new_size to physical size if new_size = old_size then exit repeat set old_size to new_size end repeat end tell
Yvan KOENIG (VALLAURIS, France) samedi 11 septembre 2010 16:15:59
Yes the code is in a tell Finder block, as I said in the line above the code :-)
I don't think it's the copy process not completing that is the problem. The crash happens DURING the copy process. I'm not even at a point in the code where I can check for the copy being complete... it's dropping into the on error code of the try block.
|
_______________________________________________
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