• 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: Finder crash on duplicate file statement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Yvan,

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

  • Follow-Ups:
    • Re: Finder crash on duplicate file statement
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Finder crash on duplicate file statement
  • Next by Date: Re: iChat script has stopped working
  • Previous by thread: Re: Finder crash on duplicate file statement
  • Next by thread: Re: Finder crash on duplicate file statement
  • Index(es):
    • Date
    • Thread