Dodge .DS_Store files in Folder Action
Dodge .DS_Store files in Folder Action
- Subject: Dodge .DS_Store files in Folder Action
- From: Simon Troup <email@hidden>
- Date: Fri, 28 Jan 2005 17:17:10 +0000
Hi
I've got a big chunk of folder action code that works fine apart from the fact that .DS_Store files seem to keep getting included into the list of dropped files.
I'm trying to find a way to dodge those files from being processed even if they get included in the list.
The stuff in brackets is either explanatory or pseudo code for what I'm trying to do. Thanks in advance for your patience, I know this is a bit newbie, I gave it about three hours (don't laugh!) before throwing the towel in.
---
on adding folder items to this_folder after receiving these_files
repeat with i from 1 to number of items in these_files
if [filename of i is .DS_Store] then
[delete it!]
else
[large bit of working script edited out]
end if
end repeat
end adding folder items to
---
Simon Troup
_______________________________________________
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