OS X Technologies :: Running Multiple Folder Actions At Same Time
May 29, 2012
Does anyone have some experience running multiple folder actions at the same time?†I've written a Applescript folder action that processes some files. When adding some files, the script starts and all goes well. The processing of each file takes a few minutes, but all files are processed correctly.†However, when adding some new files to the dropfolder, while the folder action is all ready processing other files dropped a few minutes earlier, the process that is all ready running immediately aborts and the folder action is relaunched on the new files, leaving the old files for what they are.The same problem occurs with multiple folders, each having a folder action attached. When dropping files in "Folder A", the script starts processing. But if someone droppes files in "Folder B", The script of folder A aborts, and the script of folder B starts processing. When adding more files to the folders, the result is the same. In some casses, when the last dropped files are processed, the os continues where the operation was aborted on the previous files. But this not always happens. To make things worse, when you remove the items from the folders afterwords, the folder actions starts running again on items no longer present in the folder ..Does anyone know how I can prevent the folder action being aborted when new files are dropped and placing the new files in "Hold", until the previous files are processed? How can I prevent a folder action being aborted when a item is dropped into another folder?†I've written a small script to test this behaviour. Just create one or more folders and attach the script below. Drop a item into the folder, wait a few seconds and drop another one in the same or another folder. To monitor what happens please check the console. [code]
Mac OS X (10.6.8)
I'm traveling tomorrow to Europe and am only taking my iPad and camera.¬† I'm planning on using an SD card reader to upload my photos/videos to my iPad, then use Dropbox on the iPad to copy my daily shots to my Dropbox account.¬†I'm thinking that I'll have an AppleScript on my home computer's¬† /Dropbox/europe/¬† folder to look for newly added data and then auto import that into iPhoto.¬†What's the best way to handle this?¬†I got it working with a couple of test images but when iPhoto sees photos that it's already imported it asks me if I want to import in the duplicates or skip them.¬† I'd like to skip them or write the AppleScript in a way that handles this.¬†I'm also fine with copying the photos out of the Dropbox folder into a separate folder elsewhere and not using iPhoto.¬†I'm just trying to theft proof my data in case my iPad gets stolen or if my Dropbox goes goofy and deletes the photos.¬† Maybe copy newly added data to a designated directory outside of the Dropbox folder?¬† How can I do this?¬†
can't open the program time machine located in the folder /applications/time machine anymore, message says program ain't working for unknown reaason, but I still can open time machine in the menu bar. any clues what the trouble might be? and/or is there any way to reinstall time machine only on os x 10.7.3?¬†
btw., on the system backup hd which is a mirror of the imac system, the programm still works
I understand when I make an automator 'application', it appears and can be drug to the applications folder. But when I make a folder action, or a service or whatever, where does the action go (so I can edit it again, later) or delete it?
I have set up and sucessfully tested a workflow which sends any file found in a particular folder to the "paperless" app, then moves all files to a different folder called "Archived attachments".HOWEVER as a folder action, nothing happens when a file is put into the folder. The file just sits there in the folder. To create a folder action I opened "new folder action" in Automator, then dragged and dropped the working workflow file into the workspace, then set "Folder Action recieves files and folders added to" the appropriate folder, let's call it "Attachments".Just to complicate things, the files are placed into the "Attachments" folder using an applescript that captures all pdf mail attachments. This applescript works succesfully. [code]
I managed to fumble my way through my first Automator actions today and after some trial and error, came up with a folder action that does exactly what I want, very simply to move music from my downloads folder to a different location. I also created an Automator application to do the same thing as I wasn't aware my folder action will now do this automatically (so cool). Here's my question: I have a few folder actions that were created during my trial and error process. Where are these and how do I delete/remove them? I did a Spotlight search and nothing came up.
I'm new here but hoping I can find some helpful information for a new problem I have with OS X. Earlier today, I noticed that my Transmission was failing to download some torrents I was snatching. Transmission couldn't create the folders I was telling it to create for new CDs in my MUSIC folder. When I looked into the problem, I noticed that I no longer had the option to create new folders and several other modification options. I created a new folder on the desktop and dragged it into the misbehaving MUSIC folder and my MacBook asked me for my password to "authenticate". What's going on? I have not encountered this issue before and it is only effecting the MUSIC folder; all of the sub-folders are functioning correctly.
I've been fooling around with Automator for a few hours trying to look for little ways it can handle my repetitive stuff. I've figured out some pretty neat tricks, but I also have a slew of unwanted folder actions and services in my context menus and for the life of my I can't figure out how to get rid of them. The folder actions are especially problematic since they mess with my files automatically. Googling it isn't turning up anything nor can I seem to find anything in Apple's help documents. Is this some kind of huge joke being played on me here or something? Has no one ever wanted to disable their automator tasks before or something?
I have two objects in keynote that do about 14 moves each (spin and move) but I can not get them to go at the same time. The next one will only start when the first one ends. I can't move the second object to the top of the build order because when I do that it ruins all the spin/move steps. Want I kinda need is the ability to run step 13 with step one (whilst leaving the build order in the same rank)..unless somebody has got another way to do this?
I had a simple folder action created in Automator that scaled images to 800 pixels whenever i added files to a specific folder.¬†It does not work anymore.¬†I have tried recreating the action in a new folder and all i get is a warning:¬† "The action ‚ÄúScale Images‚ÄĚ was not supplied with the required data."
I'm trying to create an Automator service for the Finder in Lion.¬†It gives me an "error in shell script". I just created a similar script that uses "imguru" to upload images to [URL] which works great, so i'm thinking that it's must be the line with "unzip" that creates a problem.¬†
I currently have a MacBook Pro and I'm considering buying an iMac for home use. I want to keep the files between both computers in sync. It would also be a plus to keep mail, contacts, photos, etc., in sync between both computers, but my main focus is files and documents.
I figured out how to run multiple copies of skype by launching the .app file from different osx user accounts in terminal.¬† What I'm trying to do now is script this or automate opening terminal and typing the line with automator.¬† The following is the line that I use.¬†
su user2 -c "/Applications/Skype.app/Contents/MacOS/Skype && exit"¬†
And I just change user2 to user3 for a third instance of skype and so on. how ot automate this process?
Info: iMac, Mac OS X (10.7), 27" / i5 / 8GB RAM
I need an AppleScript to restore a bunch of partitions from a master drive to a stack of external target drives. I don't mind partitioning them 1st, if necessary.The master drive has 16 partitions, all equally sized, and I'd like a script to run that will have Disk Utility to just go down the list restoring each partition to the matching 16 partitions on one of the target drives.
I had been using automator quite successfully until recently now I'm unable to get automator to step through even the most basic setup. It refuses to step through to the second action and perpetually runs without producing any results as the image below shows.for any of my automator setups I get results for the first step and then an indefinate hang on the second leaving the step icon greyed out.¬†I have tried this with numerous other actions like calendars etc but to no avail. Below are the very basic automator steps I'm using in this example.¬†
I am trying to write a generic script that will mount a disk upon log in of a user¬†So far I have this: (which works for a specific user:)¬†
try mount volume "smb://MyUserName:MyPassWords@ServerIAmPointingTo" end try¬†¬†
I have pointed the script to my log in prefernces so it runs automatically when I log in.¬†Is there a way to do this with a generic username/password? If I wanted to give this script to 100 of my co-workers, they would all have to modify the code to their credeintals. But is there any defaut usernames or passwords that AppleScript will take? ¬†Maybe something like:¬†mount volume "smb://default:default@ServerIAmPointingTo" ...?¬†My goal for this script is to have it run on peoples desktops at work to point to the same server, since I work in IT. But, I don't want to modify each script for each unique person.¬†
Trying to run the following command as a Launch Agent (OS X 10.7): /usr/bin/find /Users/username/Documents/Dropbox/Public -type f -mtime +2 -print0 | xargs -0 rm -r¬†
Created a plist file (reproduced below) and saved to ~/Library/Launch Agents, but the command isn't executed either at the specified time or when the agent is loaded via launchctl.¬† If I change the command to a simple Applescript test:¬†osascript -e 'tell Application "Finder" to display dialog "hello"'¬†
It runs correctly as a launch agent when loaded and as the specified time¬†Which means there's something wrong with the first command (find). But the command runs as written when executed manually in the terminal. ¬†
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Does any one know of a bug or a log for folder scripts that do not run? I am trying to get a basic folder script (to replace %20 in the file name) of the Downloads folder.†
When downloading multiple files (two or more) it runs only on the first file, successfully without error, and then never runs on the second file. If I move both of the files out of the Downloads folder and move it back it, the one file that does not get the folder action now does and everything is peachy.So it is not that the folder action is not scripted properly. It is just that the folder does not catch the second file download - guess maybe too fast? Has any one seen this or have this bug?
Info:15" Unibody MacBook Pro Ô£Ņ, Mac OS X (10.6.4)