• 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
Dodge .DS_Store files in Folder Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dodge .DS_Store files in Folder Action
      • From: John Stewart <email@hidden>
    • Re: Dodge .DS_Store files in Folder Action
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >Re: Localize weekdays (From: has <email@hidden>)

  • Prev by Date: Quark - Picture Box Bounds
  • Next by Date: Re: Dodge .DS_Store files in Folder Action
  • Previous by thread: Re: Localize weekdays
  • Next by thread: Re: Dodge .DS_Store files in Folder Action
  • Index(es):
    • Date
    • Thread