Tiemo,

Here's a sample AppleScript. 

try
        tell application "Finder"
                set myFile to POSIX file "~/desktop/file.txt"
                set myNewFile to POSIX file "~/desktop/file2.txt"
                copy myFile to myNewFile
        end tell
on error myErr number myNr
        set myScript to "answer error \"A problem occurred (" & myErr & ")\""
        tell application "LiveCode 4.6.1" to do script myScript
end try

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4 
A must-have for LiveCode programmers.

On 11 aug 2011, at 12:54, Tiemo Hollmann TB wrote:

> Hello,
> 
> I want to copy a big folder by script and wait for the result to prompt an
> appropriate message.
> 
> But after fireing revCopyFolder my script runs on without waiting for the
> execution of revCopyFolder.
> 
> Is this a normal behavior? Anything I can do to wait for the finish?
> 
> Thanks
> 
> Tiemo
> 


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to