Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow click button in Terminal



Hi!

I wanted to change the background picture of a terminal window. Unfortunately there is no scripting support for this so I had to use UI scripting. I came up with a solution but one of the steps involved is really slow. When scripting a click on the "Set" button the file browser window is displayed immediately but then there is a long pause. (See code below)

Why does this operation take so long time?

Thanks,
   Joakim



tell application "Terminal"
	activate
end tell

tell application "System Events"
tell process "Terminal"

tell menu bar 1
click menu item "Window Settings…" of menu "Terminal"
end tell

tell window "Terminal Inspector"
tell pop up button 1
click
click menu item "Color" of menu "OtherViews"
end tell
tell group 1
say "1"
click radio button "Use an image for the background" of radio group 1
say "2"
set testBtn to button "Set"
say "3"
click testBtn
say "4"
end tell
end tell

end tell
end tell


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.