When are we going to be able to get selected text in a Cocoa Application?
When are we going to be able to get selected text in a Cocoa Application?
- Subject: When are we going to be able to get selected text in a Cocoa Application?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 6 May 2005 08:29:29 -0700
It's frustrating not to be able to get selected text in a cocoa
application, or at least in mail.app. I need this ability to be able
to write a simple script to create a .sig from a text snippet in a
message.
-- Michelle
tell application "mail"
set selText to the selected text
-- obviously, the above line does not work now
display dialog "What is the name of the new .sig?" default answer ""
set sigName to the text returned of the result
make new signature at end of signatures with properties {name:
sigName, content: selText}
end tell
--
Don't anthropomorphize computers. They hate that.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden