• 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
Selecting Files in a Spotlight Window with System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selecting Files in a Spotlight Window with System Events


  • Subject: Selecting Files in a Spotlight Window with System Events
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 29 May 2015 07:14:29 -0500

Hey Folks,

I updated my script for selecting files in the front Finder window for the Keyboard Maestro list, and of course someone ran it on a Spotlight search window.  :)

That's a no-no of course, and I updated the script to avoid such confrontations.

While I was at it I wondered about selecting files in search windows via System Events, and this is the result so far.

-------------------------------------------------------------------------------------------
tell application "System Events"
  tell application process "Finder"
    tell outline 1 of scroll area 2 of splitter group 1 of front window
      set selected of (rows where value of its text field 1 of UI element 1 contains ".jpg") to true
    end tell
  end tell
end tell
-------------------------------------------------------------------------------------------

Unfortunately the script serially selects each file one-by-one instead of en mass.

I'm wondering if anyone has mastered this little problem.

Thank you.

--
Best Regards,
Chris

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

This email sent to email@hidden

  • Prev by Date: Re: Can I speed up Mail content setting?
  • Next by Date: Re: Can I speed up Mail content setting?
  • Previous by thread: clear all overrides in a document, including tables?
  • Next by thread: Re: Select Files in Front Finder Window
  • Index(es):
    • Date
    • Thread