Tiddlysaver problems with Safari on Intel Mac

331 views
Skip to first unread message

zabaglione

unread,
May 31, 2007, 7:15:40 AM5/31/07
to TiddlyWiki
Hi, new here :).
I'm running Safari 2.0.4 on Os X 10.4.9 on an Intel Mac and am trying
to save edits to Tiddlywikis with tiddlysaver, but i'm just getting
the regular javascript-it's-not-possile-to-save-changes dialog.
The reason why it doesn't work is probably caused by the way I was
trying to make it work (due to lack of knowledge of how to do it in
any other way).

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 :).

andrewg_oz

unread,
Jun 4, 2007, 4:50:55 AM6/4/07
to TiddlyWiki
zabaglione wrote:
> I'm running Safari 2.0.4 on Os X 10.4.9 on an Intel Mac and am trying
> to save edits to Tiddlywikis with tiddlysaver
>
> For testing purposes, I've created a folder named "tiddlywiki-folder"
> under the documents folder in my user directory.
>
> 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

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

zabaglione

unread,
Jun 10, 2007, 1:15:34 AM6/10/07
to TiddlyWiki
Hm, funny thing is that I did save the file with the dot in front of
the name using Firefox as said above, and it didn't work.
I did then do what you suggested and replaced the text with yours, and
it worked; later I tried again to do the thing on my own with another
folder, and it didn't work.

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?

andrewg_oz

unread,
Jun 14, 2007, 9:37:29 AM6/14/07
to TiddlyWiki

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 "-".

Reply all
Reply to author
Forward
0 new messages