简体   繁体   English

如何在Mac OS X中访问某些文件?

[英]How do I make certain files accessible in Mac OS X?

I have a db file which I want to open using a firefox plugin. 我有一个要使用firefox插件打开的数据库文件。

However, I can't open the file. 但是,我无法打开文件。

I've also got other files like this with other file types. 我还拥有其他类似文件类型的其他文件。

I'm sure I've had this problem before, any ideas ? 我确定我之前遇到过这个问题,有什么想法吗?

替代文字

I've tried... 我试过了...

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

But that didn't work. 但这没有用。

Mac OS X displays all of the files in a particular folder on your disk in its Open/Save common dialogs, but it grays out the ones that are in a format that can't be opened by whatever program's Open/Save dialog you're browsing from. Mac OS X在其“打开/保存”常用对话框中显示磁盘上特定文件夹中的所有文件,但灰色显示的格式无法通过您正在使用的任何程序的“打开/保存”对话框打开从浏览。

The title of the dialog in the screenshot above gives away your problem. 上方屏幕快照中对话框的标题说明了您的问题。 It says "Set Default Directory", which means it's only looking for a folder . 它说“设置默认目录”,这意味着它仅在寻找文件夹 The file "bc.db" is just that: a file. 文件“ bc.db”就是这样:一个文件。 Whatever program you're trying to open it from isn't willing to accept it because a file is not interchangeable with a folder/directory. 无论您要打开的程序是什么,都不愿意接受,因为文件不能与文件夹/目录互换。 That explains why none of your other file types work, either. 这就解释了为什么其他任何文件类型都不起作用。 You need to choose a folder from that dialog to set as the default. 您需要从该对话框中选择一个文件夹以设置为默认文件夹

It's also worth nothing that the .DB extension means that file is a database file of some sort. .DB扩展名意味着该文件是某种数据库文件,这也毫无价值。 It's very likely that it's in a proprietary format that can only be read by one particular application. 它很可能是专有格式,只能由一个特定的应用程序读取。 Thus, even if you try to open it from the Finder, you're not likely to get very far. 因此,即使您尝试从Finder中打开它,也不太可能走得很远。 You need to figure out what program originally generated that file and try to open/use it there. 您需要找出最初由哪个程序生成该文件,然后尝试在那里打开/使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM