|
|
Export Mail signatures to a text file
that's great!
er, i am a complete applescript newbie - is there a way to do this proces in reverse? in other words: is it possible to make changes to all of my signatures at the same time? i have a lot (40something), they're all different, but each has a similar part that i wish to change from time to time. can i do this in some global manner?
Import Mail signatures from a text file
-- this script will import signatures from "sigdata.txt"
-- on your desktop.
-- each signature is multiple lines, separated by a single
-- line consisting solely of two percent signs '%%'
-- for background on why I wrote it, see
-- http://www.enginesofmischief.com/blogs/ramblings/archives/000096.php
-- where there will also be an expanded version someday
property sigdump : (path to desktop as string) & "sigdata.txt"
set sigdump to sigdump as alias
set theFile to open for access (sigdump)
set theText to read theFile using delimiter return
close access theFile
set sigNumber to 0
set sigText to ""
repeat with i from 1 to count of theText
set theLine to item i of theText
if theLine is "%%" then
tell application "Mail"
make new signature with properties {name:sigNumber as text, content:sigText}
end tell
set sigNumber to sigNumber + 1
set sigText to ""
else if sigText = "" then
set sigText to theLine
else
set sigText to sigText & "
" & theLine
end if
end repeat
Import Mail signatures from a text file
The expanded version is now at my web page.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|