• 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
Slow click button in Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow click button in Terminal


  • Subject: Slow click button in Terminal
  • From: Joakim Nyström <email@hidden>
  • Date: Mon, 14 Feb 2005 18:10:01 +0100

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:
This email sent to email@hidden


  • Prev by Date: Seeking happy returns, Mail to FM
  • Next by Date: Re: Seeking happy returns, Mail to FM
  • Previous by thread: Re: Seeking happy returns, Mail to FM
  • Next by thread: Re: Slightly OT: InDesign cells/tables
  • Index(es):
    • Date
    • Thread