Hoe to tell when a program is done?
Hoe to tell when a program is done?
- Subject: Hoe to tell when a program is done?
- From: Dennis Jones <email@hidden>
- Date: Fri, 25 Mar 2005 09:41:39 -0800
I use LineBreak to convert a number (6 to 10) of files from DOS style
end of line characters to Mac style. However, using the code below,
the program quits before it finishes processing all the files in the
'sourceFolder'.
How can I determine LineBreak is done before I quit the program?
I could use:
do shell script "sleep 10" or
pause 10
but as previous posts have noted, these use lots of cycles and I would
not be assured the program had finished processing, or I would waste
lots of time.
-- code
on Run_LineBreak(sourceFolder)
tell application "LineBreak"
activate
open sourceFolder
quit
end tell
end Run_LineBreak
--
Dennis Jones
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden