• 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
Re: Sierra mail problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sierra mail problem


  • Subject: Re: Sierra mail problem
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 08 Nov 2016 21:59:29 +0900

It must be a bug!

<AppleScript>
tell application "Mail"
set aList to name of every signature
--> {missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value}

set bList to content of every signature
--> {missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value, missing value}

set cList to properties of every signature
--> {{class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}, {class:item}}
end tell
</AppleScript>
--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/


2016/11/08 21:42、Jeremy Roussak <email@hidden>のメール:

I’ve a script which has been working very well for a long time which now fails under Sierra. The code is

tell application "Mail"
activate
set msg to make new outgoing message with properties {visible:true, sender:"Jeremy Roussak <email@hidden>", subject:(caseName & ", " & caseNumber), content:timeText}
set msg's message signature to signature "kings"
end tell

The offending line is the message signature line. There is definitely a signature “kings”, but Mail doesn’t want to provide access to it.

tell application "Mail"
get signatures
end tell

returns

{signature "default" of application "Mail", signature "kings" of application "Mail”}

but 

tell application "Mail"
set sigs to get signatures
properties of second item of sigs
end tell

gives

error "Mail got an error: Can’t get signature \"kings\"." number -1728 from signature “kings"


Any ideas gratefully received!

Jeremy

Jeremy Roussak
email@hidden


Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
References: 
 >Sierra mail problem (From: Jeremy Roussak <email@hidden>)

  • Prev by Date: Sierra mail problem
  • Next by Date: Re: Sierra mail problem
  • Previous by thread: Sierra mail problem
  • Next by thread: Re: Sierra mail problem
  • Index(es):
    • Date
    • Thread