Static Text of Window 1 converted to text.

If I run this in Script Editor…


tell application "System Events" to tell process "Script Editor" to set front_window_static_text_1 to static text of window 1

I get this:

{static text “Running…” of window “Untitled 12” of application process “Script Editor” of application “System Events”, static text “—” of window “Untitled 12” of application process “Script Editor” of application “System Events”, static text “Untitled 12” of window “Untitled 12” of application process “Script Editor” of application “System Events”}

How would I set “Running…” to a text variable? I can’t make the above intro a string or text, and can’t seem to grab any of the actual “static text” and return it as text.

I’ve exhausted my bag of AppleScript tricks! ???

You want the value

tell application "System Events" to tell process "Script Editor" to set front_window_static_text_1 to value of static text of window 1

:o

Hahaha. This forum is awesome. That’s the answer I needed. Thanks SO much!