• 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
Classic apps in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Classic apps in OS X


  • Subject: Classic apps in OS X
  • From: Jim Brandt <email@hidden>
  • Date: Fri, 25 Oct 2002 06:04:16 -0500

Is there a good way to tell when a classic application has launched and finished its task in a script?

I'm using a classic program call Dos2Mac that I've used for years to convert text files to Dos-style files for use on a Vax computer. This program converts line endings for any file you drop on it from Mac to Dos or from Dos to Mac, depending on the original format.

I've used it in scripts for a couple of years now by coding:

set Dos2Mac to application file id "D2MC" as text
open theList using application file Dos2Mac

thereby simulating a Drag 'n Drop function.

Under OS X, the program launches but _sometimes_ until you select it in the Dock, it hangs. If you click on it in the Dock, it completes the conversion and quits, like it should. Unfortunately, the rest of the script has continued on, working on the unconverted files.

At other times, the entire script, including the conversion, works correctly.

My question is;

Is there a way to ensure that this program has completed it's task before continuing the script?

BTW, this always worked under OS 9 since it wasn't multi-tasking.


TIA,

Jim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Classic apps in OS X
      • From: bryan <email@hidden>
  • Prev by Date: Re: Blank dictionary window?
  • Next by Date: Setting Internet Config commands
  • Previous by thread: RE: Quark Box overflows on not shown page
  • Next by thread: Re: Classic apps in OS X
  • Index(es):
    • Date
    • Thread