I'm trying to make a script and have run into a small problem. I'm running sales order numbers from excel into a production system software program and sometimes, depending on the kind of information that sales order number has tied to it, the production system will take a really long time to process the command I'm scripting.
Basically, what I want to know how to do is find some way to script a fix for this. Whenever I run the program, if I see that the production system is taking a really long time to bring an order up because it's one of those special numbers, I just hit "apple+"."" and that immediately stops what's going on and causes the program to move on to the next sales order number.
So what I'm trying to do is find a way to input that "apple+"."" command into my program ... I'm hoping that's just a basic apple command for quiting out of frozen programs. So first, I wanted to know if anyone knew the Mac OS X command in applescript for quitting out of a frozen program? And second, in order for this script to be self-sufficient, I'll need it to know when to use that "apple+"."" command ... I was thinking if there was a way to write a line of code in AppleScript that translates to "if program pauses for more than 5 seconds, press "apple+".""
Basically, what I want to know how to do is find some way to script a fix for this. Whenever I run the program, if I see that the production system is taking a really long time to bring an order up because it's one of those special numbers, I just hit "apple+"."" and that immediately stops what's going on and causes the program to move on to the next sales order number.
So what I'm trying to do is find a way to input that "apple+"."" command into my program ... I'm hoping that's just a basic apple command for quiting out of frozen programs. So first, I wanted to know if anyone knew the Mac OS X command in applescript for quitting out of a frozen program? And second, in order for this script to be self-sufficient, I'll need it to know when to use that "apple+"."" command ... I was thinking if there was a way to write a line of code in AppleScript that translates to "if program pauses for more than 5 seconds, press "apple+".""