• 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: Luther Fuller <email@hidden>
  • Date: Fri, 2 Nov 2007 12:59:53 -0500

I recently had a similar problem.
You can prevent an application from accepting user input with ...
	tell application "whatsit"
		activate
		display dialog ...
	end tell
but, it also prevents interaction of the script. Darn!

I finally wrote a small application whose sole function is ...
	tell me
		repeat
			activate me
			display dialog ... giving up after 2
			if (script process does not exist) exit repeat
		end repeat
	end tell

This application is hidden away in the main application's bundle.
It will remind the user not to mess with the application.
I don't like it, but I think it's the best that can be done currently.

On Nov 2, 2007, at 11:51 AM, Oakley Masten wrote:

On 2007-01-11, at 12:54, Oakley Masten wrote:

Is there an easy and safe way to prevent an operator
from inputting
keyboard and mouse data until the completion of a
script?

What kind of problems would have to be dealt with if
I were to do so?

Is this even worth considering?

On 2007-01-11 Philip Aker wrote: There's not enough info to work with. 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 !!!!

_______________________________________________ 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: prevent user input question
  • Previous by thread: re: prevent user input question
  • Next by thread: Re: prevent user input question
  • Index(es):
    • Date
    • Thread