Getting name of file uploaded

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Getting name of file uploaded 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!
nriley
 
Posts: 19
Joined: Mon Sep 12, 2011 1:19 pm

Re: Getting name of file uploaded 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Getting name of file uploaded 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.
nriley
 
Posts: 19
Joined: Mon Sep 12, 2011 1:19 pm


Return to Support