• 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: prevent user input question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prevent user input question


  • Subject: Re: prevent user input question
  • From: Philip Aker <email@hidden>
  • Date: Fri, 02 Nov 2007 12:33:43 -0700

On 2007-02-11, at 09:51, Oakley Masten wrote:

Under what circumstances are you running the script?


The process in question opens, modifies, prints and then saves a folder of Excel files. It uses GUI scripting and therefor is susceptible to errors if a user inputs anything by keyboard or mouse. So can I suspend input until the script finishes? If so how? Also, how do I post a dialog that tells the user that they must wait until the process is finished. And what do I do if the process hangs up and never finishes? Is there a "time limit" parameter for my lock out?
So many questions !!!!

IMO, Luther's described a viable method. You can probably block input by using a 'do shell script' which calls osascript to run your script (run it via System Events). But I think that neither of these will account for your user switching to Excel and typing like a mad fool while the script is running…


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@ _______________________________________________
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: 
 >re: prevent user input question (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: prevent user input question
  • Next by Date: Re: [Slightly OT] Scripting Bridge in Leopard
  • Previous by thread: Re: prevent user input question
  • Next by thread: Re: prevent user input question
  • Index(es):
    • Date
    • Thread