For testing purposes, I've created a folder named "tiddlywiki-folder"
under the documents folder in my user directory. I downloaded
"TiddlySaver.jar" from the official site and put it in that folder, in
addition to the official Tiddlywiki (both empty and full, and both
file names don't contain spaces; not sure if that accounts for
anything anyway. Thought I read something about that, though maybe it
also had something to do with the plugin - I found two, both also
didn't work, maybe because they're PowerPC only? I'm not sure).
I'm pretty confused about what next to do.
Where the site says, "the file is found at /Users/your-user-
name/.java.policy", I first thought that there's a file in my home
directory that i'm supposed to modify with the code shown on the site,
but there's no such file in my home directory (I did search for hidden
file).
So i just downloaded the file (first with Safari, but it removed the
dot in front of the file name, so then with Firefox. I thought that
maybe there should be a warning about that on the site; after all,
tiddlysaver is for Safari, amongst other browsers, so I'd guess that
users who want to edit Tiddlywikis in Safari also try to download the
files in Safari) and saved it in my user directory, as instructed then
removing the "my" from "my documents" in both cases in that file to
make it Os X specific.
Now, I'm relatively positive that this is not the way I'm supposed to
do this, and true enough, it doesn't work.
There are java.policy (no dot in front of file names) files under /
system/library/frameworks/javavm.framework/versions that are editable
with administrator priviledges, though for some reason any changes
made can't be made even with write access (funnily enough, I'm pretty
sure that it worked yesterday, having read something else related to
making saving in Safari possible, although it didn't have anything to
do Tiddlywiki - I undid the changes after that didn't help though).
Haven't downloaded the "Java for Mac OS X 10.4, Release 5" update so
I'm not sure if that has anything to do with it.
In any case, I'm at a loss of how to get saving of Tiddlywikis in
Safari to work and looking for some help :).
That does make it tricky, as that dot is the difference between Java
finding your policy and not finding it!
The sample .java.policy downloads to my desktop as java.policy
(without the leading dot). Open that file using TextEdit. Make your
changes. eg, from the info you've given above it should look like:
grant codeBase "file:${user.home}/Documents/tiddlywiki-folder/*" {
permission java.io.FilePermission "${user.home}${/}Documents$
{/}tiddlywiki-folder${/}*", "read,write";
};
Now select File > Save as. Save as ".java.policy" (with the leading
dot), and Where must be your Home folder. Click Save. TextEdit will
ask to append a ".txt" extension. Don't append. Next it will say names
that start with a dot are reserved. Use ".".
If you need to find it again to edit, use the Finder File > Find.
Search your Home folder for items where their Name contains
".java.policy" and where their Visibility is invisible. The
".java.policy" file will appear. Open with TextEdit, etc.
HTH,
Andrew
I guess I had a writing error somewhere. Or maybe it was because I had
edited the file while Safari was still open and tried to save the
tiddlywiki before restarting Safari, which, I just figured out,
doesn't work.
In any case, thank you for your help :). Problem is solved.
Another question - is there any way to easily include subfolders?
On Jun 10, 1:15 pm, zabaglione <sumsuc...@myway.com> wrote:
> Another question - is there any way to easily include subfolders?
Add a second permission line identical to the one in my post, except
with the "*" near the end replaced with a "-".