• 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: Applescript to search filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to search filenames


  • Subject: Re: Applescript to search filenames
  • From: Adam Bell <email@hidden>
  • Date: Fri, 01 Dec 2006 19:32:55 -0400

Title: Re: Applescript to search filenames
One possible solution:

set D to choose folder
set B to {}
tell application "Finder"
       set D to ((files of entire contents of D) as alias list)
        repeat with f in D
              set N to name of contents of f
          set O to owner of contents of f
        if text 1 of N is " " then set end of B to N & ": " & O
end repeat
end tell

At 2:33 PM -0800 12/1/06, David Green wrote:
I would like to create an Applescript application that will search a specified directory for a string of text, or illegal characters.  The app will create a file with the path to the found text, the owner of the file, and the creation date.

I would also like to see statistics on how many "bad" files have been found, and who the common offenders are.

The reason this is being considered is because we have several people ignoring our naming conventions, and creating folders with a 'space' as the first character.  While this works fine on Apple OS's, it creates problems with archiving and maintaining the same conventions across several facilities.  I feel it has become necessary to document the offenders and inconsistencies in naming to solve our problem.

Do any applications like this exist already?

Any advice is greatly appreciated.

Best,

David

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

This email sent to email@hidden

 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Applescript to search filenames (From: "David Green" <email@hidden>)

  • Prev by Date: Re: Applescript to search filenames
  • Next by Date: RE: Odd Finder Behavior
  • Previous by thread: Re: Applescript to search filenames
  • Next by thread: Re: Applescript to search filenames
  • Index(es):
    • Date
    • Thread