MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Opening a foreign file from Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78891] Re: Opening a foreign file from Mathematica
  • From: "tom_toad at telus.net" <tom_toad at telus.net>
  • Date: Thu, 12 Jul 2007 05:15:44 -0400 (EDT)
  • References: <f6vnng$qj7$1@smc.vnet.net><f72boa$c63$1@smc.vnet.net>

Hello!   I read these posts about linking to "foreign" files with
great interest.  I have wondered about hyperlinking to non Mathematica files
for some time,  I wish I had known about this sooner.

On my Mac,  I created a Mathematica file, a toplevel folder, and
inside it, a Data folder to hold the files I wanted to link to.  for
the sample below, that file was called test.gsp  (A Geometer's
Sketchpad file)

This worked perfectly,  I was thankful for David's response.
However,  I did find that if the "toplevel" folder name had spaces, it
didn't work.   I could make it very long, no problem, but as soon as
the name had spaces, it didn't work.   Is that the expected
behavior?

I appreciate this group and the input provided.

Sincerely,  Tom De Vries


dir = DirectoryName[ToFileName["FileName" /. NotebookInformation[
             ]]];

subdir = "Data";

filepath = ToFileName[{dir, subdir}, "test.gsp"];

fileLink = StringJoin["file://", filepath];

NotebookLocate[{URL[fileLink], None}];



  • Prev by Date: Re: Graphics - Manipulate Question
  • Next by Date: Re: Book or Manual for 6?
  • Previous by thread: Re: Re: Opening a foreign file from Mathematica
  • Next by thread: Re: Opening a foreign file from Mathematica