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

Getting the URL from a webloc?

365 views
Skip to first unread message

AES

unread,
Apr 12, 2008, 11:06:22 AM4/12/08
to
When I'm viewing a web page in Safari, I can drag the icon for that page
from where it appears in the Toolbar to the desktop and create a .webloc
icon (and, presumably, a type .webloc file).

This file presumably contains the URL for the web page, since clicking
this icon later on re-opens the web page.

But, is there any other way to get the URL for that page -- as a text
string -- out of that webloc file later on, other than re-opening the
page and copying the URL from the Toolbar?

If I drag the webloc icon into a TextEdit document, it inserts the name
of the webloc file -- not the URL.

If I drag it into the message body of a Eudora message (wanting to send
the URL to someone else), the webloc file pops up into the Attachments:
field, and nothing appears in the message body.

Right-clicking on the webloc icon doesn't seem to show anything useful

And, good old Finder Help (a) produces no hits on a search for "webloc",
and (b) has no entries for webloc or web location in the "W" section of
its Index.

Wayne C. Morris

unread,
Apr 12, 2008, 12:20:02 PM4/12/08
to
In article <siegman-75014F...@nntp.stanford.edu>,
AES <sie...@stanford.edu> wrote:

> When I'm viewing a web page in Safari, I can drag the icon for that page
> from where it appears in the Toolbar to the desktop and create a .webloc
> icon (and, presumably, a type .webloc file).
>
> This file presumably contains the URL for the web page, since clicking
> this icon later on re-opens the web page.
>
> But, is there any other way to get the URL for that page -- as a text
> string -- out of that webloc file later on, other than re-opening the
> page and copying the URL from the Toolbar?
>
> If I drag the webloc icon into a TextEdit document, it inserts the name
> of the webloc file -- not the URL.

Create a TextEdit document and change it to plain text (Format -> Make
Plain Text). Then drag the webloc file into that document.

AES

unread,
Apr 12, 2008, 1:07:49 PM4/12/08
to
In article
<wayne.morris-29DA...@shawnews.wp.shawcable.net>,

"Wayne C. Morris" <wayne....@this.is.invalid> wrote:

> > If I drag the webloc icon into a TextEdit document, it inserts the name
> > of the webloc file -- not the URL.
>
> Create a TextEdit document and change it to plain text (Format -> Make
> Plain Text). Then drag the webloc file into that document.

Interesting! Works like a charm. Also works with BBEdit. May have to
change my TextEdit initial document pref to plain text.

Too bad it won't work with Eudora -- maybe because Eudora's message
field allows RTF coding.

Wonder why one can't do this direct conversion into RTF documents? --
maybe there are some special characters allowed in URLs that clash with
RTF formatting?

Also realized that Safari has a command that lets one email the URL for
the currently displayed for the currently displayed page. If they'd
allow a default initial To: address to be set for this email, one could
email the URL to a default mailbox in one's email client with just a
one-motion command.

But, why can't one capture and save the current URL in Safari to a text
snippet or file instead of a webloc -- maybe by option-dragging the
current web page icon to the desktop? (or a "Save URL" menu command)

Either of those would meet the desire for a "single-motion" way to
capture the URL.

Jim Redelfs

unread,
Apr 12, 2008, 1:15:57 PM4/12/08
to

> If I drag the webloc icon into a TextEdit document, it inserts the name
> of the webloc file -- not the URL.

I'm sure you aren't interested in "That's not how it works on MY
system." but, it's a fact.

Dragging-and-dropping the .webloc icon onto (and, thereby launching)
TextEdit, produces a TE file with the .webloc filename as its title.
Dragging the .webloc file into the window produces the URL in the window.

For that matter, whether Plain text or RTF format, dragging the .webloc
icon into a open/running TextEdit window pastes the URL properly - at
least for me. Good luck.
--
:)
JR

Mike Rosenberg

unread,
Apr 12, 2008, 1:37:40 PM4/12/08
to
Jim Redelfs <jim.r...@NOSPAMredelfs.com> wrote:

> For that matter, whether Plain text or RTF format, dragging the .webloc
> icon into a open/running TextEdit window pastes the URL properly - at
> least for me. Good luck.

For me, if it's a plain text document I get the URL, but if it's an RTF
document I get the title as a clickable link, which is exactly what I'd
expect for the two types of documents in the first place.

--
<http://designsbymike.net/shop/mac.cgi> Mac and geek T-shirts & gifts
<http://designsbymike.net/election.shtml> Election 2008 goods.
<http://designsbymike.net/shop/prius.cgi> Prius shirts/bumper stickers
<http://designsbymike.net/shop/greet.cgi> Holiday cards with attitude

AES

unread,
Apr 12, 2008, 2:37:01 PM4/12/08
to
In article
<jim.redelfs-0CC8...@news.phx.highwinds-media.com>,
Jim Redelfs <jim.r...@NOSPAMredelfs.com> wrote:

> > If I drag the webloc icon into a TextEdit document, it inserts the name
> > of the webloc file -- not the URL.
>

> For that matter, whether Plain text or RTF format, dragging the .webloc
> icon into a open/running TextEdit window pastes the URL properly - at
> least for me. Good luck.

In the first two responses to my post, you guys are jerking me around
with contradictory answers -- both of which seem to be correct!

I now have two .webloc icons on my desktop. One is named

"Google Advanced Search.webloc"

Dragging this one into an open running TextEdit window with TextEdit set
to RTF format pastes in the text "Google Advanced Search" which is, of
course, not the URL -- but this text is highlighted in blue (I failed to
notice that earlier), and in fact when clicked opens the page

http://www.google.com/advanced_search?hl=en

The second such desktop icon, created in exactly the same way, by
dragging the icon from the Safari Toolbar, has file name

soe.stanford.edu/research/layout.php?sunetid

which is evidently and in fact the URL for the original page, though
with no explicit .webloc suffix appended in this case (auto response by
Finder when file name is too long?). When dragged into the RTF TextEdit
document this icon creates another live link which displays the full text

https://soe.stanford.edu/research/layout.php?sunetid

Note that the "https://" has been prepended to the file name!

No joy with either of them in Eudora, however.

All the above is on a MacBook running Tiger 10.4.11.

Mike Rosenberg

unread,
Apr 12, 2008, 2:51:11 PM4/12/08
to
AES <sie...@stanford.edu> wrote:

> In the first two responses to my post, you guys are jerking me around
> with contradictory answers -- both of which seem to be correct!

If you think people are jerking you around simply by reporting their
observations, I'd love to see what you'd say when people were really
jerking you around.

tacit

unread,
Apr 12, 2008, 5:02:21 PM4/12/08
to
In article <siegman-CED8CA...@nntp.stanford.edu>,
AES <sie...@stanford.edu> wrote:

> Dragging this one into an open running TextEdit window with TextEdit...

Ah. That's what you are doing wrong.

Dragging a file into a TextEdit WINDOW puts the name of the file in the
window. You want to drag the file to the TextEdit ICON, *not* into a
TextEdit WINDOW.

--
Photography, kink, polyamory, shareware, and more: all at
http://www.xeromag.com/franklin.html

Chuck Reti

unread,
Apr 13, 2008, 1:17:30 AM4/13/08
to

> I now have two .webloc icons on my desktop. One is named
>
> "Google Advanced Search.webloc"
>
> Dragging this one into an open running TextEdit window with TextEdit set
> to RTF format pastes in the text "Google Advanced Search" which is, of
> course, not the URL -- but this text is highlighted in blue (I failed to
> notice that earlier), and in fact when clicked opens the page
>
> http://www.google.com/advanced_search?hl=en

If you right-click/ctl-click said blue-highlighted text, one of the
contextual menu choices is "Edit Link...." Select that, and the URL for
the highlighted text's destination will be there in the entry box for
you to copy. More keystrokes, but it is another way to display the URL.
--
Chuck Reti
Detroit MI

Kathy Morgan

unread,
Apr 14, 2008, 2:33:06 AM4/14/08
to
AES <sie...@stanford.edu> wrote:

> But, why can't one capture and save the current URL in Safari to a text
> snippet or file instead of a webloc -- maybe by option-dragging the
> current web page icon to the desktop?

I think you're making things more complicated than they really are.
Highlight the field and cmd-c, then cmd-v into Eudora or any text area.

--
Kathy

nospam

unread,
Apr 14, 2008, 3:24:37 AM4/14/08
to
In article <1ifcwdw.1sh69fk1tdnmrpN%kmo...@spamcop.net>, Kathy Morgan
<kmo...@spamcop.net> wrote:

agreed. cmd-l, cmd-c, cmd-v is fast and works great.

0 new messages