• 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: Selecting a file by creator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a file by creator


  • Subject: Re: Selecting a file by creator
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 25 Apr 2001 08:50:05 -0700

On 4/25/01 7:54 AM, Kevin Diffily <email@hidden> wrote:

>select (every file whose file creator is "CSOm")

You have to specify the folder from which they're going to be moved.

Here's an example from a script that I wrote; it uses the age of the file
rather than the file creator, and moves the files to the trash, but the
principle is the same.

tell application "Finder"
set thefilelist to every item of ,
thefilepath whose modification date is less than longAgo
move items of thefilelist to the trash
end tell

Of course, "thefilelist" and "longAgo" are defined elsewhere in the
script.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Screen Blanking-duh...
  • Next by Date: Re: Selecting a file by creator
  • Previous by thread: Re: Screen Blanking-duh...
  • Next by thread: Re: Selecting a file by creator
  • Index(es):
    • Date
    • Thread