problem with a hyperlink (button)
- To: mathgroup at smc.vnet.net
- Subject: [mg37891] problem with a hyperlink (button)
- From: Gerald Roth <gerald.roth at aon.at>
- Date: Sun, 17 Nov 2002 06:44:37 -0500 (EST)
- Organization: University of Graz, Austria
- Sender: owner-wri-mathgroup at wolfram.com
hi i have the following problem: i am creating a index notebook for some notebooks that are located in a subdirectory (e.g. /dir1/index.nb points to nb files /dir1/dir2/1.nb /dir1/dir2/2.nb) this should be done independent of the topdir everything is located in and independent of the operating system used. i use a script to generate the "dir" and "name.nb" strings and they are pasted correctly into the ButtonFunction. a friend of mine suggested to use ButtonBox["aszdfg", ButtonData:>{ FrontEnd`FileName[ {"dir"}, "name.nb", CharacterEncoding -> "ISO8859-1"] } ,.... however, this does not work. i tried some things and ended with ButtonBox["open", ButtonFunction:>{ FrontEnd`NotebookOpen[ FrontEnd`FileName[ {"dir"}, "name.nb", CharacterEncoding -> "ISO8859-1"]]}, ButtonStyle->"Hyperlink"] however, this does not work, either. is there a clean way to set hyperlinks with relative paths ?? thanks for your help gerald roth -- ************************************* Gerald Roth M@th Desktop Development Tel: +43 - 316 - 57 16 33 Email: Gerald.Roth at aon.at *************************************