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

Unix & Windows path for URL

0 views
Skip to first unread message

Howard Brazee

unread,
Nov 1, 2009, 8:30:32 AM11/1/09
to
I synchronize my Firefox bookmarks at home and with my work Windows
machine.

At work, it has the following bookmark:
file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.html

At home, that same document is at:
/Users/HBrazee/Documents/My Work's Documents/home/home_page.html

I'd like somehow to have a bookmark that worked both places.

I expect I would either luck out to find a variable that worked in the
path, create a directory the right place to fit an existing variable,
or create variables some how (I don't know how to implement them in
either environment).

How can I get a bookmark that worked on both machines to find the same
document?

Warren Oates

unread,
Nov 1, 2009, 9:49:58 AM11/1/09
to
In article <sn2re5577rufpqo0s...@4ax.com>,
Howard Brazee <how...@brazee.net> wrote:

> How can I get a bookmark that worked on both machines to find the same
> document?

I'm not sure I understand the question. There's nothing stopping you
from creating a directory named "C" on your Mac's hard drive, though, or
creating one on Winders named "Users" for that matter.
--
Suddenly he realized that he was alone
with a giant halfwit on a dark deserted street.
-- Chester Himes

Jolly Roger

unread,
Nov 1, 2009, 10:30:46 AM11/1/09
to
In article <sn2re5577rufpqo0s...@4ax.com>,
Howard Brazee <how...@brazee.net> wrote:

Use Xmarks:

<http://www.xmarks.com/>

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR

Howard Brazee

unread,
Nov 2, 2009, 11:22:19 AM11/2/09
to
On Sun, 01 Nov 2009 09:30:46 -0600, Jolly Roger <jolly...@pobox.com>
wrote:

>> How can I get a bookmark that worked on both machines to find the same
>> document?
>
>Use Xmarks:
>
><http://www.xmarks.com/>

I do. But the document is on my Mac at home and it's on my Dell at
work. I want the bookmark that Xmarks picks up to somehow work to
find the document on my currently used computer.

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison

Howard Brazee

unread,
Nov 2, 2009, 11:28:04 AM11/2/09
to
On Sun, 01 Nov 2009 09:49:58 -0500, Warren Oates
<warren...@gmail.com> wrote:

>In article <sn2re5577rufpqo0s...@4ax.com>,
> Howard Brazee <how...@brazee.net> wrote:
>
>> How can I get a bookmark that worked on both machines to find the same
>> document?
>
>I'm not sure I understand the question.

I want the same URL to find a document on my hard drive when I'm at
work on my Dell, to find a document on my hard drive when I'm at home
on my Mac. I was figuring I would need to use some kind of variable
in it.

>There's nothing stopping you
>from creating a directory named "C" on your Mac's hard drive, though, or
>creating one on Winders named "Users" for that matter.

So I can go to my root and create directories so that I have:
C\Documents and Settings\brazee\My Documents\Home\home.page.html ???

And the following will find it?
file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.html

Warren Oates

unread,
Nov 2, 2009, 12:23:58 PM11/2/09
to
In article <0r1ue5h5h62a5inrj...@4ax.com>,
Howard Brazee <how...@brazee.net> wrote:

> So I can go to my root and create directories so that I have:
> C\Documents and Settings\brazee\My Documents\Home\home.page.html ???
>
> And the following will find it?
> file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.htm
> l

It looks like it should. Try it out.

Howard Brazee

unread,
Nov 2, 2009, 9:10:57 PM11/2/09
to
On Mon, 02 Nov 2009 12:23:58 -0500, Warren Oates
<warren...@gmail.com> wrote:

>In article <0r1ue5h5h62a5inrj...@4ax.com>,
> Howard Brazee <how...@brazee.net> wrote:
>
>> So I can go to my root and create directories so that I have:
>> C\Documents and Settings\brazee\My Documents\Home\home.page.html ???
>>
>> And the following will find it?
>> file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.htm
>> l
>
>It looks like it should. Try it out.

I'm home now.

I went to terminal and created the directory, but it didn't end up
being in root, but was in /users/HBrazee instead. Testing showed
that this did not work.

I'll have to do some research to find out how to get to root.

Chris Ridd

unread,
Nov 3, 2009, 2:04:14 AM11/3/09
to
On 2009-11-03 02:10:57 +0000, Howard Brazee <how...@brazee.net> said:

> On Mon, 02 Nov 2009 12:23:58 -0500, Warren Oates
> <warren...@gmail.com> wrote:
>
>> In article <0r1ue5h5h62a5inrj...@4ax.com>,
>> Howard Brazee <how...@brazee.net> wrote:
>>
>>> So I can go to my root and create directories so that I have:
>>> C\Documents and Settings\brazee\My Documents\Home\home.page.html ???
>>>
>>> And the following will find it?
>>> file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.htm
>>> l
>>
>> It looks like it should. Try it out.
>
> I'm home now.
>
> I went to terminal and created the directory, but it didn't end up
> being in root, but was in /users/HBrazee instead. Testing showed
> that this did not work.
>
> I'll have to do some research to find out how to get to root.

Just add a leading slash when making the directory, ie /C:/Documents...

sudo mkdir /C:
sudo chown HBrazee /C:
mkdir -p "/C:/Documents and Settings/brazee/..."

--
Chris

Warren Oates

unread,
Nov 3, 2009, 8:42:51 AM11/3/09
to
In article <i64ve5tc53ukg1pi0...@4ax.com>,
Howard Brazee <how...@brazee.net> wrote:

> I went to terminal and created the directory, but it didn't end up
> being in root, but was in /users/HBrazee instead. Testing showed
> that this did not work.
>
> I'll have to do some research to find out how to get to root.

What "root" are you looking for? You'd have to login as "root." Your
"home directory" is /Usrs/HBrazee -- that's where your stuff is. You can
open that folder in the Finder under "Go to Folder" if you're looking
for something to click on (tell it ~/). You could presumably have an
alias on your desktop.

Jolly Roger

unread,
Nov 3, 2009, 9:13:39 AM11/3/09
to
In article <7la2veF...@mid.individual.net>,
Chris Ridd <chri...@mac.com> wrote:

All this trouble to access bookmarks in the file system?

Why not just use the bookmarks in the browser, as intended?

Chris Ridd

unread,
Nov 3, 2009, 10:04:40 AM11/3/09
to

I know!

> Why not just use the bookmarks in the browser, as intended?

That's harder when there are two browsers involved running on two
different OSes on two different machines.
--
Chris

Jolly Roger

unread,
Nov 3, 2009, 10:15:52 AM11/3/09
to
In article <7lav48F...@mid.individual.net>,
Chris Ridd <chri...@mac.com> wrote:

But it's not hard at all. This is precisely what Xmarks was designed
for!:

<http://www.xmarks.com/>

I use Xmarks day in and day out on Linux, Mac OS, and Windows, with
Safari, Firefox, and Internet Explorer, and it's simply fantastic.

I suggested Xmarks very early on in this thread (Message-ID:
<jollyroger-715BA...@news.individual.net>). Very often
lately, I get the distinct feeling my advise is completely ignored
here... I don't get it.

Howard Brazee

unread,
Nov 3, 2009, 10:33:33 AM11/3/09
to
On Tue, 03 Nov 2009 08:13:39 -0600, Jolly Roger <jolly...@pobox.com>
wrote:

>All this trouble to access bookmarks in the file system?


>
>Why not just use the bookmarks in the browser, as intended?

That's my goal. Foxmarks/Xmarks uses the same bookmark on my
Windows machine at work as it does on my Mac at home. I want to
click on that bookmark and have it open my document on the hard drive
of the computer I'm on. I was thinking that there might be a
solution using variables in the path name, but Chris has suggested
that I try creating a folder that looks like a Windows folder to the
browser. (I'm going to be out this evening, so I expect to try it
tomorrow evening).

I'm not understanding what your proposal is - how do I use the
bookmark in the browser as intended?

Howard Brazee

unread,
Nov 3, 2009, 11:19:51 AM11/3/09
to
On Tue, 03 Nov 2009 09:15:52 -0600, Jolly Roger <jolly...@pobox.com>
wrote:

>I suggested Xmarks very early on in this thread (Message-ID:

><jollyroger-715BA...@news.individual.net>). Very often
>lately, I get the distinct feeling my advise is completely ignored
>here... I don't get it.

And I replied to you that I am using Xmarks.

If I wasn't synchronizing bookmarks, I would just hand edit the
bookmark in question to point to wherever on my hard drive my document
was. But since I synchronize my bookmarks, I need to have that
bookmark point to a valid document no matter which computer I'm using.

Obviously, most bookmarks point to places on the Web where the address
is the same no matter which computer I'm on. It's the documents that
are on my hard drive that I asked about. At work, if I go to the
following bookmark, I get a hit and it opens up this document:
file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.html

When Xmarks copies that bookmark to my home Firefox on my Mac, I want
it to point to my copy of that document at home. I don't mind
moving things around in either environment, or changing the bookmark
to be less specific. I just want to use the synchronized bookmark
both places.

Mike Rosenberg

unread,
Nov 3, 2009, 2:06:20 PM11/3/09
to
Howard Brazee <how...@brazee.net> wrote:

> >I suggested Xmarks very early on in this thread (Message-ID:
> ><jollyroger-715BA...@news.individual.net>). Very often
> >lately, I get the distinct feeling my advise is completely ignored
> >here... I don't get it.
>
> And I replied to you that I am using Xmarks.
>
> If I wasn't synchronizing bookmarks, I would just hand edit the
> bookmark in question to point to wherever on my hard drive my document
> was. But since I synchronize my bookmarks, I need to have that
> bookmark point to a valid document no matter which computer I'm using.

This doesn't make any sense. The very purpose for using a utility like
Xmarks is so that It Just Works, without the need to go through any
gyrations. I have Xmarks installed on my Mac Pro and on my MacBook, and
my bookmarks are the same on both in Firefox and Safari, as well as in
Safari and Internet Explorer in the WinXP virtual machine I'm running on
both, all "just like that".

--
My latest dance performance <http://www.youtube.com/watch?v=kvB98fgse-s>

Mac and geek T-shirts & gifts <http://designsbymike.net/shop/mac.cgi>
Prius shirts/bumper stickers <http://designsbymike.net/shop/prius.cgi>

Howard Brazee

unread,
Nov 3, 2009, 4:02:39 PM11/3/09
to
On Tue, 3 Nov 2009 14:06:20 -0500, mike...@TOGROUPmacconsult.com
(Mike Rosenberg) wrote:

>This doesn't make any sense. The very purpose for using a utility like
>Xmarks is so that It Just Works, without the need to go through any
>gyrations. I have Xmarks installed on my Mac Pro and on my MacBook, and
>my bookmarks are the same on both in Firefox and Safari, as well as in
>Safari and Internet Explorer in the WinXP virtual machine I'm running on
>both, all "just like that".

Do you have any bookmarks pointing to a .html file on your computer?

Mike Rosenberg

unread,
Nov 3, 2009, 4:48:19 PM11/3/09
to
Howard Brazee <how...@brazee.net> wrote:

> >This doesn't make any sense. The very purpose for using a utility like
> >Xmarks is so that It Just Works, without the need to go through any
> >gyrations. I have Xmarks installed on my Mac Pro and on my MacBook, and
> >my bookmarks are the same on both in Firefox and Safari, as well as in
> >Safari and Internet Explorer in the WinXP virtual machine I'm running on
> >both, all "just like that".
>
> Do you have any bookmarks pointing to a .html file on your computer?

Sorry, I missed your OP, just came into this thread with JR's post about
Xmarks. If it were me, I'd just open the .html file directly on each
computer.

Howard Brazee

unread,
Nov 3, 2009, 9:20:07 PM11/3/09
to
On Tue, 3 Nov 2009 07:04:14 +0000, Chris Ridd <chri...@mac.com>
wrote:

>Just add a leading slash when making the directory, ie /C:/Documents...
>
>sudo mkdir /C:
>sudo chown HBrazee /C:
>mkdir -p "/C:/Documents and Settings/brazee/..."

It asked me for a password, I used the Administrator's password, but
that wasn't accepted. I suppose I need to log off and log on as the
administrator to try again. Is my understanding correct here?

Howard Brazee

unread,
Nov 3, 2009, 9:22:14 PM11/3/09
to
On Tue, 03 Nov 2009 08:42:51 -0500, Warren Oates
<warren...@gmail.com> wrote:

>What "root" are you looking for? You'd have to login as "root." Your
>"home directory" is /Usrs/HBrazee -- that's where your stuff is. You can
>open that folder in the Finder under "Go to Folder" if you're looking
>for something to click on (tell it ~/). You could presumably have an
>alias on your desktop.

That seems to be the kind of solution I want, but I don't know how to
create a book mark that will be parsed on both machines where I can
create a folder with my document.

Jolly Roger

unread,
Nov 3, 2009, 9:48:56 PM11/3/09
to
In article <1j8m691.1nmxkfff1w62oN%mike...@TOGROUPmacconsult.com>,
mike...@TOGROUPmacconsult.com (Mike Rosenberg) wrote:

> Howard Brazee <how...@brazee.net> wrote:
>
> > >This doesn't make any sense. The very purpose for using a utility like
> > >Xmarks is so that It Just Works, without the need to go through any
> > >gyrations. I have Xmarks installed on my Mac Pro and on my MacBook, and
> > >my bookmarks are the same on both in Firefox and Safari, as well as in
> > >Safari and Internet Explorer in the WinXP virtual machine I'm running on
> > >both, all "just like that".
> >
> > Do you have any bookmarks pointing to a .html file on your computer?
>
> Sorry, I missed your OP, just came into this thread with JR's post about
> Xmarks. If it were me, I'd just open the .html file directly on each
> computer.

I'm glad *someone* is reading my posts! : D

Howard Brazee

unread,
Nov 3, 2009, 10:21:39 PM11/3/09
to
On Tue, 03 Nov 2009 20:48:56 -0600, Jolly Roger <jolly...@pobox.com>
wrote:

>> Sorry, I missed your OP, just came into this thread with JR's post about


>> Xmarks. If it were me, I'd just open the .html file directly on each
>> computer.
>
>I'm glad *someone* is reading my posts! : D

I've read your posts, I just haven't figured out how it answers my
original question.

Message has been deleted

Chris Ridd

unread,
Nov 4, 2009, 1:52:14 AM11/4/09
to
On 2009-11-04 02:20:07 +0000, Howard Brazee <how...@brazee.net> said:

> On Tue, 3 Nov 2009 07:04:14 +0000, Chris Ridd <chri...@mac.com>
> wrote:
>
>> Just add a leading slash when making the directory, ie /C:/Documents...
>>
>> sudo mkdir /C:
>> sudo chown HBrazee /C:
>> mkdir -p "/C:/Documents and Settings/brazee/..."
>
> It asked me for a password, I used the Administrator's password, but
> that wasn't accepted. I suppose I need to log off and log on as the
> administrator to try again. Is my understanding correct here?

Sudo prompts for *your* password and will succeed if your account is
"an administrator of this machine", or whatever the Accounts preference
pane calls it.

So in your case it looks like you need to log in as an "administrator"
and then sudo will prompt for that account's password.
--
Chris

Mike Rosenberg

unread,
Nov 4, 2009, 7:26:31 AM11/4/09
to
Jolly Roger <jolly...@pobox.com> wrote:

> I'm glad *someone* is reading my posts! : D

What's confusing me is that Howard has responded to each of your posts.

Howard Brazee

unread,
Nov 4, 2009, 7:59:42 AM11/4/09
to
On Wed, 4 Nov 2009 06:52:14 +0000, Chris Ridd <chri...@mac.com>
wrote:

>> It asked me for a password, I used the Administrator's password, but


>> that wasn't accepted. I suppose I need to log off and log on as the
>> administrator to try again. Is my understanding correct here?
>
>Sudo prompts for *your* password and will succeed if your account is
>"an administrator of this machine", or whatever the Accounts preference
>pane calls it.

I don't think I have a password for *my* account.

>So in your case it looks like you need to log in as an "administrator"
>and then sudo will prompt for that account's password.

That's what I figured, thanks.

Jolly Roger

unread,
Nov 4, 2009, 10:33:18 AM11/4/09
to
In article <1j8nbbb.1ca77zx1x54daqN%mike...@TOGROUPmacconsult.com>,
mike...@TOGROUPmacconsult.com (Mike Rosenberg) wrote:

> Jolly Roger <jolly...@pobox.com> wrote:
>
> > I'm glad *someone* is reading my posts! : D
>
> What's confusing me is that Howard has responded to each of your posts.

Hmm... Perhaps it is *me* who is not reading *his* posts, because he
matches one of my kill filters! : / Got a Message ID handy?

Howard Brazee

unread,
Nov 4, 2009, 11:30:49 AM11/4/09
to
On Wed, 04 Nov 2009 09:33:18 -0600, Jolly Roger <jolly...@pobox.com>
wrote:

>> What's confusing me is that Howard has responded to each of your posts.


>
>Hmm... Perhaps it is *me* who is not reading *his* posts, because he
>matches one of my kill filters! : / Got a Message ID handy?

That could be. I guess you won't see this message, but if you do,
you may wish to modify your kill filter to mark messages as read.

That way you won't normally see the messages when you "read unread" -
but when things don't make sense in a thread, you have the ability to
check the original kill-filtered message.

Howard Brazee

unread,
Nov 4, 2009, 8:00:06 PM11/4/09
to
On Tue, 3 Nov 2009 07:04:14 +0000, Chris Ridd <chri...@mac.com>
wrote:

>Just add a leading slash when making the directory, ie /C:/Documents...


>
>sudo mkdir /C:
>sudo chown HBrazee /C:
>mkdir -p "/C:/Documents and Settings/brazee/..."

That did the job, and works. I went to my Xmarked bookmark
file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.html

and it took me to home_page.html that I copied into Macintosh
HD:C/:Documents and Settings:brazee:My Documents:home:home_page.html

Would it have worked without the chown command?

Chris Ridd

unread,
Nov 5, 2009, 2:39:01 AM11/5/09
to
On 2009-11-05 01:00:06 +0000, Howard Brazee <how...@brazee.net> said:

> On Tue, 3 Nov 2009 07:04:14 +0000, Chris Ridd <chri...@mac.com>
> wrote:
>
>> Just add a leading slash when making the directory, ie /C:/Documents...
>>
>> sudo mkdir /C:
>> sudo chown HBrazee /C:
>> mkdir -p "/C:/Documents and Settings/brazee/..."
>
> That did the job, and works. I went to my Xmarked bookmark
> file:///C:/Documents%20and%20Settings/brazee/My%20Documents/Home/home_page.html
>
> and it took me to home_page.html that I copied into Macintosh
> HD:C/:Documents and Settings:brazee:My Documents:home:home_page.html
>
> Would it have worked without the chown command?

It shouldn't have. The first "sudo mkdir" would have created the top
directory owned by "root", and you wouldn't have been able to write to
it. The "sudo chown" made it owned by you.
--
Chris

0 new messages