Greetings, folks!

Whenever I script the opening of any files with more than 63 characters in the name, I get an error:

An invalid file name was specified (MacOS Error code: -37)


for example:

a file named "I Once Had a Sparrow Alight Upon My Shoulderaaaabbbbbzzz1234567" will open

but

a file named "I Once Had a Sparrow Alight Upon My Shoulderaaaabbbbbzzz12345678" will not open

Thoughts on how to resolve this? I can click on the file and it will open just fine; I can also open the file via an open file dialog box, but it will return the error when called in a script.

Thanks!

--

Richard Fairbanks
[EMAIL PROTECTED]


P.S. FYI, the file I'm referencing is a quote by Henry David Thoreau:

“I once had a sparrow alight upon my shoulder for a moment, while I was hoeing in a village garden, and I felt that I was more distinguished by that circumstance than I should have been by any epaulet I could have worn.”


--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to