• 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: Timing a Long Event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timing a Long Event


  • Subject: Re: Timing a Long Event
  • From: 長野谷 隆昌 <email@hidden>
  • Date: Wed, 21 Apr 2010 11:13:08 +0900

I understand this as an asynchronous event processing.
If, we separate this system into two part. "Listener" part and "Caller" part.

Listener part:
This is an AppleScript applet. Stay launch and have "open" event handler. Calculate duration.

Caller part:
This program execute something. It takes very long time.
Caller generate an AppleScript record and write it to a file.
like..
{command:"start", taskID:"0001"}

Then Caller gives command to Listener to open this record file.
Caller opens record file, understand command and calculate duration.


This is a kind of "asynchronous event" via file system. This technology is used for parallel AppleScript execution and returning result to main program asynchronously.


On 2010/04/19, at 23:57, Marconi wrote:

I'm trying to time an hours-long event using AS.

I get the start time, perform the task, get the stop time, calculate the duration from start and stop times and post a dialog to say how long it took.

But this always times out. I tried using a timeout of 12 hours but I still get a timeout error.

The task is performed by a "do shell script" which offers no output until the task is done.

Is there some way to do this timing as I am, wrapping the task in AS to note start and stop times, without it timing out?

Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden

PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Timing a Long Event (From: Marconi <email@hidden>)

  • Prev by Date: Re: Applescript oddity under 10.4.11
  • Next by Date: Re: Timing a Long Event
  • Previous by thread: Re: Timing a Long Event
  • Next by thread: Re: Timing a Long Event
  • Index(es):
    • Date
    • Thread