Home Download Buy Blog Forum Support

Detect when a new file is added to project

Detect when a new file is added to project

Postby diasalvatore on Wed Jul 31, 2013 4:28 pm

Hi guys,

through a command I create a file somewhere in the project a new file, but I don't know exactly where is the file (I create it with an external utility).
So I would listen when something new is added to project to check, if the new file is what I'm looking for, and open it.

I can't find the right event to listen.
How can I do?



thank you :)
diasalvatore
 
Posts: 2
Joined: Wed Jul 31, 2013 4:07 pm

Re: Detect when a new file is added to project

Postby diasalvatore on Wed Jul 31, 2013 5:00 pm

If I can't listen that event (as it seems), could at least open an existing file in project by passing only the filename?
diasalvatore
 
Posts: 2
Joined: Wed Jul 31, 2013 4:07 pm

Re: Detect when a new file is added to project

Postby Voelkerball on Fri Aug 02, 2013 11:33 pm

It *should* be possible to listen to write a Plugin for that, depending on the Operating System to use;
There are several filesystem-listener-Plugins for Python, but its not that easy to get them to work, if I recall correctly.
Google turned up several, but they all work differently and not for any OS.
Voelkerball
 
Posts: 5
Joined: Fri Aug 02, 2013 7:53 pm

Re: Detect when a new file is added to project

Postby adzenith on Mon Aug 05, 2013 2:11 pm

diasalvatore wrote:If I can't listen that event (as it seems), could at least open an existing file in project by passing only the filename?

Are you willing to do it manually? Have you tried cmd+P?
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 10 guests