Starting in AppleScript Version 1.4 there is now a new
'busy status' property has been added to the 'file information'
class by the 'info for' command
and it would be used as shown below:
tell application "Finder"
get busy status of (info for <yourfilepath here> )
end tell
it would either return 'true'
(yes the file's in use (open, or being copied)
or 'false'
(the file is presently closed)
to use it wrap a if/else statement around the checking ie ,
if it's not busy then copy else do this....
oh btw to get AppleScript's version:
display dialog "AppleScript Version " & (AppleScript's version as text) & " Is Installed." buttons {"OK"} default button 1 with icon 1
hope that helps
Cheers Matt
------------------
-- An idea is salvation by imagination.
-- Frank Lloyd Wright
-- 30 --