• 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: TextEdit, delete all blank lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEdit, delete all blank lines


  • Subject: Re: TextEdit, delete all blank lines
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 9 May 2009 14:44:48 +0200

Le 9 mai 09 à 12:21, has a écrit :

Satyam Satyanarayana wrote:

Hi, Is there a way using apple script to delete all the blank lines
in the "rtf" file created by a TextEdit?

tell application "TextEdit" to delete (every paragraph of document 1 where it is "\n")

Damn... I tried many variations around such constructs without success, hence my very procedural proposal (I'm not speaking about the awful "if characters of paragraph P is {linefeed}..." construct, which was just a left over of my trials and errors; of course, "if paragraph P is linefeed..." would have been much nicer!).


So, I fired TextEdit and Script Editor and tried again and... it worked?!?
Those gremlins...


Thanks,
Axel  _______________________________________________
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: 
 >Re: TextEdit, delete all blank lines (From: has <email@hidden>)

  • Prev by Date: Re: Automatic login
  • Next by Date: Change Creation, Modified Dates
  • Previous by thread: Re: TextEdit, delete all blank lines
  • Next by thread: Applescript + Skype Export Contacts
  • Index(es):
    • Date
    • Thread