Copy string to clipboard

Hi again,

Is there a way to copy a specific string to clipboard using a raw command?

Reason I'm asking is this:
I'm using Dropbox, and sync files are kept in a regular folder. If I was to copy a public direct url to a file, I could use to right click context menu.
That will copy to my clipboard a URL that look something like this:

http://dl.getdropbox.com/u/666666/my_file.txt

Where 666666 is my user id. and my_file.txt is the selected file.

I was wondering if there's a way to bypass the context menu and create a command that will build this URL and copy it to my clipboard.

Any suggestions?
Thanks in advance.


Now playing: Death Cab For Cutie - Bixby Canyon Bridge

Well, I guess it doesn't get much more simple than that:

@nofilenamequoting
Clipboard SET http://dl.getdropbox.com/u/6666/{file} 

Thanks, I guess I need to spend more time playing around with arguments before posting :slight_smile:


Now playing: Death Cab For Cutie - Long Division

Now, just in case someone is interested, I created a button that copies the selected file and the public URL to the clipboard.
This is the fastest and easiest way I found to share files [pretty much like ImageShack, but for all types of files].

@nodeselect 
@nofilenamequoting
Go "C:\My Dropbox\Public" OPENINDEST 
COPY 
Clipboard SET http://dl.getdropbox.com/u/666666/{file}

Where "C:\My Dropbox\Public" is the dropbox location on the local computer. And 666666 is dropbox user id.

If anybody has any other suggestions or improvements, please feel free.


Now playing: Death Cab for Cutie - Marching Bands Of Manhattan

If you only want to copy the file then you can simplify it to this:

@nodeselect @nofilenamequoting COPY TO "C:\My Dropbox\Public" Clipboard SET http://dl.getdropbox.com/u/666666/{file}