I am attempting to develop a plugins, text content will be pushed to the text frame using the plug-ins. What i would like to know is, after pushing the content to text frame, would it be possible to make the content, non-editable by the user? I don't want to use the lock feature, this would lock the entire frame, not allowing user to move, resize, apply attributes etc.
I just want to make the content non-editable, but allowing user to move the frame, resize frame, apply fonts, different point size, colour etc.
Is this is possible, how should i approach this.
Any advise/direction will be much appreciated. Thanks in advance
One possibility would be to rasterize the text after you create it.
Thanks Leo, if i rasterise the text, users won't be able to change the font, size etc...
And also, if there are any further changes needs to be done for the text content, i will be using my plugins to push the revised text content into the text frame.
If you need a standard text frame in which the user can change the font, color, etc, then I don't think you can really forbid content changes. However, you can always listen for the kAIArtSelectionChangedNotifier; when received, check the text object to see whether the user has changed it contentwise, and if so, just change it back.