Re: AppleScript/Automator Help
Re: AppleScript/Automator Help
- Subject: Re: AppleScript/Automator Help
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 28 Aug 2007 10:43:04 -0700
- Thread-topic: AppleScript/Automator Help
>> 1. If there are no new files, do nothing
>> 2. If there are files that have been deleted, do nothing
>> 3. if there are files that have been added, create an email to a
>> particular email address, add some boilerplate copy and include a
>> list of the "new" files.
So I think the issue is keeping track of what files are new and what files
are old.
The simplest solution I think would be to use properties.
Save your script as an application and the properties will retain their
value between runs.
Create a property (fileList) that will keep a list of every file alias
that's been processed.
Get a list of every file in the directory.
If it's not in the fileList property, add it to the end of fileList then do
your stuff.
To clean up you may want to loop through your fileList property and remove
any aliases to files that are no longer in the directory.
If you want a more concrete example, let me know.
HTH,
ES
_______________________________________________
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