• 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
Re: Finder's insertion location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder's insertion location


  • Subject: Re: Finder's insertion location
  • From: Lee Noble <email@hidden>
  • Date: Fri, 4 Feb 2005 10:12:12 +0000


On Feb 4, 2005, at 09:41, John Stewart wrote:

On 02/03/05 at -0000 Lee Noble said this

I've no idea if this is possible. I spent the last few hours trying to
solve it as a brainteaser. I've tried a couple of different methods but
it seems impossible. Even with UI Scripting trying to click where the
search box is doesn't work as far as I can tell.


Here's what I have. I'm trying to set the value of the text field. I'm
definitely referring to the correct element but it won't have it.
Run this script and check out the event log in Script Editor. It seems
to indicate that setting the value the way I am trying is impossible.
If you enter some text into the search field and then run the script
you can see the value you have entered in the element properties but
you can't change the properties.

I've tried setting it's focused to true, it's selected to true. None
work.
Someone of course may run with what I've started and solve it for you.
If you figure it out make sure you post it, it's bugging ME now!


Is this what you are trying to do? You didn't specify what text field and there can be more than one.

tell application "Finder" to activate
tell application "System Events" to tell process "Finder"
    keystroke "f" using {command down} -- open find
    tell window "Find" to keystroke "filename"
end tell

BTW sending a tab character will cause it to switch the focus to the next element. Use care as this may not be what you expect it to be.

No, I think he's trying to set focus to the Search text field in the toolbar of a Finder window. There is a Search AND a Find button.
I don't know why, I just took it on as a problem yesterday for some reason but I couldn't make anything work. Tabbing about doesn't do anything in the Finder, I tried that. You may not have it on your toolbar or it may have fallen off the end or you may not have your tool bar fully expanded to see the text field. Just mention that in case you've never used it and have had it hidden for the last year and forgotten about its existence. It's like the Google search box in Safari.
Lee


_______________________________________________
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


References: 
 >Re: Finder's insertion location (From: John Stewart <email@hidden>)

  • Prev by Date: Re: return command of idle event handler
  • Next by Date: Re: Building applescript records with lists, accessing applescript records with strings
  • Previous by thread: Re: Finder's insertion location
  • Next by thread: scripting data into sheets
  • Index(es):
    • Date
    • Thread