Pages v15.1ことPages Creator Studio v15.1において、従来のPages v14.x系のAppleScript系のバグが修正されていました。
AppleScriptの処理系のバグではなく、Pages側のバグで、タイトルにも書いていますが、
「現在のページ+6ページ上しかページ上のオブジェクトにアクセスできない」
というものです。

Pages Creator Studio v15.1+macOS 26.3β上では、問題なく6ページを超える範囲のページ上のオブジェクトにアクセスできているように見えます。propertiesを取得して、カウントして、内容を書き換えるテストをパスしています。
ただ、こうして検証用のAppleScriptを見直してみると、汎用オブジェクトへのアクセスを行う「iWork item」という用語(必須。ないと困る)が、「Creator Studio」という名前と合っていないような気がしないでもありません。
意味的には「general purpose item」とかいうあたりが正しいんでしょうけど、「creator studio item」とかいうんでしょうか。
| AppleScript名:ページ上のアイテムへのアクセス上限チェック(バグ解消チェック).scpt |
| tell application "Pages Creator Studio" tell front document set pCount to count every page count every iWork item of every page end tell end tell |
| AppleScript名:ページ上のアイテムへのアクセス上限チェック(バグ解消チェック2).scpt |
| tell application "Pages Creator Studio" tell front document set pCount to count every page repeat with i from 1 to pCount tell page i set tList to every table if length of tList > 0 then set aTable to first item of tList –表のセル内容を書き換え tell aTable set aProp to properties –とくに意味なし set cCount to count every row repeat with ii from 1 to cCount tell row ii tell cell 1 set value to "9" end tell end tell end repeat end tell end if end tell end repeat end tell end tell |


























