• 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
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 28 Jun 2009 06:25:33 -0700

On Jun 28, 2009, at 5:38 AM, Richard L. Zijdeman wrote:

Stata is a statistical package with an editor through which you can
run commands. However TextWrangler is of course a much more advanced
editor and therefore I would like to use that.

This should do it:

tell application "TextWrangler"
set alpha to startLine of (get the selection)
set omega to endLine of (get the selection)
set AppleScript's text item delimiters to return
set the selected_paragraphs to (paragraphs alpha through omega of (get the contents of text document 1)) as text
end tell

-- Michelle

-- 
"There's some good in the world, Mr. Frodo, and it's worth fighting for."

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >(no subject) (From: "Richard L. Zijdeman" <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Excel format cels as number with Applescript
  • Previous by thread: (no subject)
  • Next by thread: SorryWrongList(no subject)
  • Index(es):
    • Date
    • Thread