Re: Preview in Internet Explorer
Re: Preview in Internet Explorer
- Subject: Re: Preview in Internet Explorer
- From: Steve Bird <email@hidden>
- Date: Sun, 7 Jul 2002 07:48:33 -0400
On Sunday, July 7, 2002, at 06:30 AM, Andreas Monitzer wrote:
On Sunday, July 7, 2002, at 12:14 , Matt Judy wrote:
That is true, however, /tmp is accessable by any user. Web pages can be
of a confidential nature, and the temp files should not be visible to
other users, even if not readable.
Then create a folder inside /tmp called "$MYAPP_$USER" and set its
permissions to 700.
--- So you're going to either:
1... Copy the file being edited and the entire contents of its directory,
and all subdirectories and all THEIR contents, etc. over to the /tmp
folder when you do a preview, or
2... Copy ONLY the file being edited over to /tmp, and let the html code
break because the pictures and other files are not in the same relative
place anymore, or
3... Analyze the (possibly broken) html code and only copy the things it
actually references over to /tmp.
If I'm stuck using an html editor that works like any one of those, I'll
be back to TextEdit in two minutes.
In my view, PageSpinner has it right:
1... If the file being previewed is "MyFile.html", create the temp file in
the same folder as the original, called "MyFile_Preview1653813475641.html"
or something.
2... If the original file has not been saved, you cannot do a preview (it
doesn't know where to put the preview file).
3... When you close "MyFile.html", delete any previews you created for it.
I don't believe in /tmp as a holy grail, especially when the price is as
high as in this case.
Sure, this scheme will leave trash lying around if it quits abnormally.
So make it not crash.
Sure, this scheme fails if "MyFile.html" has a link to "MyOtherFile.html"
and that has a link back to "MyFile,html" and you follow both links.
A person doing html editing should be aware of that.
But it simulates the real web directory without copying a zillion files,
and without destroying the original.
Another approach would be to copy the "MyFile.html" to
"MyFile_Backup126538514.html" or something, and save the preview as
"MyFile.html", although that's got confusion written all over it.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.