Re: Import vs Macintosh Aliases
- To: mathgroup at smc.vnet.net
- Subject: [mg130760] Re: Import vs Macintosh Aliases
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Fri, 10 May 2013 00:32:47 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <kmd190$4jg$1@smc.vnet.net>
On 2013-05-08 08:10:08 +0000, James Stein said: > Prelude for those not familiar with Macs: > > Some Macintosh Files are "aliases", meaning that its file content is > interpreted by the Mac OS as a (generalized) filename referencing a > "target" file. > Double-Clicking (opening) an alias file actually opens the target file > referenced by the alias file. > Software can distinguish alias files from other files, if desired. > > Question: > > It appears to me that Mathematica's Import function is oblivious to alias > files, returning errors such as: > Import::infer : Cannot infer format of file "logo.jpg". > A search for "Alias" in the help system returns nothing relevant (IMO). > Is there any workaround? > I can imagine dropping briefly into C-code, but I've never done that before > and the scheme seems fraught with complications. Perhaps instead of aliases you could use symlinks. Then you woulnd't have to deal with this problem. (You'd have the same problem with shortcuts on Windows)