• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mail.app Scripting Problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mail.app Scripting Problem...
      • From: Norman Cohen <email@hidden>
    • Re: Mail.app Scripting Problem...
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: Re: Creating raw applevents in cocoa
  • Next by Date: Re: Mail.app Scripting Problem...
  • Previous by thread: Re: Creating raw applevents in cocoa
  • Next by thread: Re: Mail.app Scripting Problem...
  • Index(es):
    • Date
    • Thread