Current crsor position in TextEdit?
Dear all,
How can I find out the current cursor position in TextEdit? It's bound to be possible somehow, but I don't seem to be able to find it in the TextEdit dictionary.
I imagine there are also ways of getting the current highlighted text and its position, so if you happen to know that, please let me know!
Regards, Max
--------------
I've tried this, with various synonyms for cursor:
tell application "TextEdit"
set x to the number of the paragraph of the cursor of the front document
end tell
How can I find out the current cursor position in TextEdit? It's bound to be possible somehow, but I don't seem to be able to find it in the TextEdit dictionary.
I imagine there are also ways of getting the current highlighted text and its position, so if you happen to know that, please let me know!
Regards, Max
--------------
I've tried this, with various synonyms for cursor:
tell application "TextEdit"
set x to the number of the paragraph of the cursor of the front document
end tell
Mac OS X (10.4.2)