• 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: John Stewart <email@hidden>
  • Date: Fri, 4 Feb 2005 04:41:06 -0500

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.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Finder's insertion location
      • From: Lee Noble <email@hidden>
References: 
 >Re: Finder's insertion location (From: Lee Noble <email@hidden>)

  • Prev by Date: Re: Odd behavior scripting Terminal's default window
  • Next by Date: Re: applescript batching itself
  • Previous by thread: Re: Finder's insertion location
  • Next by thread: Re: Finder's insertion location
  • Index(es):
    • Date
    • Thread