PDA

View Full Version : OSX Folder Actions in Ubuntu?



sicofante
August 7th, 2007, 04:12 AM
I've stumbled upon this tonight:

http://www.simplehelp.net/2007/01/30/folder-actions-for-os-x-explained-with-real-world-examples/

I don't know if something similar exists in Ubuntu. I find it a great idea.

Nikron
August 7th, 2007, 04:43 AM
I've stumbled upon this tonight:

http://www.simplehelp.net/2007/01/30/folder-actions-for-os-x-explained-with-real-world-examples/

I don't know if something similar exists in Ubuntu. I find it a great idea.

Yeah, it'd be fairly simple with either ionotify or periodic scanning with cron.

vexorian
August 7th, 2007, 04:55 AM
heh probably the first thing from OSx I heard and like, this sounds very useful, hope either gnome or KDE clones that...

sicofante
August 8th, 2007, 02:08 AM
Yeah, it'd be fairly simple with either ionotify or periodic scanning with cron.
You mean easy for a developer o easy for an end user? Can you elaborate?

juxtaposed
August 8th, 2007, 02:15 AM
Wow, one thing that I have never seen before and I find really cool and useful.

a12ctic
August 8th, 2007, 02:20 AM
It'd be pretty easy to do probably, ive had folders like that where i just use a batch script to convert them all.

stmiller
August 8th, 2007, 04:35 AM
Nautilus scripting is the closest thing I can think of.

http://g-scripts.sourceforge.net/

vexorian
August 8th, 2007, 04:38 AM
You mean easy for a developer o easy for an end user? Can you elaborate?
Well, the method described in that blog is not specially easy to use or understand.

Nikron
August 8th, 2007, 04:43 AM
You mean easy for a developer o easy for an end user? Can you elaborate?

Dunno if you call a simple bash script a developr or user level. Either way, with something like inotify-tools you can set up a simple bash script for "folder options"

23meg
August 8th, 2007, 04:46 AM
I put together a script that utilized fileschanged (http://fileschanged.sourceforge.net/) a while ago to accomplish this. It did work, but not consistently enough for casual use; I needed to have a way of controlling multiple instances of fileschanged reliably.

Fileschanged is probably not the best choice if this is to be implemented into a DE though; working with FAM / gamin / inotify directly would be the way to go.

bikeboy
August 8th, 2007, 04:53 AM
Hmm, maybe somebody who understands the system a bit could blueprint this for Gutsy+1?

vexorian
August 8th, 2007, 06:01 AM
Hmm, maybe somebody who understands the system a bit could blueprint this for Gutsy+1?
it looks more something gnome should try in nautilus, so I am kind of thinking this would be good as a topaz brainstorm.

FuturePilot
August 8th, 2007, 06:04 AM
This sounds like a pretty handy thing to have.

sicofante
August 8th, 2007, 07:27 AM
How about using this?

http://oss.sgi.com/projects/fam/faq.html#what_is_fam

They say Nautilus already uses it, so knowing when a directory/folder has received a new file should be already built into Nautilus. Adding a script to that event should be quite easy.