Trashing OE's "Old " files.
Trashing OE's "Old " files.
- Subject: Trashing OE's "Old " files.
- From: Gnarlodious <email@hidden>
- Date: Thu, 28 Feb 2002 07:51:53 -0700
This script trashes the Outlook Express databases which appear after the
"Compact database" operation, and have the "Old " prefix.
Except the "Old Database Cache" file, any idea why?
tell application "Finder"
set fileList to the entries in "Apple:Documents:Microsoft User
Data:Identities" whose creators are in {"MSNM"} whose types are in {"OECI",
"OEDB"} to a depth of -1 as alias
repeat with fileAlias in fileList
set fileText to fileAlias as text
set x to the offset of ":" in (the reverse of every character of
fileText) as string
set filename to ((characters -(x - 1) thru -1 of fileText) as text)
if text 1 thru 4 of filename is "Old " then
move alias fileAlias to trash
end if
end repeat
end tell
(Uses AKUA)
Rachel
http://www.gnarlodious.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.