• 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
Hoe to tell when a program is done?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Word wordcounts
  • Next by Date: Importing to FileMaker
  • Previous by thread: Re: Word wordcounts
  • Next by thread: Re: Hoe to tell when a program is done?
  • Index(es):
    • Date
    • Thread