• 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
osascript time to execute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

osascript time to execute


  • Subject: osascript time to execute
  • From: Jeramey Valley <email@hidden>
  • Date: Tue, 28 Feb 2006 15:23:06 -0500

In a logout script, I was calling osascript to run multiple compiled applescripts. Under the current test machine, problems were encountered that the tasks appeared to be failing, but was unable to see why since the scripts run just fine via script editor or when invoked by osascript. OS is 10.4.4. Even put tons of logger steps in so I could see what was failing or at least when it was failing.

Question: When running a script via osascript command, is there a timeout value or similar that will simply end the process regardless of where it is in the steps? This is the only explanation I can come up with.

In the logout script, if I call the script via osascript, there are a few of the log entries in the syslog, but they stop part way through the script's execution, at points that should not fail or otherwise cause the script to stop.
If I save the compiled script as an application and call that, instead, from the login script, then everything works as expected. This leads me to believe that osascript is told what to do, but the calling script is not waiting for osascript to finish. Since this is a logout script, the logout script "finishes" and the OS shuts down all running processes - this is killing the scripts I call from osascript part way through completion.


Any of this make sense? Any solutions?
--

Regards,

Jeramey Valley
email@hidden
Network Administrator
H. H. Dow High School
Midland Public Schools
_______________________________________________
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


  • Prev by Date: Re: Entourage Exchange Calendar Scripting
  • Next by Date: Re: Entourage Exchange Calendar Scripting
  • Previous by thread: Re: Entourage Exchange Calendar Scripting
  • Index(es):
    • Date
    • Thread