Guest
2012-11-11, 11:22 PM
You can assign a sub-dictionary of properties:
Code:
tell application id "OGfl"
set lstSeln to selection of front window
set oShape to item 1 of lstSeln
tell canvas of front window
--tell oShape to set {thickness, draws shadow} to {"Adjusted", 3, false}
set properties of oShape to {thickness:4, draws shadow:true}
set text of oShape to "Sample"
properties of oShape
end tell
end tell
text however, does seem to be a recalcitrant property, and there are generally some screen refresh issues with setting text formatting through applescript - there seems to be a lag between the model seen by applescript and the image seen by the user. A scripted zoom can sometimes show an updated image, but reverting to the old zoom will still show the pre-script image.
--
Last edited by RobTrew; 2012-11-11 at 11:34 PM..