Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Snow and Pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Snow and Pages



Hello

Under 10.4.11, I was able to run this kind of script:

set accidentals to {"A1", "A2", "A3"}

tell application "Pages"
activate
tell document 1
set theWords to get words
repeat with i from 1 to count of theWords
if item i of theWords is in accidentals then
set properties of word i to {font name:"ArialUnicodeMS"}
end if
end repeat
end tell
end tell

Under 10.6.0, it refuse to compile.

The words 'properties' and 'font name' remain in purple.

Same thing if I replace
set properties of word i to {font name:"ArialUnicodeMS"}
by
set font of word i to "ArialUnicodeMS"

In this case, it's 'font' which is not recognized.

This seems to be a bug. Isn't it ?

Yvan KOENIG (VALLAURIS, France) mardi 1 septembre 2009 12:46:55


 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.