Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Syntax error on opening notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20169] Syntax error on opening notebook
  • From: Scot Hawkins <shawkins at comp.uark.edu>
  • Date: Sun, 3 Oct 1999 21:07:37 -0400
  • Organization: The University of Arkansas
  • Sender: owner-wri-mathgroup at wolfram.com

I have several notebooks in Mathematica 3.0 that read in data from a
file in their directory.  I can set the directory okay, although
sometimes it won't let me use a single SetDirectory[] command, and all
works well.  When I go back and reopen the notebook at a later date,
Mathematica gives me an error.  In the popup box, it says

There was a syntax error on line 3 of the cell expression. The error
was:
    \(SetDirectory["\<workin~1\2dfigures\

It opens my file with the cell given as

Cell[BoxData[{

    \(SetDirectory["\<c:\mydocu~1\scot\dissertation\>"]\),

    \(SetDirectory["\<workin~1\2dfigures\>"]\)}], "Input"]

Where before saving, it read

SetDirectory["c:\mydocu~1\scot\dissertation"]
SetDirectory["workin~1\2dfigures"]

This occurs even when I only have a single SetDirectory[] command.

What is going wrong, and how do I fix it so I do not have to retype the
SetDirectory command everytime I want to reopen my document?

Thanks,

Scot



  • Prev by Date: adjusting frame size in plot
  • Next by Date: Integrate with If and Which
  • Previous by thread: Re: adjusting frame size in plot
  • Next by thread: Integrate with If and Which