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

Re: DS Store


  • Subject: Re: DS Store
  • From: Geoff Graham <email@hidden>
  • Date: Thu, 13 Aug 2009 21:55:05 -0400

Are you sure it's copying the ds_store files; or is the mac creating new ones on remote volumes as soon as new files appear (as it is wont to do)?

This in the terminal will tell the finder or desktop services or whatever to stop that:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

HTH,
Geoff

On Aug 13, 2009, at 10:42 AM, Steve Digby wrote:

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 (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
References: 
 >DS Store (From: Steve Digby <email@hidden>)

  • Prev by Date: Re: Using \U \L in regular expressions
  • Next by Date: RE: DS Store
  • Previous by thread: Re: DS Store
  • Next by thread: RE: DS Store
  • Index(es):
    • Date
    • Thread