Results 1 to 2 of 2

Thread: Script needed to reveal file in Nautilus

  1. #1
    Join Date
    Nov 2009
    Location
    Los Angeles
    Beans
    393
    Distro
    Ubuntu

    Script needed to reveal file in Nautilus

    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.

  2. #2
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Script needed to reveal file in Nautilus

    well, if you have the full path of the file, finding the dir is easy:
    Code:
    dirname ${FILE}
    as for selecting it ... you may need read nautilus docs and ask for help in the gnome irc chatroom.
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •