• 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: Sorting characters of the text - script doesn't work as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting characters of the text - script doesn't work as expected


  • Subject: Re: Sorting characters of the text - script doesn't work as expected
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 26 May 2017 19:11:20 +0200

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


 _______________________________________________
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

  • Follow-Ups:
    • Re: Sorting characters of the text - script doesn't work as expected
      • From: Brian Christmas <email@hidden>
References: 
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Sorting characters of the text - script doesn't work as expected
  • Next by Date: Re: Sorting characters of the text - script doesn't work as expected
  • Previous by thread: Re: Sorting characters of the text - script doesn't work as expected
  • Next by thread: Re: Sorting characters of the text - script doesn't work as expected
  • Index(es):
    • Date
    • Thread