• 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
DS Store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DS Store


  • Subject: DS Store
  • From: Steve Digby <email@hidden>
  • Date: Thu, 13 Aug 2009 15:42:44 +0100
  • Thread-topic: DS Store

Hi,

I am using a Mac OS X version 10.5.8


Using filemaker, we create tab separated text files that are exported to the
originalFolderPath in the script below, before using a Troy file plugin to
clean the text, so the file can be sent via EDI.

The problem I have, is when I use the script below to move the file to the
destination folder which is automatically scanned by our EDI provider.

Although the script is only supposed to copy files with names ending
"inv.txt", it also copies the ds_store into the destination folder. Because
all files in the destination folder are automatically processed by our EDI
provider, we regularly get error messages for the ds_store files.

Is there anthing I could put in the script to prevent the ds_store from
being copied.


Any help would be greatly appreciated.

Regards,

Steve.



set originalFolderPath to "Central Storage:Shipping:EDI FILES:tmp:inv tmp:"


set newFolderPath to "Central Storage:Shipping:EDI FILES:Freeway:invoice:"

tell application "Finder"

    set fileList to every file in folder originalFolderPath
    repeat with i from 1 to count fileList
        set thisFilePath to item i of fileList
        if name of thisFilePath ends with "inv.txt" then
            duplicate thisFilePath to folder newFolderPath with replacing
        end if
    end repeat
end tell

tell application "Finder"
    try
        delete (every item of folder "inv tmp" of folder "tmp" of folder
"EDI FILES" of folder "Shipping" of disk "Central Storage" whose name ends
with "inv.txt")

    end try

end tell



Lasgo Chrysalis Limited. Registered in England & Wales No. 1380166.
Part of the Chrysalis Plc.
Registered office: The Chrysalis Building, Bramley Road, London W10 6SP

 _______________________________________________
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

  • Follow-Ups:
    • Re: DS Store
      • From: Geoff Graham <email@hidden>
    • Re: DS Store
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Using \U \L in regular expressions
  • Next by Date: Re: DS Store
  • Previous by thread: Re: Using \U \L in regular expressions
  • Next by thread: Re: DS Store
  • Index(es):
    • Date
    • Thread