Re: Listing Files, Deleting Files
Re: Listing Files, Deleting Files
- Subject: Re: Listing Files, Deleting Files
- From: Philip Aker <email@hidden>
- Date: Fri, 7 Aug 2009 14:19:05 -0700
On 2009-08-07, at 13:59:00, Steve Thompson wrote:
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
set target_dir to (path to desktop folder as text) & "ToBeZipped:" tell application "System Events" to delete (every file of folder target_dir whose visible is false) Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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