[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] error when using .gui method on an Instr




On 21 Dec 2007, at 18:47, James Harkins wrote:

On Dec 21, 2007, at 1:13 PM, felix wrote:

thisProcess.interpretCmdLine could set nowExecutingPath with Document.current.path
and unset it if there is a fatal error.

... and the error printout becomes useless for troubleshooting. I'm not sure we want to make that a general situation.

It occurs to me that there may be another solution. Just have a different method

+ Main {

notSureWhatToCallThis {

^thisProcess.nowExecutingPath ? Document.current.path
}

}

That would work for my purpose, which was just to have an alternative to Document.current.path which would work both with an open document and in executeFile.

Not sure if that's better, but...

S.