Sto cercando di estrarre informazioni sulle immagini inserite in un documento Pages ('09 v 4.3). Il seguente script è il mio tentativo:
tell application "Pages"
tell front document
repeat with pg in pages
tell pg
set im to images
repeat with i in im
tell i
get image data
end tell
end repeat
end tell
end repeat
end tell
end tell
Anche se non genera errori e trova ogni immagine, non restituisce alcun dato e non so perché non lo fa:
get every image of item 1 of every page of document 1
--> {image 1 of foreground layer of page 1 of document id 14126328}
get image data of image 1 of foreground layer of page 1 of document id 14126328
get every image of item 2 of every page of document 1
--> {image 1 of foreground layer of page 2 of document id 14126328}
get image data of image 1 of foreground layer of page 2 of document id 14126328
get every image of item 4 of every page of document 1
--> {image 1 of foreground layer of page 4 of document id 14126328}
get image data of image 1 of foreground layer of page 4 of document id 14126328
...