Still wondering if anyone has figured out how to do what I was trying to do, but since it's only 4 items that have superscript, it was really easy to manually do them.
The ActionDescriptor route is still probably the best way to do this, though little bit different that Ro suggested.
You would have to:
1) Do a executeActionGet on the Document and traverse down to find the TextItem Layer that is currently active.
2) Modify the ActionDescriptor object so that it looks like what you want. Looking at ScriptListener code should give you a few clues.
3) Write up the ScriptListener code that does a text modification. Instead of futzing with that 74K beast, just pass in in the ActionDescriptor that you just modified.
This still isn't simple and easy, but doing it like this makes it tractable. The only thing that would throw a wrench in the works is if executeActionGet did not return information complete enough about the TextItem for you to use in an executeAction call to modify/replace the TextItem.
I'll try and take a crack at this over the the next week or two, time permitting.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Tutorial 05: Converting a Color Image to Black and White grayscale BW||DannyRaphael||Photo-Art 101||17||05-22-2011 04:55 PM|
|help with german Photoshop commands please||pure||Photoshop Help||9||06-21-2010 02:33 PM|
|Layer Tutorials..again?||zip022||RP Tutorials||21||11-18-2004 10:10 PM|
|select shape||Peg||Hidden Power Support||7||08-29-2004 06:10 PM|
|Help needed understanding these layers.||peejay||Photo-Based Art||3||01-16-2004 08:15 PM|