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

Re: Classic apps in OS X


  • Subject: Re: Classic apps in OS X
  • From: bryan <email@hidden>
  • Date: Fri, 25 Oct 2002 14:32:34 -0400

I have run into this problem before as well.
What I ended up doing was to use a repeat loop that would exit
when the last statement of the called classic app told the parent
X app to set a parameter to a specific value.


app myXapp
...
open myclassicapp
repeat while not finished
--idler commands
end repeat
...


app myclassicapp
...
tell application myXapp to set finished to true


Basically, just tell the X app to wait until the classic app tells it
it is done.

Bryan Kaufman


Jim Brandt wrote:

> 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.

[demime 0.98b removed an attachment of type text/x-vcard which had a name of bryan.vcf]
_______________________________________________
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.

References: 
 >Classic apps in OS X (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: iPhoto - Mail.scpt change to Entourage X
  • Next by Date: Never say never?
  • Previous by thread: Classic apps in OS X
  • Next by thread: Setting Internet Config commands
  • Index(es):
    • Date
    • Thread