Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Thanks Bit Twister, John, & Michel!

0 views
Skip to first unread message

Ohmster

unread,
Mar 18, 2010, 9:36:36 AM3/18/10
to

Hey Guys,

Thanks ever-so-much for helping me get the urls done in a timely manor. It
is people like you that make this a terrific community newsgroup and that
will promote the use of (or at least make people comfortable with.) Linux.
You had the answers and you were not afraid to roll up your sleeves to get
the job done. Thank you very much.

--
~Ohmster | ohmster59 /a/t/ gmail dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.

Mike Jones

unread,
Mar 18, 2010, 2:50:46 PM3/18/10
to
Responding to Ohmster:

> Hey Guys,
>
> Thanks ever-so-much for helping me get the urls done in a timely manor.
> It is people like you that make this a terrific community newsgroup and
> that will promote the use of (or at least make people comfortable with.)
> Linux. You had the answers and you were not afraid to roll up your
> sleeves to get the job done. Thank you very much.


So what did you eventually end up with as /your/ solution(s) ?

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.

Ohmster

unread,
Mar 21, 2010, 9:47:33 PM3/21/10
to
Mike Jones <lu...@dasteem.invalid> wrote in
news:pan.2010.03...@dasteem.invalid:

>> Hey Guys,
>>
>> Thanks ever-so-much for helping me get the urls done in a timely
>> manor. It is people like you that make this a terrific community
>> newsgroup and that will promote the use of (or at least make people
>> comfortable with.) Linux. You had the answers and you were not afraid
>> to roll up your sleeves to get the job done. Thank you very much.
>
>
> So what did you eventually end up with as /your/ solution(s) ?

Oh, I went with BT's html generator, he really put a lot of work into it
and it did a bang up job for sure. But I immediately used John's grep
code because he was fast and he got the job done on like the first or
second try. I kept both and use them in my script directory, they are my
tools now that I will save and cherish, but a new issue has arisen,
partly due to Michel's "help". He suggested using IE to create the
bookmarks.htm file which of course was the correct answer for the
immediate problem. I have since gotten more advanced and because of his
answer, got myself in another hole and will need the scriptwriters again
to clean up the html that IE produces when it makes a bookmark.htm file.
I taught the customer how to export his links from IE and it makes nice
links with the click text what you want to say, different from the
actual URL. So now my customer (I am a small time computer and web
expert for hire and actually get substantial income this way.) is
exporting his htm files to me and they look like this

AbsoluteArts.com.url
Art Calendar.url
Art-Jean Claude Arts.url

Underneath it looks like this:
<H1>Bookmarks</H1>
<DL><p>
<DT><A HREF="http://www.absolutearts.com/" target="_blank"
ADD_DATE="1264959630" LAST_VISIT="1264959630"
LAST_MODIFIED="1263050514"
ICON_URI="http://www.absolutearts.com/favicon.ico"
>AbsoluteArts.com.url</A> <DT><A
HREF="http://www.artcalendar.com/home.asp" target="_blank"
ADD_DATE="1264959630" LAST_VISIT="1264959630"
LAST_MODIFIED="1260718237"
ICON_URI="http://www.artcalendar.com/images/favicon.ico" >Art
Calendar.url</A> <DT><A
HREF="http://www.jeanclaudearts.com/index.html" target="_blank"
ADD_DATE="1264959631" LAST_VISIT="1264959631"
LAST_MODIFIED="1264341883"
ICON_URI="http://www.jeanclaudearts.com/favicon.ico" >Art-Jean
Claude Arts.url</A>

On the surface but the underlying code contains all the h ref stuff. A
nice touch, but no target attribute. I found an easy way to use "search
and replace" in a text editor insert the target tag for me but IE leaves
dirtly html links that work but are filled with useless crap that needs
cleaning out with a script. I tried in vain to come up with a text macro
to do the job and cannot do it. Search and replace won't work either, I
need an experienced linux scriptwriter again and yes, they get praise
and all kind of stroking for it. This is a typical IE bookmark link:

This is the first AbsoluteArts.com.url link code:

<DT><A HREF="http://www.absolutearts.com/" ADD_DATE="1264959630"
LAST_VISIT="1264959630" LAST_MODIFIED="1263050514"
ICON_URI="http://www.absolutearts.com/favicon.ico"
>AbsoluteArts.com.url</A>

Look at all that date, visit, and modified crap! That has to come out to
produce clean code, that is just not acceptible. My search and replace
for the target attribute that works just fine is like this:

<DT><A HREF="http://www.absolutearts.com/" target="_blank"
ADD_DATE="1264959630" LAST_VISIT="1264959630" LAST_MODIFIED="1263050514"
ICON_URI="http://www.absolutearts.com/favicon.ico"
>AbsoluteArts.com.url</A>

Notice the target= before the first ADD_DATE. This makes the link open
in a new window. Ideally, what I want is a script that will take the
first URL that I showed you, strip out the DT, ADD_DATE, and LAST_VISIT
data and insert the target="_blank" tag to produce the following clean
text:

<DT><A HREF="http://www.absolutearts.com/"
target="_blank">AbsoluteArts.com.url</A>

Now that is nice, clean code and I want to be able to input his
bookmarks.htm file and get back the code you see above this line. I will
have to probably post a new help message and hope that I did not over
extend myself. I am a good natured guy and give credit where it is due
so I think people will help. As it is, Cousine Stanley, Bit Twister, and
even Micheal Heiming have all rolled up their sleeves for me and dammit,
I sure do appreciate the hell out of that. They are on pedistals in my
book as great helpes in a chilly world. Let's see if I can get another
session in before the doctor is out. --

Bit Twister

unread,
Mar 21, 2010, 10:43:17 PM3/21/10
to
On Sun, 21 Mar 2010 20:47:33 -0500, Ohmster wrote:

> Oh, I went with BT's html generator, he really put a lot of work into it

Not really.

> I taught the customer how to export his links from IE and it makes nice
> links with the click text what you want to say, different from the
> actual URL. So now my customer (I am a small time computer and web
> expert for hire and actually get substantial income this way.) is
> exporting his htm files to me and they look like this

Post a location where I can download the export file and I'll play
with it.

0 new messages