Title: Re: Bulk editing of Signatures?
On 4/26/02 6:32 AM, "Dave Mancuso" <[EMAIL PROTECTED]> wrote:

> Before I go doing this by hand, is there any way I can find and replace two
> pieces of text in all of my signatures at once? I need to change my phone
> extension and email address in all of my random sigs. I put the file into
> BBEdit and fooled around with it, but it lost all the carriage returns when I
> put it back....
> --Dave

Do it by AppleScript:


tell application "Microsoft Entourage"
    set allSigs to every signature whose include in random is true
    repeat with theSig in allSigs
        set theContent to content of theSig
        set AppleScript's text item delimiters to {" x1234"}
        set parsedContent to text items of theContent
        set AppleScript's text item delimiters to {" x9876"}
        set theContent to parsedContent as string
        set AppleScript's text item delimiters to {"[EMAIL PROTECTED]"}
        set parsedContent to text items of theContent
        set AppleScript's text item delimiters to {"[EMAIL PROTECTED]"}
        set theContent to parsedContent as string
        set AppleScript's text item delimiters to {""}
        set content of theSig to theContent
    end repeat
end tell

--
Paul Berkowitz

Reply via email to