Page 1 of 1

Getting name of file uploaded

PostPosted: Sat Sep 07, 2013 10:14 pm
by nriley
I am using the upload functionality of Hazel. I have "If file exists:" set to "rename the file".

Is there any way to discover if/how the file was renamed? I want to construct a URL out of the filename but I can't do that unless I know what the destination file was.

If this feature doesn't exist already, a simple idea would be to rename the original file to the same name as the uploaded version. That way I can use it in easily in a Growl notification, too.

Here is my rule (the shell script just copies the URL to the clipboard) if the above isn't clear. In fact I just used it to upload this image:

Image

Thanks!

Re: Getting name of file uploaded

PostPosted: Mon Sep 09, 2013 12:22 pm
by Mr_Noodle
There's no way to do that now. In the future, I may consider setting an attribute with that value.

Re: Getting name of file uploaded

PostPosted: Mon Sep 09, 2013 1:10 pm
by nriley
Thanks! This is not a common problem but I just wanted to get the request in.