Getting filenames via Automator / Growl

The Growl forums have moved to Google Groups, this forum is read only.
Locked
User avatar
Fuzzy
Harmless
Posts: 17
Joined: Sun Dec 26, 2004 7:52 pm
Location: The People's Republic of California
Contact:

Getting filenames via Automator / Growl

Post 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)
moksha
Latté
Posts: 88
Joined: Mon Jun 12, 2006 8:22 pm

Post 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.
iPwn
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Umm, why not use applescript and folder actions?
User avatar
Fuzzy
Harmless
Posts: 17
Joined: Sun Dec 26, 2004 7:52 pm
Location: The People's Republic of California
Contact:

Post 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.
m2e
Mocha
Posts: 584
Joined: Mon Oct 24, 2005 2:43 am
Location: Melbourne, Australia
Contact:

Post 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 :(
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

You could just use the Applescript we ship with Growl in the Scripts directory.
User avatar
Fuzzy
Harmless
Posts: 17
Joined: Sun Dec 26, 2004 7:52 pm
Location: The People's Republic of California
Contact:

Post 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.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

That wasn't funny dude.
Locked