Delete an Invisible File
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