macOS 27, Golden Gateのベータ版(Beta 2)を利用していますが、従来のβよりもマシといえど、やはりβ版であることを感じさせます。
標準搭載アプリのバージョンが割といいかげん
各アプリのバージョン表記でおかしいところがあります。「ヒント(Hints)」はバージョン27.0がおそらく正しい番号ですが、1.0が割り当てられています。
メッセージ(Messages)もバージョン26.0が割り振られていますが、(何も意図がなければ)27.0が正しい番号でしょう。バージョン番号を見て判定するような処理には不安があります。
| macOS 15.5 | macOS 26.0 | macOS 27.0 | |
| Finder | 16 | 16 | 27 |
| System Events | 1.3.6 | 1.3.6 | 1.3.6 |
| 連絡先(Contacts) | 14 | 14 | 14 |
| Safari | 18 | 19 | 27 |
| Photos | 10 | 11 | 12 |
| Reminders | 7 | 7 | 7 |
| Notes | 4.12.6 | 4 | 4 |
| Messages | 14 | 14 | 26 |
| 16 | 16 | 16 | |
| Music | 1.5.5 | 2 | 2 |
| Maps | 3 | 3 | 3 |
| Preview | 11 | 11 | 11 |
| TextEdit | 1 | 1 | 1 |
| Calendar | 15 | 16 | 27 |
| TV | 1.5.5 | 2 | 2 |
| QuickTime Player | 10 | 10 | 10 |
| Automator | 2 | 2 | 2 |
| Terminal | 2 | 2 | 2 |
| Console | 1 | 1 | 1 |
| Instruments | 16 | 26 | 27 |
| ScriptEditor | 2.11 | 2.11 | 2.11 |
| System Information | 11 | 11 | 11 |
| VoiceOver Utility | 10 | 10 | 10 |
| Shortcuts | 7 | 7 | 10 |
| Screen Sharing | 5 | 6 | 7 |
| ヒント(Hints) | 16 | 26 | 1 |
standard additionの用語を使う際に注意
Cocoa Script(use framework “Foundation”あるいは”Cocoa”を含むAppleScript)において、コンパイル(構文確認)時に、standard additionsの予約語を含む場合にエラーになるケースが増えました。
on writeToFileAsUTF8(this_data, target_file, append_data)
tell current application
try
set the target_file to the target_file as text
set the open_target_file to open for access file target_file with write permission
if append_data is false then set eof of the open_target_file to 0
write this_data as «class utf8» to the open_target_file starting at eof
close access the open_target_file
return true
on error error_message
try
close access file target_file
end try
return error_message
end try
end tell
end writeToFileAsUTF8
★Click Here to Open This Script
これだとエラーになります。「using terms from scripting additions」〜「end using terms from」で囲う必要が出てくるケースに遭遇しました。
on writeToFileAsUTF8(this_data, target_file, append_data)
tell current application
using terms from scripting additions
try
set the target_file to the target_file as text
set the open_target_file to open for access file target_file with write permission
if append_data is false then set eof of the open_target_file to 0
write this_data as «class utf8» to the open_target_file starting at eof
close access the open_target_file
return true
on error error_message
try
close access file target_file
end try
return error_message
end try
end using terms from
end tell
end writeToFileAsUTF8


























