Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Isadora: General:
Watching a folder?

 

 


Mixed Ape
Novice

Sep 21, 2007, 8:08 AM

Post #1 of 11 (2130 views)
Shortcut
Watching a folder? Can't Post

I want isadora to watch a folder and add images added to that folder automatically.

Can it be done?
How?


Mixed Ape Blog


Mark Coniglio
TroikaTronix / Moderator

Sep 22, 2007, 9:01 AM

Post #2 of 11 (2114 views)
Shortcut
Re: [Mixed Ape] Watching a folder? [In reply to] Can't Post

You should be able to do this with Applescript on the Mac. I am unsure if it is possible with Windows.

There are some example Apple Scripts for Isadora at

http://www.troikatronix.com/files/applescript-examples.zip

One of the examples shows how to import a file into the media window.

You can attach a script to a "Folder Action" by right clicking the folder and choosing "Enable Folder Actions", and then right-clicking the folder again and choosing "Attach Folder Action..."

Hope that helps,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora


Mixed Ape
Novice

Sep 22, 2007, 9:17 AM

Post #3 of 11 (2111 views)
Shortcut
Re: [Mark Coniglio] Watching a folder? [In reply to] Can't Post

I'm on a Mac so its all good.

I know nothing about apple script though. It doesnt look to difficult but if anyone could point me in the write direction it would be much appreciated.


Mixed Ape Blog


jippie
Novice

Mar 27, 2008, 3:20 PM

Post #4 of 11 (1912 views)
Shortcut
Re: [Mixed Ape] Watching a folder? [In reply to] Can't Post

hello,

I used one of the apple script examples to import a file into a media bin. Only with the example you can import a specified movie file from a specified folder into a specified bin.
I don't know much of apple script, and i did some tries with it by changing the example script, but without results. What i really want is that Izzy automaticly imports a file after its added to the folder in the finder. For example when you send a photo to a folder, the folder indicates the file and sends a message to Izzy to import the last added (photo) file.
Does anyone know how to fix this in apple script?

all the best

jippie
Snow!


Mixed Ape
Novice

Mar 28, 2008, 5:27 AM

Post #5 of 11 (1896 views)
Shortcut
Re: [jippie] Watching a folder? [In reply to] Can't Post

I ended up making a simple quartz file that would cycle through the photos in a folder and used the .mov output in isadora.

I came to the same problem you did with applescript. and ended up using quartz. I'd still like to get it working with applescript though.

I'm not sure how applescript works with variables but if you could get the name of the file added as a variable you could use it in the add file to bin section of the example script


Mixed Ape Blog


jippie
Novice

Mar 29, 2008, 5:43 AM

Post #6 of 11 (1875 views)
Shortcut
Re: [Mixed Ape] Watching a folder? [In reply to] Can't Post

Hello Mixed Ape

How does the quartz patch exactly work? Would you like to share an example?
In the meantime i''l keep on trying;)

all the best

jippie
Snow!


Mixed Ape
Novice

Mar 29, 2008, 6:33 AM

Post #7 of 11 (1871 views)
Shortcut
Re: [jippie] Watching a folder? [In reply to] Can't Post

Theres plenty of examples online. Look for Quartz composer slideshow

http://www.quartzcompositions.com/


Mixed Ape Blog


jippie
Novice

Mar 30, 2008, 8:25 AM

Post #8 of 11 (1825 views)
Shortcut
Re: [Mixed Ape] Watching a folder? [In reply to] Can't Post

The quartz patch works. thanx.

all the best

jippie
Snow!


jippie
Novice

Apr 5, 2008, 4:26 AM

Post #9 of 11 (1666 views)
Shortcut
Re: [jippie] Watching a folder? [In reply to] Can't Post

Although the quartz patch works in a certain way, It indeed can watch a folder on your drive, it isn't possible to control the content in Isadora.
This still isn't exactly what I am looking for. I kept on trying with apple script but without results. Any apple script experts on the board who like to challenge this issue?

all the best,

Jippie!

In Reply To
hello,

I used one of the apple script examples to import a file into a media bin. Only with the example you can import a specified movie file from a specified folder into a specified bin.
I don't know much of apple script, and i did some tries with it by changing the example script, but without results. What i really want is that Izzy automaticly imports a file after its added to the folder in the finder. For example when you send a photo to a folder, the folder indicates the file and sends a message to Izzy to import the last added (photo) file.
Does anyone know how to fix this in apple script?

all the best

jippie

Snow!


Mark Coniglio
TroikaTronix / Moderator

Apr 15, 2008, 10:09 AM

Post #10 of 11 (1483 views)
Shortcut
Re: [jippie] Watching a folder? [In reply to] Can't Post

Here's how to auto-import files dropped into a folder on Mac OS X.

1) Enter the following script into the Script Editor application


--- SCRIPT STARTS HERE

on adding folder items to this_folder after receiving these_items

try
tell application "Isadora"
import media into document 1 from these_items
end tell

on error msg
display dialog "Error importing file into Isadora: " & msg
end try

end adding folder items to

-- SCRIPT ENDS HERE

2) Save it in the folder at /Library/Scripts/Folder Action Scripts/
3) Control-click (right-click) somewhere in the "Finder" (the desktop works) want to watch and choose "Enable Folder Actions" from the popup menu
4) Control-click (right-click) in the finder and choose "Configure Folder Actions" from the popup menu
5) In the dialog, hit the "+" button under the left column and add the folder you want to watch. Make sure the folder you just added is selected by clicking on it
6) Then hit the "+" button under the right column; a list of scripts from the "Folder Action Scripts" folder will appear. Select your script.
7) Make sure Isadora is running
8) Drop some files in the folder... they will automatically be imported into Isadora

Let me know how that works for you.

Best,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora


jippie
Novice

Apr 23, 2008, 12:01 PM

Post #11 of 11 (1416 views)
Shortcut
Re: [Mark Coniglio] Watching a folder? [In reply to] Can't Post

thanx Mark,

Right now i'm very busy doing try outs for a new theatre play. As soon as i got time i will take a closer look to it.

all the best

jippie
Snow!

 
 
 


Search for (options) copyright © TroikaTronix 2007