• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
When are we going to be able to get selected text in a Cocoa Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: When are we going to be able to get selected text in a Cocoa Application?
      • From: kai <email@hidden>
  • Prev by Date: Re: How to use the "Find" command in Tiger Finder?
  • Next by Date: Re: Nice Automator article on O'Reilly
  • Previous by thread: Tiger: How to set the top Radio Button of a Show Info window ?
  • Next by thread: Re: When are we going to be able to get selected text in a Cocoa Application?
  • Index(es):
    • Date
    • Thread