Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Tinderbox applications >> Tinderbox Directory or Index
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1360696268

Message started by MichaelB on Feb 12th, 2013, 2:11pm

Title: Tinderbox Directory or Index
Post by MichaelB on Feb 12th, 2013, 2:11pm

Is there a way to create a TB document that is a master document or index to all my other TB documents?

With links? So if I keep open the master document, I can click on a link to open other documents?

thanks

Michael

Title: Re: Tinderbox Directory or Index
Post by Mark Anderson on Feb 12th, 2013, 2:54pm

Yes and No. The 'No' is that you can't link inside a TBX so as to open both the document and a specific note. That said there are encouraging rumbles in this regard re v6 but nothing announced yet (we'll have to wait and see).

The 'Yes' is you can use the $File attribute. Drag a TBX or some other file or a folder of files onto the 'File' button in the sidebar of a note. Clicking the button opens a pop-up which allows you to tell Finder to pen the stored path. The file or folder is opened in what ever app your Mac thinks that file type should use. Be aware:
  • The paths created are fixed paths not OS aliases. Move the target item in finder and the link won't work any more.
  • Although TB offers user File-type attributes it doesn't offer any easy way to do the 'open target file bit'. Sidenote: a feature request has been discussed so File-type attributes, when displayed as key attributes have an open button akin to those shown for URL-type attributes.
  • The latter means that linking to more than one file per source TB note isn't feasible (certainly in v5.x) unless the target is a folder, though that still means you have to then choose and open a file within the folder.
For my personal TB demo bank (some 275 odd files/folders) - and which is included in Eastgate's tutorial CDs - I use a modified form of the above to get around the fixed path issue.  In short, the TBX outline follows the layout and naming of the demo bank on the OS. All folders and files of note get a note of their own. A special note holds the current OS location of the TBX in a user attribute. An agent then uses the outline structure to construct the correct current $File path for a resource note built of the root path. Thus if the demo bank folder is moved, updating just one attribute makes all the files in the demo bank still accessible. The only limitation is I avoid using spaces (no longer necessary since String.replace() in v5.7.0+) or non-ASCII characters in file/folder names.

Title: Re: Tinderbox Directory or Index
Post by MichaelB on Feb 12th, 2013, 2:57pm

Thanks very much Mark.  I'll check out the tutorial file.


Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.