|
|
#8 |
|
MVP
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,617
|
Well I can help converting the Text or rtf file into webarchives.
Convert from rtf ( or you can change to txt ) Code:
tell application "Finder" set sourcePath to (choose folder with prompt "Please select the source directory") set sig_webAs to (items of folder sourcePath whose name extension is "rtf") as alias list end tell repeat with i from 1 to number of items in sig_webAs set this_item to POSIX path of item i of sig_webAs tell application "System Events" set sig_xml to do shell script "Textutil -convert webarchive " & quoted form of this_item log sig_xml end tell end repeat Convert from webarchive to rtf or .... Code:
tell application "Finder" set sourcePath to "Macintosh HD:Users:UserName:Library:Mail:Signatures" as alias set sig_webAs to (items of folder sourcePath whose name extension is "webarchive") as alias list end tell repeat with i from 1 to number of items in sig_webAs set this_item to POSIX path of item i of sig_webAs tell application "System Events" set sig_xml to do shell script "Textutil -convert rtf " & quoted form of this_item log sig_xml end tell end repeat Also I have not had time to test the import, but you should note the is a "SignaturesByAccount.plist" file that may also need updating
__________________
"". |
|
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|