RE: Pausing a script
RE: Pausing a script
- Subject: RE: Pausing a script
- From: Joe Kelly <email@hidden>
- Date: Mon, 3 Jun 2002 12:48:54 -0700
Since display dialog is MODAL, you should add an "escape" button to your
dialog, in case the user prematurely returns to your script. The escape
button would simply tell "Finder" to activate and then put up the pause
dialog again (it's all in a loop). This addresses a problem (at least in
1.6) in which display dialog is so blatantly modal that it won't let the
user click to any other applications w/o first dismissing the dialog, a true
pain in the butt.
Also, don't forget to wrap it in a timeout : )
-> -----Original Message-----
-> From: Matthew Stuckwisch [
mailto:email@hidden]
-> Sent: Monday, June 03, 2002 10:25 AM
-> To: Eric Phillips
-> Cc: email@hidden
-> Subject: Re: Pausing a script
->
->
-> > I have a script that opens all the files in a folder in
-> Excel. Excel does
-> > a bunch of stuff to the files then saves them back to the
-> hard drive and
-> > then imports those new files into File Maker Pro. What I
-> would like to do
-> > is pause the script before it goes on to import the files
-> to FMP. I want
-> > to make sure the files from Excel are correct before a
-> bunch of gibberish
-> > gets imported to FMP. Once I confirm the files are correct
-> I would like
-> > the script to continue. Can I do this from one script or
-> do I need to
-> > write two scripts and run the second after I have
-> confirmed the files? I
-> > am using OS10.1.4 and AS1.7.
->
-> Display dialog could do this very easily
->
-> try
-> Display dialog "Are the files correct?"
-> on error
-> --user clicked "cancel"
-> return
-> end try
-> --user clicked "OK"
-> part2()
->
->
-> Matthew Stuckwisch
-> [AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
-> [IRC]{guifa / G}(esperNET / irc.massinova.com)
-> _______________________________________________
-> applescript-users mailing list | email@hidden
-> Help/Unsubscribe/Archives:
->
http://www.lists.apple.com/mailman/listinfo/applescript-users
-> Do not post admin requests to the list. They will be ignored.
->
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.