Automator: Wait for file

I'm trying to write an automator workflow, that i can remotely trigger using something like dropbox. What I want is to have it watch a folder, and when it finds a file with a specific file, it moves on in the workflow. I haven't been able to find anything that would wait like this. Does it exist? Thanks

There are a few solutions to this, you'll need to decide which one meets your needs best.
First off, your script on Computer B could poll the size of the file, waiting until the file stops increasing in size for a sufficient length of time - long enough for you to assume it's finished copying, at which point you can invoke the rest of your script.
The other options depends on the ability of Computer A and there are two classic solutions.
One is to have Computer A write a tempoary lock file (or, conversely, a done file). Your script looks for this file to determine when the file is ready - in the case of a lock file, you create the lock file to indicate that the file is not ready, then write the file, then delete the lock file when it's done. The script on Computer B notices the lock file being deleted and knows the correspoinding real file is ready.
The variation on this is to have a done file - you write the file to the disk and when its finished you create/update the done file to indicate the new file. Your script feeds off this done file to know when a file is ready.
Both these options involve the use of temporary semaphore files that signal to computer B when to proceed.
The other option that doesn't use semaphores is for Computer A to write the file to a temporary subdirectory, rather than the drop folder. It then moves the file to the drop folder when it's ready. In this way the script on computer B doesn't need to worry about how long it takes to generate the file.
All the latter options involve additional smarts on the source machine A since that's the only one that really knows the state of the file.

Similar Messages

  • At the end of sync itunes hangs with message waiting for files to be transferred....iphone 4s?

    at the end of sync itunes hangs with message waiting for files to be transferred....iphone 4s?-
    and just sits there for an hour or more... sync is not finished, nothing happens... Any ideas?

    I called tech support and they had me schedule a time to walk through the problem with an apple engineer last night.
    They acknowledged that they've been getting calls about this issue but that's all they said.
    Make a long story short there was no solution. I ended up backing up all my info, contacts, notes ect. to the cloud and restoring the iPhone to the factory settings, then I synced back to the cloud but did not restore from a previous back-up just use as a new phone then manually check off the media pictures, music, movies ect.
    It's not the ideal way but it worked for me because I don't have a ton of stuff on the phone and I can even sync wirelessly now where's before I couldn't check that feature on in iTunes because it wouldn't sync.
    One thing since you can't restore from a previous back-up make sure to manually back up your camera roll or turn on photo stream to back up photos to the cloud.
    Hope this helps.

  • Disable external hard drive to prevent waiting for file open

    I have a 1.5TB LaCie external drive I use exclusively for Time Machine. Whenever I try to open a file in Word or other apps, I find I'm waiting for the LaCie drive to spin up before I get a dialog box. I've excluded the drive from Spotlight searches but am wondering if anyone knows of a way to exclude it more broadly so I'm not waiting for it.
    Thanks,
    John

    run the following terminal command. It will rebuild Launch Services database and may fix this issue.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

  • SSIS wait for file to continue

    I know this question has been asked a dozen times. How do I get SSIS to wait for the existence of a file before continuing the package.  I know countless people have pointed to FileWatcher Task, unfortunately we are not allowed to install third party
    software on client servers/machines.  I've read about doing a loop using script task but also read that doing Thread.Sleep is a horrible idea. My SSIS package extracts data into a text file where it is processed by a program and put into another text
    file. I need to wait for that text file to show up before I can continue with my package.  Can someone offer some suggestions?

    Have a Windows Service using
    FileSystemWatcher to monitor for file arrivals, the very Windows Service will trigger your package upon a file arrival. It is better to actually just record the file in a schedule table to process if you expect a large number of large files to arrive fast,
    the package would pick next from the table.
    Arthur My Blog

  • Waiting for file redraws after deleting bits of audio

    I keep looking in the prefs for something to alleviate this.
    This being, that if I have a big audio file loaded (hundreds to over a gig in size)
    and as I'm editing it (going along and deleting sections) most of the time I have to wait a while for the darn waveform to redraw itself.
    Sometimes it doesn't do this, less often though, and I'm clueless as to why it behaves this way.
    I used to use Peak on my old OS9 machine and it never did this (probably because it always referenced the actual file)
    Why does STP do this? Is there a way to not get the waveform to redraw whenever I want to delete a bit of audio?
    Thanks

    Gerald,
    your will run into an error during the event afterOpen if there are no documents open and you want to adress the being opened document with
    app.activeDocument.
    You better adress it with
    app.documents[0].
    But - funny - if there is already a document opened, then app.documents[0] won't adress the new document (which is opened and calls the event afterOpen), but the old document which has been active before.
    So you will have to adress the document which gets opened with
    app.documents[-1].
    (excuse my english)
    Martin

  • TS3988 waiting for file to be available in iCloud

    When saving a pages document to the cloud I see "waiting" underneath the file name where the date saved should go. Never had to wait before, did i do something wrong?

    Welcome to the Apple Community.
    I occasionally see this even though they have already uploaded. Do you see the document at iCloud.com or not.

  • [Help]Playing MP3 files with Juk have to wait for 1 hr to hear voice

    I am not sure how long should wait, but difinately longer than 10min. If you are playing a playlist, you have to wait a long time for next song...
    Observations:
    1. You can hear voice after all, that means the hardware and codec is working properly.
    2. You can play the mp3 file with smplayer without difficulty. that means the filesystem/storage hardware should'nt be problematic.
    3. When waiting for playing songs, the CPU usage of Juk is remaining on about 3%. I believe it is a reasonable value and does not indicating any problem of the program.
    Have anybody here got this problem before? Help!

    in case your phonon backend is gstreamer, change it to xine. that's what is recommended by amarok devs.

  • " the volume for (file name) cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again."

    I get an error message in iPhoto when I click on thumbnails of pictures in certain albums. It reads 'the volume for "(file name)" cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again.'  What does this mean and how do I fix it?

    It means that you imported the files in Referenced mode and have now remvoed them from the Mac. Put the disk or card back.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • HT4972 I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to

    I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to open.

    I am not at that computer now, but I did check via windows update & with the check updates menu choice in the itunes program  - neither indicated a newer version of itunes is available. (it is a vista computer).
    The itunes software on the computer displays my ipod & the current ios (4.3.2), and indicates a newer ios is available (6.1.3). When I choose "update", I am taken to Windows Exploer and prompted to choose a file to open. it is as if the "update" button has the incorrect code attached to it.
    The ipod is working, but there are several app I would like to install, but I can't with the current ooperating system.

  • Why does File Explorer Seem to Wait for End-to-End Confirmation?

    For quite a few versions now, when copying large blocks of files from place to place it seems like Explorer adds an arbitrary delay or maybe waits for confirmation internally that every file has been actually written to the disk before continuing.
    On a modern computer with plenty of RAM for cache and a massively powerful SSD-based I/O system (capable of sustaining gigabytes per second of throughput),
    why should we ever wait for a copy of a few hundred megabytes of files?  Theoretically it should complete in a second or two. 
    In fact, back on XP one could observe exactly the behavior I'm describing - file transfers - especially on hard disk but even over the network - would proceed at a very breakneck pace.
    Yet it's not uncommon to see miniscule transfer speeds while copying groups of files that even the oldest, cheapest hard drive could sustain...
    What's the setting to have Explorer stop waiting and just get on with the copy, filling the cache with the data to be written later?  Some of us don't want to wait that extra minute to get the job done.  I know whomever programmed the cutesy
    little graph wants to make sure we all see it, but...
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Wait for a file and start execute a scenario process

    What is the best way to achive: Wait for a file and then once the file in droped...execute a scenario process.
    Sample scenario:
    - Admin user ftp the file to a target directory on Unix (export/home/odi/input/files)
    - A scheduled scenario package will be running/scheduled daily
    - In the above scenario, The first step is to have one OdiFileWait (with options: Dir:/export/home/odi/input/files, File: xxxxx.txt,wait time and loop over..etc)
    /* But for some reason OdiFileWait is not waiting/checking for the file presence define in the option. It seems to run immediately without checking the presence of the file and passing it to run the second step) */
    - The second step is the "OdiStartScen" (This will run an interface generated scenario) and since the file doesn't exist as a source to load that this interface uses...its fails.
    What's the common practice to accomplish this? Appreciate your feedbacks…
    Thank you

    Update:
    I increased the timeout and Pollint setting in OdiFileWait option and its working fine now.
    When the file exists (or) ftp within the timeout the process goes to next step (OK). But, say the file doesn't exists and the timeout finished...how do i set a KO to OdiFileWait and stop/complete by existing at that step itself with out failure.

  • Is there an automated way to scan my multimedia folder for files that are there and not in my library and add them ?

    Is there an automated way to scan my multimedia folder for files that are there and not in my i tune library and add them to y existing library ?
    I recenty had a damaged i tune library and had to import an old version.
    This last one does not have many of the CD I have copied the past months. And I don't know which ones these are either as they are too many of them.

    This will list files that are in the iTunes DB but the files are not in the media folder…
    http://dougscripts.com/itunes/scripts/ss.php?sp=listmias
    This will list files that are in the media library, but not in the iTunes DB.
    http://dougscripts.com/itunes/scripts/ss.php?sp=musicfolderfilesnotadded2
    I think it may misbehave with ringtones & some of the obscure media files, but they are both really powerful for repairing mangled libraries.
    I would create a new smart playlist for 'Tracks added since (todays date)' so you can easily find any tracks that you add back to iTunes.
    Doug has a lot of scripts for iTunes, spread the karma & donate if they are useful to you

  • Capture  WAITING FOR DICTIONARY REDO: FILE

    Hi Experts,
    Based on a large transaction, source A1 database archive action was auto switch for redlog files.
    After this event, we destination A2 DB capture get a state---WAITING FOR DICTIONARY REDO: FILE G:\ORACLE\ORADATA\VMSDBSEA\ARCHIVE\ARC10201_0639211808.001.
    we use bi-direction stream at oracle10GR4 in 32 bit windoe 2003.
    I think that is a capture problem in A2 only. last weekend, stream stop capture process due low SGA.
    I restart A2 capture thsi morning.
    What do I need to do? just add a new first SCN or register redo file?
    Please help me in detail.
    I find this case at http://stanford.edu/dept/itss/docs/oracle/10g/server.101/b10727/capture.htm#1006565
    1. A capture process is configured to capture changes to tables.
    2. A database administrator stops the capture process. When the capture process is stopped, it records the SCN of the change it was currently capturing.
    3. User applications continue to make changes to the tables while the capture process is stopped.
    4. The capture process is restarted three hours after it was stopped.
    However, I do not see how to set new SCN for restart capture.
    Thanks,
    Jim
    Edited by: user589812 on Dec 29, 2008 12:11 PM

    i try to register archivelog file and got message as
    SQL> ALTER DATABASE REGISTER LOGICAL LOGFILE 'ARC23250_0621282506.001' FOR 'STREAM_CAPTURE';
    ALTER DATABASE REGISTER LOGICAL LOGFILE 'ARC23250_0621282506.001' FOR 'STREAM_CAPTURE'
    ERROR at line 1:
    ORA-01284: file cannot be opened
    So what issue?
    Thanks
    JIm

  • Can't export as Html (Waiting for all files to be ready...)

    Made a bunch of updates last night to a client site.  Everything looks great except I can't export as Html. Had my sister try to export on her computer and we both get to 87%, then it permanently stalls, saying "Waiting for all files to be ready" (See screenshots). We've ensured that no files are open or being previewed. We've rebooted and tried saving to a different location, all with no change, we still get to the 87% mark and stop. Please help. I have a client waiting for this site update.
    Details:
    Windows 7
    Sony Vaio
    Muse Version - 4.1 Build 8 *see screenshot
    ****Update:
    I can preview the entire site in a browser as well as preview each page individually, but cannot finish a html export past 87%.

    Odd are if you wait long enough, potentially a few hours, it will complete.
    This huge performance hit sounds exactly like a bug that's fixed for the Muse CC 5.0 release due out next week. Sorry for the inconvenience.

  • File to Idoc with wait for 30 secs time

    Hi Experts,
    We  have a requirement like, sending a file using MDM adapter to Idoc.
    We need to process messgaes coming into ftp one by one to target system ECC with a time interval of 30 seconds.
    After 1 msg is processed, wait for 30 seconds and next message have to process.
    Please let us know any user defined function code for this.
    Thanks in advance...
    Soumya A

    Check below thread.
    File adapter to pick a single file
    CONFIGURE FILE ADAPTER ,get files one by one.
    Edited by: phani kumar on Jan 6, 2012 12:50 PM

Maybe you are looking for

  • I don't have a credit card and cannot access to app updates

    I have an apple ID, but I just can't update apps since I don't have a credit card, because iTunes won't let me. when I try to it tells me: This Apple ID has not yet been used with the iTunes Store. Please review your account information. is there any

  • HT201343 Macbook 2010 airplay mirroring

    I have a Macbook (white) mid 2010 running Mavericks OS. Does my device support Airplay? I've just purchased an Apple TV and I cannot find the airplay mirroring option in mi Macbook.

  • Problem exporting images to a memory card

    Greetings, I am attempting to export approximately 1500 photos from an album in IPhoto 08 and put them onto a SD memory card to be used in a digital frame. I have exported the photos from IPhoto and placed them into a folder on my desktop. The folder

  • Smart Guides Randomly Not Working

    Hi, I've noticed in Illustrator CS4 (with all the updates) that Smart Guides does not seem to work on some files. I make a new file in CS4 and then they automatically seem to work. I have tried re-saving the file and turning on and off the Smart Guid

  • Problem when using pattern ''num{ZZZ,ZZ9.99 S}"

    Hi all, I have a problem with the following pattern: num{ZZZ,ZZ9.99 S} When I'm using this pattern there should be a blank at the end of the number if it's positive. But after the PDF generation there is no blank. I have positive and negative numbers