• 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: Finding a location in a text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding a location in a text file


  • Subject: Re: Finding a location in a text file
  • From: Jim Brandt <email@hidden>
  • Date: Sun, 20 Nov 2005 18:57:25 -0600

tell application "Tex-Edit Plus"
	tell front document
		search looking for "want"
		if result is true then
			set | selection offset | to offset of selection
			set | last delete position | to | selection offset | - 1
			delete (text 1 thru character | last delete position |)
		end if
	end tell
end tell


Thanks, Kai, that's exactly what I needed!


Jim Brandt _______________________________________________ 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
  • Prev by Date: Re: Safari source code
  • Next by Date: open for access with administrative privileges
  • Previous by thread: Re: Finding a location in a text file
  • Next by thread: Re: Producing Unicode-only characters
  • Index(es):
    • Date
    • Thread