• 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
Trashing OE's "Old " files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Displaying Dialog with text only
  • Next by Date: Illustrator Text Extraction
  • Previous by thread: Re: Droplet question
  • Next by thread: Re: Trashing OE's "Old " files.
  • Index(es):
    • Date
    • Thread