Re: Add signatures to Mail
Re: Add signatures to Mail
- Subject: Re: Add signatures to Mail
- From: has <email@hidden>
- Date: Mon, 7 Oct 2002 17:19:03 +0100
Gunnar H Reichert-Weygold wrote:
>
The subject says it. I'm trying to automatically add a very long list
>
of taglines to Mail's database. The following script adds the first sig
>
and then waits until it times out. Suggestions?
Can't advise you on the Mail part, but something else... consider using a
repeat loop instead of cut-n-paste repetition: much neater, and easier to
add extra taglines to.
======================================================================
property _addy : "AIM/iChat: email@hidden"
property _tags : {"Laptop: Where my cats sleep.", "Purrrrranoia -
[NO-BREAK]The feeling that your cat is up to something", "Put your
[NO-BREAK]cat in box, add postage and mark 'Schroedinger.'", "I
[NO-BREAK]understand life and the universe. Cats are beyond me."}
tell application "Mail"
repeat with theCount from 1 to count of _tags
set sigText to "---------" & return & _addy & return & return &
[NO-BREAK]item theCount of _tags
make new signature with properties {name:theCount,
[NO-BREAK]content:sigText} --[or whatever]
end repeat
end tell
======================================================================
HTH
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.