This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Folder Triggers

9

Votes
10
1
Tags: None
(comma "," separated)
morphiax
Registered Member
Posts
4
Karma
0

Folder Triggers

Mon Mar 23, 2009 5:23 am
Hi,

I read the following blog http://jarlesdraw-log.blogspot.com/2009 ... de-42.html and started using this idea of moving flash files to a new folder.

The idea I have is that instead of manually renaming the flash files in the new folder to add .flv why can't you have a trigger on the specified folder that says when a new file gets dropped in the folder automatically run the following script. Then you write a script that adds .flv to any file that gets dropped in that folder.

I guess you could do some pretty fancy workflow stuff like MS Biztalk in a way eventually. Like if a PDF gets dropped in the approved folder send a mail to your best friend or whatever. Or if an Microsoft Word file gets dropped in your Documents folder convert it to ODF.

It would work like triggers on a database or rules in an email client. It could be pretty useful I think.

Regards,
Jeandré
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

RE: Folder Triggers

Mon Mar 23, 2009 10:31 am
morphiax wrote:The idea I have is that instead of manually renaming the flash files in the new folder to add .flv why can't you have a trigger on the specified folder that says when a new file gets dropped in the folder automatically run the following script. Then you write a script that adds .flv to any file that gets dropped in that folder.


I guess http://kde-look.org/content/show.php/Ma ... ent=100348 could be expanded to provide that sort of functionality.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: Folder Triggers

Mon Mar 23, 2009 2:10 pm
If the OP is satisfied with the solution given above, I'll mark this idea as IMPLEMENTED.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

RE: Folder Triggers

Mon Mar 23, 2009 3:19 pm
Hans wrote:If the OP is satisfied with the solution given above, I'll mark this idea as IMPLEMENTED.


I don't think the plasmoid can do it as of now though. It is only capable of moving files automatically (or semi-automatically really, since it's necessary to drag the files to the plasmoid).

It would need to be extended quite a bit to do what was originally asked, but it's a starting-point.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
morphiax
Registered Member
Posts
4
Karma
0

RE: Folder Triggers

Mon Mar 23, 2009 5:24 pm
Also it would be nice if this wasn't just a plasmoid but a feature in Dolphin/Konqueror.

I am not sure if this would be the best but you might have a predefined shell script in the folder like .folder.sh or something and whenever a file gets dumped in the folder it will call "sh .folder.sh $FILENAME"

Not too sure about security issues or if there might be a better way. But I am sure you could end up building a pretty powerful work flow system with flexibility like that.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

RE: Folder Triggers

Mon Mar 23, 2009 10:10 pm
morphiax wrote:I am not sure if this would be the best but you might have a predefined shell script in the folder like .folder.sh or something and whenever a file gets dumped in the folder it will call "sh .folder.sh $FILENAME"

Not too sure about security issues or if there might be a better way. But I am sure you could end up building a pretty powerful work flow system with flexibility like that.


That sounds WAY TOO DANGEROUS to me. Sorry for "screaming" but to me, that sounds like a sure way of "inviting" malicious scripts. Sorry, but it's implemented that way I would (if I had the power to do so) have to veto it. Yes, it could be used to build up a powerful work-flow system but the drawbacks are too numerous.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
morphiax
Registered Member
Posts
4
Karma
0

RE: Folder Triggers

Tue Mar 24, 2009 5:22 am
Maybe if Kross is used instead?


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]