Anybody use macOS 10.10.x environment?
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