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

Re: Trashing OE's "Old " files.


  • Subject: Re: Trashing OE's "Old " files.
  • From: Matthew Smith <email@hidden>
  • Date: Fri, 01 Mar 2002 08:44:36 +1100

You have the file type incorrect. It is OECl (lowercase L, not uppercase i).

You can also do this all without AKUA.

tell application "Finder"
set identityList to every folder of folder <newline>
"G3 To Go:Documents:Microsoft User Data:Identities:";
repeat with oneIdentity in identityList
delete every file of oneIdentity <newline>
whose creator type is "MSNM" and <newline>
file type is in {"OECl", "OEDB"} and <newline>
name starts with "Old"
end repeat
end tell

--
Matthew

on 01/03/2002 01:51, Gnarlodious at email@hidden wrote:

> 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)
_______________________________________________
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.

  • Next by Date: Re: Illustrator Text Extraction
  • Next by thread: Re: Illustrator Text Extraction
  • Index(es):
    • Date
    • Thread