Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Can Import be forced to follow a file symbolic link (a.k.a. alias (Mac) or shortcut (Windows)) to the true file?

share|improve this question
    
Didn't you try it? I just did under OS X, with a symlink to a .txt file, and the target file imported just fine. –  murray May 28 '13 at 19:45
    
I think an alias on Macs is like a shortcut on Windows not a symlink. Both MacOS and Windows nowadays support symlinks (respectively their default filesystems do). See here for what aliases/file-shortcuts are and some additional information. I don't think that there is an easy way to teach Import what the OP wants for aliases/file-shortcuts. For symlinks it will work automatically, of course. –  Albert Retey May 28 '13 at 23:25
    
Thanks. I was assuming that aliases and shortcuts were the same as symbolic links. Too bad they are handled differently. –  Bob Nachbar May 30 '13 at 21:35
    
@murray I don't know what's that Q about :) so please consider a close vote or an answer :) –  Kuba Mar 28 at 1:42
    
I cannot get Import to work with a Mac OS X alias (to a one-line .txt file), although as I reported before, no problem with a Mac symlink. –  murray Mar 28 at 13:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.