Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Unko

macrumors newbie
Original poster
Sep 25, 2007
1
0
Okay so Im going to lay down the problem then explian what I have tried. Then hopefully get some cool responces.

So the problem is I have a external program that saves some files to the path blaa/blaa/movies the way in which it saves these movies is that it compreses the movies files into one file in that folder. EG puts the different compents into that folder then bundles them up then delates the orginals. The problem is the disc it is saving too doesnt have enough room for the movies it needs to store. Now I cant set the location of where to store the movies so I have to try route them somewhere. First of all when I tried making a alias to a folder on a different disk the program gave me a message saying it cant save to that file. So thinking of this I thought I would make a workflow where it gets the items in a folder then movies them to another location. I tested the work flow and it worked perfectly. So now the problem is getting this to be automated when ever a file is made in directory. So this is the script I came up with and attacheted vie folder actions but it doesnt work ??? WTF?? help?

on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:UserName:Library:Workflows:Applications:Folder Actions:movieFile.app"
open added_items
end tell
end adding folder items to
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
Here's a page that does a similar thing, but emails things dropped in a folder, http://murphymac.com/files-mailed-magically-when-dropped-in-a-finder-folder/

Here's a guy in another forum seeming to be trying the same thing. Maybe some of his ideas will help you, http://bbs.applescript.net/viewtopic.php?id=22338

This may have something, http://www.apple.com/applescript/folderactions/03.html

This also looks promising, http://bbs.applescript.net/viewtopic.php?id=19708

Hope you get it to work. If you do, I'm sure others would be grateful if you posted the code in case they ever have a similar need.
 

mkaake

macrumors 65816
Apr 10, 2003
1,153
0
mi
Does the automator action need input, or does it automatically work on the contents of an entire folder?

If it simply works on the entire contents of the folder, you could simply tell it to activate, rather than telling it to open the added items...

Without seeing the workflow though, it's just a thought.

I tried automator when it came out... and there are some things that it really does make simple - but most of the time, I end up making my solution in applescript, because I can't get 100% of the way there with automator. I can usually get so close it's frustrating though...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.