Nautilus Dropbox Public URL script

I found that my version of nautilus 3 fails to run,

1. The dropbox extension that they provide(right click file and to select, “copy public link”)

2. Any python extension to nautilus 3.

 

Rants doesn’t work, no one actually listens. The best way around is to do something about it. Here’s the code,

#! /bin/bash
s=`dropbox puburl "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"`
zenity --info --text="$s"

Save that as ~/.gnome2/nautilus-scripts/publink.sh and make it executable. Now you’ll be able to use it to get the public URL for a dropbox public file. Nautilus 3 seems to have deprecated everything!

Advertisements

4 thoughts on “Nautilus Dropbox Public URL script

  1. Great! your script is smart and useful!

    Only one aesthetical question to improve the script. How can I change the context menu to see ‘Dropbox’ instead ‘Script’?

    And add an icon would be gorgeous!

    Reply
    • Sorry to reply so late, your comment was hidden in the mysteries of WP 2.9.2 and the half broken database that I used with it. Alas, on updating to 3.2.1 I see your comment! I don’t know of a way to add an icon for a script, BUT you could use the nautilus way of assigning an icon to anything(almost anything even a text file). Just go to the properties and click on the box with the icon(top left).

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s