• 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
Select Finder items by Regular Expression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Select Finder items by Regular Expression


  • Subject: Select Finder items by Regular Expression
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 24 Aug 2005 12:57:41 -0400


Have you ever wished you could easily select a bunch of items in the Finder by regular expression? You're looking at a huge directory full of files and you want to select all the items whose name end in ".jpg" and contain "Fun"?


I'm happy to announce "Select Regular Expression", a perl/AppleScript hybrid script that allows just that. Read about it on my blog:

http://www.red-sweater.com/blog/?p=26

Or download it directly from the Red Sweater scripts page:

http://www.red-sweater.com/AppleScript/

For those of you new to regular expressions, I suggest finding a web reference to learn more. For the example cited above, try this for starters:

Fun.*\.jpg$

It means "if the name contains the text "Fun" followed by anything and terminated by ".jpg", then it's a match.

Enjoy!

Daniel

_______________________________________________
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: Select Finder items by Regular Expression
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Folder action to rename files
  • Next by Date: Re: [newby] Detect if a script was started from the command line
  • Previous by thread: Re: on idle() handler in script object
  • Next by thread: Re: Select Finder items by Regular Expression
  • Index(es):
    • Date
    • Thread