Re: Mail.app Scripting Problem...
Re: Mail.app Scripting Problem...
- Subject: Re: Mail.app Scripting Problem...
- From: Norman Cohen <email@hidden>
- Date: Wed, 15 Mar 2006 21:54:51 -0800
Actually, there is a fix available using a Mail bundle to reimplement
the ability to script signatures.
<http://macupdate.com/info.php/id/20967>
I've installed it on my MacBookPro and on my old Alum G4 and am now
able to update the contents of an existing signature. Hooray!
Take care,
Norm
---
Norman A. Cohen
email@hidden
"Time is an illusion. Lunchtime doubly so."
Douglas Adams
On Mar 15, 2006, at 18:46 PM, Conall O'Brien wrote:
Hello,
I'm trying to write a basic AppleScript to set the context of a
signature in Mail.app. I intend to read the signature value from a
file
(I'm a Unix user, with randomly generated .signature files)
So far, my script looks like:
tell application "Mail"
activate
set SigTotal to count signature
repeat with i from 1 to SigTotal
set SigName to name of signature i
if SigName is equal to "Personal" then
set the content of signature i to "Testing 123"
end if
end repeat
end tell
Which dies with "Mail got an error: NSInternalScriptError".
Does anyone have any suggestions?
--
Conall O'Brien
http://www.conall.net
"If programming in Pascal is like being put in a straightjacket, then
programming in C is like playing with knives, and programming in C+
+ is
like juggling chainsaws."
- Anonymous.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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