How do I select a file within a .app in Mac OS X?

谁说我不能喝 提交于 2019-12-23 19:34:08

问题


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


回答1:


.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




回答2:


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.



来源:https://stackoverflow.com/questions/1888107/how-do-i-select-a-file-within-a-app-in-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!