Oops, I missed an other oddity.
The very end must be edited as : if EnglishRecords is not {} then set NotificationMessageEn to "Language: English" & linefeed & ("Words count: " & EnWordsCount as text) & linefeed & "Pages count: " & (EnPageCount as text) & linefeed & "Price (Eu): " & (EnDocPrice as text) & linefeed & linefeed else set NotificationMessageEn to "no English message" end if if LithuanianRecords is not {} then set NotificationMessageLt to "Language: Lithuanian" & linefeed & ("Words count: " & LtWordsCount as text) & linefeed & "Pages count: " & (LtPageCount as text) & linefeed & "Price (Eu): " & (LtDocPrice as text) & linefeed & linefeed else set NotificationMessageLt to "no Lithuanian message" end if if RussianRecords is not {} then set NotificationMessageRu to "Language: Russian" & linefeed & ("Words count: " & RuWordsCount as text) & linefeed & "Pages count: " & (RuPageCount as text) & linefeed & "Price (Eu): " & (RusDocPrice as text) else set NotificationMessageRu to "no Russian message" end if
The original code failed if one of the three lists was empty.
Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) vendredi 26 mai 2017 19:10:56
|