Re: Selecting a file by creator
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. |
----------------------------------------------------------------------