Here's a version for Windows that should just work (tm) on Vista-and-newer
where Powershell is installed by default:
chomp(readall(`powershell -Command
"[System.Reflection.Assembly]::LoadWithPartialName(\"System.Windows.Forms\")
| Out-Null;
\$dialog = New-Object System.Windows.Forms.OpenFileDialog;
\$dialog.InitialDirectory=\"$(pwd())\";
\$dialog.ShowDialog() | Out-Null;
\$dialog.FileName"`))
It even works on XP if you've manually installed powershell at some point.
Replace pwd() with desired starting location.
Not sure if anything quite as short is possible on OSX or Linux.
-Tony
On Tuesday, February 24, 2015 at 7:18:19 PM UTC-8, Steven G. Johnson wrote:
>
> On Tuesday, February 24, 2015 at 10:16:25 PM UTC-5, Steven G. Johnson
> wrote:
>>
>> Yes, something like the EasyDialogs <http://pymotw.com/2/EasyDialogs/>
>> Python package would be great.
>>
>
> (EasyDialogs doesn't work anymore and was never cross-platform, but that
> sort of interface seems useful.)
>