• 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
First Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First Applescript


  • Subject: First Applescript
  • From: "Web Manager" <email@hidden>
  • Date: Tue, 18 May 2004 15:48:43 -0500

Hi List,

I must confess up front that I am a recent PC convert and that this is my
*first* task in Applescript. I don't really have an execution question yet
as much as an approach question. Here is what I want to accomplish.

I want to see if a particular process is running,
if the process is running I want the script to sleep for 5 minutes and try
again
if the process has stopped I want it to re-launch the associated application
sleep for 5 minutes and try again.

I can do this with AutoIT on the PC side no problem but since this is my
first Applescript I'm not sure what to do first, here is my question.

Do I actually have to open something like Terminal > run top > look for
'such&such process' and then manipulate it or can I just create an if
statement to accomplish the whole thing...

Something like this (pardon my ignorance):

if such&such process is running wait 5 minutes
else start such&such application and wait 5 minutes & loop

Thanks in advance,

Joshua
_______________________________________________
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: First Applescript
      • From: Christopher Nebel <email@hidden>
    • Re: First Applescript
      • From: Graff <email@hidden>
    • Re: First Applescript
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Finding the oldest date in a list
  • Next by Date: Re: Q: echo | sed -- Solved!
  • Previous by thread: Fwd: Finding the oldest date in a list
  • Next by thread: Re: First Applescript
  • Index(es):
    • Date
    • Thread