Add a Move Finders Items action, while setting the To: list box to the a pertinent target folder.Add a Copy Finder Items action, while setting the To: list box to a pertinent target folder.Add a Get Value of Variable action, while setting the value of the Variable: list box to the value of Variable: set in the Set Value of Variable action, and check the Ignore this actions input check box under its Options. ![]() Add a Set Value of Variable action, giving the Variable: a pertinent name.Start with setting the target folder for: Folder Action receives files and folders added to.Setup the workflow according to the individual actions in the order shown in the image further below and the Options shown on the two Get Value of Variable actions. This was tested with one file and many files at a time over a half dozen tests with different file counts and sizes, however I'd caution that this simple workflow might choke if invoked with to many really large files at one time. It will let you choose the “Process” Folder and the correct path will be stored in your clipboard.This following example Automator Folder Action workflow works for me. ![]() If you don’t know how to properly get the path to your “Process” folder, run this following one line of code in a separate document. theNewItems is a list of references to the items added to the folder theFolder is a reference to the modified folder Called After Items Have Been Added To A Folder On adding folder items to theFolder after receiving theNewItems folder property processFolder : alias "" - insert path to your “Process” Folder Save this following AppleScript code in Script Editor.app to your /Users/YOUR_SHORT_NAME/Library/Workflows/Applications/Folder Actions. Once that happens, those files should trigger your already existing Folder Action attached to the “Process Folder”.Īfter inserting the path to your “Process” Folder (between the quote marks in this line)… Now, when files are added to that Google Drive folder and after they are finished synching, the Folder Action will move the synched files to your “Process Folder”. Next, we will create a Folder Action to attach to your Google Drive folder. Find your Google Drive folder and click Open.Īfter that is all set up and working correctly, go back and move that folder that you temporally moved, back to its original location. Then launch Backup and Sync app and in your menu bar Click -> Backup and Sync and then Locate. Then go to Finder and temporarily move the current folder it is synching to, to a different location. To do this, quit the Backup and Sync app. Let Backup and Sync download and sync everything to and from the Google Dive folder on your computer. First I would not have Google Drive sync files directly into your “Process Folder”. I just tested this process and it works for me. Is there a way to set this up so that when Google Drive Sync finishes downloading the a file into the folder it also triggers the Folder Action I created? For some reason the downloading of the file into the folder by Google Sync just isn't triggering the Folder Action. ![]() I know the script is working because if I then added a file to the folder manually with Finder it would run the Folder Action on all the files in the folder even the ones that Google Sync added. It didn't seem to matter how many files got downloaded in by Google Drive Sync it didn't trigger the Folder Action. When I tried using Google Sync to download in files the Folder Action never got triggered. It works just as expected when I use finder to put files in the "Process" folder, but I also need it to process files when Google Drive Sync downloads a file into the "Process" folder as well. I have an Apple Automator Folder Action that takes files placed in a "Process" folder, makes a copy of them, modifies the contents and then places them in a "Modified" folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |