Dev 53: file links not working

Posted July 2, 2008 by Matthew

File links don't work. They appear without a hyperlink underline, and can't be clicked on as hyperlinks.

Message links, on the other hand, work as expected.

And what about Address Book links? Will they be supported sometime in the future?

This is evolving into an impressive little application.

Matthew Crider - July 2, 2008 7:27 AM

Matthew, you have to command-click the link for it to open.

See, Jesse, command-click to open a file is NOT intuitive. Please change so that just simply clicking a file link will open the file and let command-click reveal in Finder.

Matt

jesse - July 2, 2008 7:29 AM

File links should be working in 53, or at least they do for me. Do you have "Enable smart links" checked in the general preferences? Also does the file link start with "file:///", for example this links to a file on my desktop "file:///Users/jesse/Desktop/myfile.txt".

I don't know anything about address book links... where can I find more info? What programs currently support them?

Rob Cope - July 2, 2008 10:07 PM

I don't know anything about address book links... where can I find more info? What programs currently support them?

Voodoo Pad supports them. Sorry, I don't have a pointer to the docs, but the URLs look like this:

addressbook://D826C0FD-4B7B-4FA2-8E2F-368D3EFFF48F:ABPerson

Object ID and class I'm guessing.

The nice thing about Voodoo Pad's approach is that you just type the name. If it finds a match in the Address Book, it renders it as a link. It would be neat if TaskPaper did something similar -- i.e. what is stored in the document is "Joe Smith", but when the doc is parsed have TaskPaper render it as a link and track the url internally. That avoids the ugly URL, and meaningless links if the doc is opened on other computers.

Rob

jesse - July 4, 2008 8:25 AM

Voodoopad style auto recognition of names is probably a way off. But right now TaskPaper will actually recognize the address book link that you posted. I'm not sure how to get that link from address book yet at the moment... but if you could figure that out then you could have a workable, if a little ugly system.

T^2 - July 7, 2008 7:53 PM

I think I may have figured out at least my problem with this linking issue. If the file path ('file:///' plus all the rest of it) contains any spaces anywhere in it, no link gets generated for me. The path appears as just text. If it contains no spaces at all, then the link appears as expected.

So file:///foo/foo/file-name.doc works for me, but neither file:///foo's files/foo/file-name.doc nor file:///foo/foo/file name.doc works.

At least this is what it does for me.

jesse - July 8, 2008 11:24 AM

You can make it work by replacing any spaces with '%20'... though TaskPaper should really be doing this for you. It's now on my list.

Topic's comments