Re: Listing Files, Deleting Files
Re: Listing Files, Deleting Files
- Subject: Re: Listing Files, Deleting Files
- From: Steve Thompson <email@hidden>
- Date: Fri, 07 Aug 2009 21:59:00 +0100
On 7 Aug 2009, at 21:25, Andrew P wrote: delete the invisible ones, without touching the other files If you're happy to delete the invisible files without checking what they are first...
tell application "System Events" set hidden_files to get the path of every file of folder "some_folder:" whose visible is false
repeat with a_file in hidden_files delete a_file end repeat end tell
Steve
|
_______________________________________________
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