• 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: Deleting INBOX.msf for Netscape Email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting INBOX.msf for Netscape Email


  • Subject: Re: Deleting INBOX.msf for Netscape Email
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 06 Aug 2006 12:53:40 +0200

On 1/08/06 22:35, Joe Forzano wrote:
Hey All,

I've got ths script below to trash the INBOX.msf file for a Netscape email user.  It's set to a specific user only at this point.  I'd like to be able to use the script on any users mac, but I can't figure out how to set the following:

1. User directory (the user directory can either be the mac user's name or default).
2. The .slt directory (which is different on every user account).

Perhaps something in the line of following (very crude) code?
HTH,
Axel


set Path2Profiles to (path to home folder as string) & "Library:Mozilla:Profiles:"

-- One could ask the Finder to build the list...
set Temp to {}
repeat with Path2UserProfile in list folder alias Path2Profiles
    if (Path2UserProfile does not start with ".") then
        set Temp to Temp & {contents of Path2UserProfile}
    end if
end repeat

if (count of Temp) is 0 then
    -- No profile found.
    -- Error message and quit?
    error number -128
else if (count of Temp) > 1 then
    -- More than one profile found.
    -- Ask user to select one?
    error number -128
else
    set Path2UserProfile to (Path2Profiles & item 1 of Temp & ":")
end if

set Temp to {}
repeat with Path2Slt in list folder alias Path2UserProfile
    if (Path2Slt does not start with ".") then
        set Temp to Temp & {contents of Path2Slt}
    end if
end repeat

if (count of Temp) is not 1 then
    -- No slt directory found, or more than one found.
    -- Error message and quit?
    error number -128
else
    set Path2Slt to Path2UserProfile & item 1 of Temp & ":"
end if


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Deleting INBOX.msf for Netscape Email (From: "Joe Forzano" <email@hidden>)

  • Prev by Date: Find text with shell script
  • Next by Date: Re: Find text with shell script
  • Previous by thread: Deleting INBOX.msf for Netscape Email
  • Next by thread: Re: get selected text of message in Mail?
  • Index(es):
    • Date
    • Thread