Mail.app Scripting Problem...
Mail.app Scripting Problem...
- Subject: Mail.app Scripting Problem...
- From: "Conall O'Brien" <email@hidden>
- Date: Thu, 16 Mar 2006 02:46:09 +0000
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.
Attachment:
signature.asc
Description: Digital signature
_______________________________________________
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