Re: TextEdit, delete all blank lines
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