• 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
Delete an Invisible File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete an Invisible File


  • Subject: Delete an Invisible File
  • From: "Steve Valenti" <email@hidden>
  • Date: Thu, 18 Feb 2010 16:59:59 -0500
  • Thread-topic: Delete an Invisible File

I need to create a script to delete an invisible file in a folder. The folder will be on a mounted SMB drive file server. I’m not seeing how I can reference the invisible file since this bit won’t work.

 

tell application "Finder"

       delete (every file of folder "PathToFolder" whose name is ".DS_Store")

end tell

 

I’m guessing this might be a job for a shell script but I don’t know any shell scripting to use the “do shell” command in AppleScript. Can anyone give me a hand?

The reason I need to delete this file is because when I try to copy a folder that contains this file to a Microsoft SharePoint server, it errors.

 _______________________________________________
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: Delete an Invisible File
      • From: Brian Christmas <email@hidden>
    • Re: Delete an Invisible File
      • From: Luther Fuller <email@hidden>
    • Re: Delete an Invisible File
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Recording and Exporting Video with QuickTime and AppleScript
  • Next by Date: Re: Delete an Invisible File
  • Previous by thread: Re: Proper use of set myFiles to every file in folder
  • Next by thread: Re: Delete an Invisible File
  • Index(es):
    • Date
    • Thread