Hi there,
sorry for double-post, I think maybe you misunderstood my problem.
Here the save-dialog of my process openes:
click button "Speichern..." of window "BlitzTools Barcode Generator"
Then there´s a break of approx. 4 seconds and then the filename is typed:
tell text field 1 of window "Save Barcode as EPS"
keystroke theFilename
end tell
The script works fine except of this problem.
Has anyone any idea?
w/regards
Michael
I noticed this recently too. I have a gui script where I’m scripting the print process in photoshop CS5. I open the print window, which opens fine, then at one point I have to open a second window by clicking a button in the print window. When I click that button the second window opens immediately however it takes several seconds for the script to perform the next task… and I’m not sure why. There’s nothing in the script creating this pause.
So Lengen1971 seems to have the same problem. He has a gui script and sees the same delay after he clicks a button which opens another window. I’d like to hear anyone’s thoughts about why this is happening too. I can’t figure it out.
So now that I know it isn’t just my gui script that’s causing this problem, here’s a test everyone can run to see the same effect. It uses TextEdit. Open any file in TextEdit and then run this script. The script opens the “Save As” sheet and then opens the “New Folder” window. It only takes about a second to open the New Folder window, however on my computer it takes 6 seconds for the task to actually complete once the “New Folder” window is opened.
Any ideas why???
tell application "TextEdit" to activate
delay 0.2
tell application "System Events"
tell process "TextEdit"
keystroke "s" using {command down, shift down}
repeat until (button "New Folder" of sheet 1 of window 1)
delay 0.2
end repeat
set startDate to current date
click button "New Folder" of sheet 1 of window 1
end tell
end tell
set theSeconds to (current date) - startDate
say "It took " & (theSeconds as text) & " seconds to open the new folder window!"
return theSeconds