• 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
Ignore a script object or applet or what...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ignore a script object or applet or what...?


  • Subject: Ignore a script object or applet or what...?
  • From: Emmett Gray <email@hidden>
  • Date: Thu, 24 Feb 2005 01:59:04 -0500

Hi,

I'm trying to track the progress of a psync operation I've scripted, by using fstat to see if the psync output is still open. The reason I want to do this is because I want to do something else in the script while psync is running (it could run for quite a while). I would plan to use an idle handler to run fstat periodically. I'm using the following code:

do shell script ("/usr/local/bin/psync " & theSource & " " & theDest & " > ~/Library/Logs/" & logName)
do shell script "fstat ~/Library/Logs/" & logName


What is happening is that fstat doesn't get a chance to run until the psync operation is finished, so it always reports the logfile as closed. Can I create a script object or other object in which to put the psync action which I could then ignore and proceed to the next script step while it runs?

Or is there a better way to do what I'm trying to do?

TIA.

--Emmett
_______________________________________________
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


  • Follow-Ups:
    • Re: Ignore a script object or applet or what...?
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Creating a folder in user preferences
  • Next by Date: Re: Ignore a script object or applet or what...?
  • Previous by thread: Re: Mutiple if and then for one value
  • Next by thread: Re: Ignore a script object or applet or what...?
  • Index(es):
    • Date
    • Thread