• 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
Anybody use macOS 10.10.x environment?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anybody use macOS 10.10.x environment?


  • Subject: Anybody use macOS 10.10.x environment?
  • From: Takaaki Naganoya via AppleScript-Users <email@hidden>
  • Date: Fri, 17 Jan 2020 15:09:08 +0900

Hi everybody,

Does anyone use macOS 10.10.x env?
I want to ensure the macOS 10.10.x bug.


https://developer.apple.com/library/archive/releasenotes/AppleScript/RN-AppleScript/RN-10_11/RN-10_11.html#//apple_ref/doc/uid/TP40000982-CH111-DontLinkElementID_8

Bug Fixes in macOS 10.11
Coercing NSString objects to string now functions the same as coercing to text
or Unicode text, preserving all characters. [18098890]


<AppleScript>
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions

set errorList to {}

repeat with i from 1 to 65535
        try
                set aStr to string id i
                set aNSString to (current application's NSString's
stringWithString:aStr)

                set aStr to aNSString as string
                set aTxt to aNSString as text

                set aStrID to id of aStr
                set aTxtID to id of aTxt

                if aStrID is not equal to aTxtID then
                        set the end of errorList to {i, aStr, aTxt}
                end if
        end try
end repeat

return errorList
<AppleScript>

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



 _______________________________________________
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

  • Prev by Date: Re: scripting a task in mail
  • Next by Date: [ANN]Piyomaru display drop dialog Library
  • Previous by thread: Re: scripting a task in mail
  • Next by thread: [ANN]Piyomaru display drop dialog Library
  • Index(es):
    • Date
    • Thread