| View previous topic :: View next topic |
| Author |
Message |
amitk
Joined: 13 Mar 2008 Posts: 7
|
Posted: Thu Jun 12, 2008 5:00 pm Post subject: Remove Empty Lines In Task Created From Email in Outlook |
|
|
The subject says it all.
When I drag an email from Outlook and drop it on Tasks icon in left navigation pane, a new task window is displayed. The concept is good but the only problem is that it embeds extra empty lines in the resulting task body and I end up removing them manually every time to make the task look good or just ok.
Is there a script which can remove all extra lines in such scenario from selected text in the task body?
Thanks.
Regards. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Thu Jun 12, 2008 5:15 pm Post subject: |
|
|
is it plain text? if so, you can copy to the clipboard and do a stringreplace _________________
(Common Answers) |
|
| Back to top |
|
 |
amitk
Joined: 13 Mar 2008 Posts: 7
|
Posted: Fri Jun 13, 2008 5:40 am Post subject: |
|
|
I actually want to do it in place, without switching to any other application or launching any tool. Just a hot key and done!
I am attaching snapshot of email and then the resulting task, to demo what I mean. It is HTML text we are talking about.
Email:
Task Created From Email:
Thanks. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Jun 13, 2008 6:13 am Post subject: |
|
|
| engunneer wrote: | | is it plain text? if so, you can copy to the clipboard and do a stringreplace |
my comment stands
| Code: |
;select text and hit windows + c
#c::
send, ^x
Clipwait, 1
Stringreplace, clipboard, `n`r, `n, All
send, ^v
return
|
you will have to fiddle. _________________
(Common Answers) |
|
| Back to top |
|
 |
amitk
Joined: 13 Mar 2008 Posts: 7
|
Posted: Fri Jun 13, 2008 10:03 am Post subject: |
|
|
thanks but it doesn't work right.
here is whatI created from the help manual:
| Code: | ;select text and hit windows + c
#c::
send, ^x
Clipwait, 1
; Remove all blank lines from the text in a variable:
Loop
{
StringReplace, clipboard, clipboard, `r`n`r`n, `r`n, UseErrorLevel
if ErrorLevel = 0 ; No more replacements needed.
break
}
send, ^v
return
| [/quote]
but this doesn't work either. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Jun 13, 2008 5:23 pm Post subject: |
|
|
what does it do? nothing? _________________
(Common Answers) |
|
| Back to top |
|
 |
amitk
Joined: 13 Mar 2008 Posts: 7
|
Posted: Sat Jun 14, 2008 1:27 am Post subject: |
|
|
something unexpected and at times nothing.
can you fix it? and once you see verify it , could you please post it here.
thanks. |
|
| Back to top |
|
 |
|