View Full Version : Script needed to reveal file in Nautilus

May 18th, 2011, 02:30 PM
I'm writing an app in which I'd like to provide a button the user can click and it'll open the folder containing the file and select it.

I have AppleScript code to do this on OS X and VBScript for Windows, but now I need to implement this on Linux and I'm coming up empty in Google.

Thanks in advance for any insights you can share.

May 18th, 2011, 02:36 PM
well, if you have the full path of the file, finding the dir is easy:

dirname ${FILE}

as for selecting it ... you may need read nautilus docs and ask for help in the gnome irc chatroom.