如何在 Mac OS X 中选择 .app 内的文件?

发布于 2024-08-14 14:20:20 字数 319 浏览 4 评论 0原文

我正在尝试在 eclipse 中配置 PyDev,作为其中的一部分,我正在尝试将一些源文件夹添加到 PYTHONPATH 的外部库部分。但是,当我在 Eclipse 中单击“添加源文件夹”时,它不允许我深入到任何 .app 目录。通常,在常规 Finder 中,我会右键单击并选择“显示包内容”,但是通过 Eclipse 中的“添加源文件夹”,所有 .app 都显示为灰色,我无法右键单击它们。关于如何克服这个问题有什么想法吗?具体来说,我希望深入研究 GoogleAppEngineLauncher.app。我对 Mac 还很陌生,所以我猜(希望?)这个解决方案对于你们中的一个人来说是简单而明显的。

谢谢

I'm trying to configure PyDev in eclipse, and as part of that I'm trying to add some source folders to the External Libraries section for PYTHONPATH. However, when I click "Add source folder" in eclipse, it's not letting me drill into any .app directories. Normally, in regular Finder, I would right click and choose "Show Package Contents", but through the "Add Source Folder" in Eclipse, all the .apps are greyed out and I can't right click on them. Any ideas on how I get past this? Specifically, I'm looking to drill into the GoogleAppEngineLauncher.app. I'm still very new to Macs, so I'm guessing (hoping?) the solution is easy and obvious to one of you out there.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝情姑娘 2024-08-21 14:20:20

.app 只是目录,您可以这样对待它们。如果您可以手动输入路径,我认为这会起作用(它适用于我使用过的其他程序)。

至于从文件对话框中钻取包,也许是可能的,但我还没有找到如何实现。

刚刚检查了这个&它对我有用(您必须在弹出窗口中手动输入完整路径):

The "Go To Folder…" keyboard shortcut (⌘⇧G) works from within "Open" or "Save"
dialogues    and should allow access to the interior of packages by entering
a path...

此快捷方式可以在查找器中的任何位置使用,对于访问那些隐藏的文件夹(例如 /etc 和 /etc )很有用。 /usr

.app's are just directories and you can treat them as such. If you can manually type the path, i think that would work (it does with other programs I've used).

As for drilling into the package from the file dialog, it may be possible, but I haven't found how.

Just checked this & it worked for me (you'll have to manually type the full path in the popup):

The "Go To Folder…" keyboard shortcut (⌘⇧G) works from within "Open" or "Save"
dialogues    and should allow access to the interior of packages by entering
a path...

This shortcut works anywhere from finder, useful for getting to those hidden folders such as /etc & /usr

故笙诉离歌 2024-08-21 14:20:20

当 Eclipse 调出文件打开对话框时,切换到 Mac Finder,浏览到 .app,通过右键单击 > 深入查看它。显示包内容,然后将所需的文件或文件夹从 Finder 窗口拖到 Eclipse 仍在显示的文件打开对话框中。

When Eclipse brings up the file-open dialog, switch over to the Mac Finder, browse to the .app, drill down into it with right-click > Show Package Contents, and then drag the file or folder you want from the Finder window onto the file-open dialog that Eclipse is still showing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文