Page 1 of 1

Getting filenames via Automator / Growl

Posted: Wed Sep 06, 2006 8:28 am
by Fuzzy
So I've decided to switch over to BitRocket for my Torrenting and as such want to emulate some of the features that I'm giving up from Azureus in favor of a UI that doesn't look like a bag of ass.

I have made an automator workflow that sorts the files downloaded in my downloads to another folder and opens them in BitRocket. Ideally BitRocket would have a Growl notification for adding a new torrent built in, but until then I have the automator action set up to tell me that a new torrent has been added.

What I want to know is if there's a way to pass filename variables through the automator action to the Growl alert and display the filename. Is this possible at all?

(in the time it's taken me to type this up, I've figured out another solution to a bit of this, but I am digging Automator for a second)

Posted: Wed Sep 06, 2006 11:24 pm
by moksha
What's your other solution? I too have a setup like yours, but being able to show the file names would be great.

Posted: Wed Sep 06, 2006 11:31 pm
by The_Tick
Umm, why not use applescript and folder actions?

Posted: Thu Sep 07, 2006 5:08 am
by Fuzzy
The_Tick wrote:Umm, why not use applescript and folder actions?
a) I don't know Applescript.
b) It seems like Automator should be able to do this just fine.
c) It's currently a folder action.
d) Seems like if the Growl action is being included, it should have this kind of basic functionality.

My other solution was not for the Growling but rather for the file moving. I forgot that Omniweb has per-site download locations, which solves the sorting. However passing filenames to the Growl alert seems...unpossible unless I'm missing something.

Posted: Thu Sep 07, 2006 5:19 am
by m2e
Fuzzy wrote:
The_Tick wrote:Umm, why not use applescript and folder actions?
a) I don't know Applescript.
b) It seems like Automator should be able to do this just fine.
c) It's currently a folder action.
d) Seems like if the Growl action is being included, it should have this kind of basic functionality.

My other solution was not for the Growling but rather for the file moving. I forgot that Omniweb has per-site download locations, which solves the sorting. However passing filenames to the Growl alert seems...unpossible unless I'm missing something.
The only way i can think of for Automator to give Growl the file name would be to do the Script action, but that brings us back to the point you would need to learn to program for this work :(

Posted: Thu Sep 07, 2006 5:40 am
by The_Tick
You could just use the Applescript we ship with Growl in the Scripts directory.

Posted: Thu Sep 07, 2006 5:44 am
by Fuzzy
The_Tick wrote:You could just use the Applescript we ship with Growl in the Scripts directory.
Hey, if I wanted an easy solution, I'd ask!

Jerk.

;)

Will report back with progress.

Posted: Thu Sep 07, 2006 6:12 am
by The_Tick
That wasn't funny dude.