Folder action: File size as a conditional and then move

Im a complete beginner to AppleScript so please be patient with my amateur questions
So here's what I want to do:
I want to setup a folder action so that whenever I download a file to my Downloads folder that is larger than 50mb, it will automatically be moved to another folder. I tried to use Automator to make this but i found out it doesnt do IF-THEN stuff.
I've searched the internet but i cant find any help!
thanks!!!

actually, this is a breeze in automator.  just set up a workflow like so:

Similar Messages

  • How can i open the directory/​folder and read all the files inside it in order and then close it?

    How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
    thanks

    In the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Problem exporting txt' file size is 23 KB and '.zip' size 4 MB

    I am using Apex 3.0 version screen to upload '.txt' file and '.zip' file containing images.
    I can successfully export '.txt' file and '.zip' file containing images as long as '.txt' file size is < 23 KB and '.zip' file size < 4 MB from database table 'TBL_upload_file' to the OS directory on the server.
    processing of Larger files (sizes 35 KB and 6 MB) produce following Error Message.
    ‘ORA-21560: argument 2 is null, invalid or out of range’ error.
    Here is my code:
    I am using following code to export Documents from database table 'TBL_upload_file' to the OS directory on the server.
    create or replace procedure "PROC_LOAD_FILES_TO_FLDR_BYTES"
    (pchr_text_file IN VARCHAR2,
    pchr_zip_file IN VARCHAR2)
    is
    lzipfile varchar(100);
    lzipname varchar(100);
    sseq varchar(1000);
    ldocname varchar(100);
    lfile varchar(100);
    -- loaddoc (p_file in number) as
    l_file UTL_FILE.FILE_TYPE;
    l_buffer RAW(32000);
    l_amount NUMBER := 32000;
    l_pos NUMBER := 1;
    l_blob BLOB;
    l_blob_len NUMBER;
    l_file_name varchar(200);
    l_doc_name varchar(200);
    a_file_name varchar (200);
    end_pos NUMBER;
    begin
    -- Get LOB locator
    SELECT blob_content,doc_name
    INTO l_blob,l_file_name
    FROM tbl_upload_file
    WHERE DOC_NAME = pchr_text_file;
    --get length of blob
    l_blob_len := DBMS_LOB.getlength(l_blob);
    -- save blob length to determine end position
    end_pos:= l_blob_len;
    -- Open the destination file.
    -- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
    l_file := UTL_FILE.fopen('BLOBS',l_file_name,'WB', 32760); --use write byte option supported in 10G
    -- if small enough for a single write
    IF l_blob_len < 32760 THEN
    utl_file.put_raw(l_file,l_blob);
    utl_file.fflush(l_file);
    ELSE -- write in pieces
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw(l_file, l_buffer);
    utl_file.fflush(l_file); --flush pending data and write to the file
    -- set the start position for the next cut
    l_pos := l_pos + l_amount;
    -- set the end position if less than 32000 bytes, here end_pos captures length of the document
    end_pos := end_pos - l_amount;
    IF end_pos < 32000 THEN
    l_amount := end_pos;
    END IF;
    END LOOP;
    END IF;
    --- zip file
    -- Get LOB locator to locate zip file
    SELECT blob_content,doc_name
    INTO l_blob,l_doc_name
    FROM tbl_upload_file
    WHERE DOC_NAME = pchr_zip_file;
    l_blob_len := DBMS_LOB.getlength(l_blob);
    -- save blob length to determine end position
    end_pos:= l_blob_len;
    -- Open the destination file.
    -- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
    l_file := UTL_FILE.fopen('BLOBS',l_doc_name,'WB', 32760); --use write byte option supported in 10G
    -- if small enough for a single write
    IF l_blob_len < 32760 THEN
    utl_file.put_raw(l_file,l_blob);
    utl_file.fflush(l_file); --flush out pending data to the file
    ELSE -- write in pieces
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    l_pos:=1;
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw(l_file, l_buffer);
    UTL_FILE.fflush(l_file); --flush pending data and write to the file
    l_pos := l_pos + l_amount;
    -- set the end position if less than 32000 bytes, here end_pos contains length of the document
    end_pos := end_pos - l_amount;
    IF end_pos < 32000 THEN
    l_amount := end_pos;
    END IF;
    END LOOP;
    END IF;
    -- Close the file.
    IF UTL_FILE.is_open(l_file) THEN
    UTL_FILE.fclose(l_file);
    END IF;
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-20214,'Screen fields cannot be blank, Proc_Load_Files_To_Fldr_BYTES.');      
    WHEN TOO_MANY_ROWS THEN
    RAISE_APPLICATION_ERROR(-20215,'More than one record exist in the tbl_load_file table, Proc_Load_Files_To_Fldr_BYTES.');     
    WHEN OTHERS THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open(l_file) THEN
    UTL_FILE.fclose(l_file);
    END IF;
    RAISE_APPLICATION_ERROR(-20216,'Some other errors occurred, Proc_Load_Files_To_Fldr_BYTES.');     
    end;
    I am new to the Oracle.
    Any help to modify this scipt and resolve this problem will be greatly appreciated.
    Thank you.

    Ask this question in the Apex forums. See Oracle Application Express (APEX)
    Regards Nigel

  • Image size changes after saving and then reopening

    I'm using CS6. For example I change the image size to a 4X6 and then save it. Then when I open the file it will be 7.5X5. What's the fix? Thanks for your time.

    I'm using Photoshop CS6 on a Windows 7 - 64 bit system. I'm using the Image Size dialog box and saving the file as a 4X6 at 300 dpi from a psd file to a jpeg file. When I open the file it is 5X7.5 inches at 240 dpi. I've been playing with it and have just figured out that when I save the file as a psd file it stays the size I've created and it changes when I save as a jpeg file. This is change is recent. It's worked properly in the past. Thanks for your help.
    Steve

  • I had a windows laptop, and I save files like photos, documents, videos and other things on an external hard drive, and now I want to move those files to the Mac book Pro, and then move those files again to another external hard drive 1T. My question is:

    I had a windows laptop, and I save files like photos,documents, videos and other things on an external hard drive, and now I want tomove those files to the Mac book Pro, and then move those files again toanother external hard drive 1T. My question is: Is it possible? Doing this willnot affect the files that I had in windows? No information is lost? or how cani do it?

    Connect the external drive to your Mac and drag the files from it to your Mac's internal drive. Then dismount and disconnect the external drive, connect the 1TB external drive, and drag the files from the internal drive onto the external. Nothing will have been deleted from any of the drives up to this point; the files will only have been copied. Verify that the files are readable. There's no reason they shouldn't be; this is just a precaution.
    Now if you wish to delete the files from any of the drives, drag them to the Trash, and Empty the Trash while the drive from which they came is still connected. If you disconnect the drive before emptying the Trash, the files you were trying to remove from it won't be deleted. They'll remain in the Trash and continue to take up space on the drive.
    Note that if your external drives are in NTFS format, you won't be able to write anything to them or delete anything from them, though you will be able to read and copy the files they contain. The NTFS disk format is read-only to the Mac OS, unless you have a third-party NTFS driver installed. To make your drives cross-platform readable and writable, you must reformat them in the FAT32 or ExFAT format.

  • Can I download a file in different sessions or should it be in a single session? In other words can I pause the download of a file, shutdown/restart my system and then resume download from where I left off? Or will it start from the very beginning?

    Can I download a file in different sessions or should it be in a single session? In other words can I pause the download of a file, shutdown/restart my system and then resume download from where I left off? Or will it start from the very beginning?

    If a server supports resuming downloads then the download should continue where it left off.<br />
    You can test that by simple starting a large download and wait a minute or so before pausing it.<br />
    Then you can close and restart Firefox and see if resuming works.
    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.<br />
    That will make Firefox ask for confirmation if you want to cancel the download if you close Firefox.
    See:
    * http://kb.mozillazine.org/browser.download.manager.quitBehavior

  • How to create a txt file, load it, modify it and then save it again?

    Hello everyone!
    I have a question and I hope you'll help me.
    I'd like to create a txt file (please see attached pdf file) but I don't know how. I've tried many methods but it's not working 
    The user should be able to change the parameters (for example "Time", "Time Type" ...etc) and the corresponding values from the Front Panel.
    The number of section (Begin Line......End Line)  is 128.  Means, the final file should contain  "Begin Line1....End Line1"   till  "Begin Line128....End Line128".
    Please, take a look at the attached file to see how does the structure of the file look like.
    Note:  the seperator between a parameter (example, "Time") and its value (example, "7" in the section "Begin Line1....End Line1") is a colon( " : " ) and not an equal (" = ").
    Thank you very much for your help.
    Best regards
    Attachments:
    Batch File.pdf ‏8 KB

    Hi
    thanks for your answers.
    I'm using LV 8.2  and my file should be saved in txt.
    Initially the file doesn't exist. So, the user choose the parameters and their values from the Front Panel
    and then hit a button to create that file. The user should be able to reload (Front Panel button) the created file, modify it or not and then resave it.
    Before hitting the "create file" button the user define (on the Front Panel)  the number of sections ("Begin Line.....End Line") to be created.
    I joined a VI here just to explain the idea. May be that can help you to help me.
    I appreciate yoyur help!
    Kabanga
    Attachments:
    Create batch file.vi ‏14 KB

  • Can't open documents - File select screen just flashes and then disappears

    In Adobe Creative Suite 3 Design Standard - When I open Photoshop, Illustrator, etc. and then try to open a document from one of these programs, the screen where you would select the file to open just flashes and then disappears. This locks me out of the program because it is waiting for a response from me - I can't even exit the program. I have to go to the Task List and close the program from there. This is a new issue - Have had Creative Suite for a while. Does not happen in Word, Excel, etc. I have already tried removing and reinstalling the software - No change. I have minimized all other windows - Still cannot access the file selection screen.

    If you have an LCD monitor, make sure it is running at its maximum resolution. After the dialog disappears, try pressing Alt + Spacebar, then M and see if you can find it on the edge of the screen and move it in by pressing arrow keys, press one a few times, then the opposite to bring it back if it didn't show up.

  • Bug Report for files first opened in Bridge and then worked in Photoshop

    I encountered a problem with files first opened in Bridge and then worked in Photoshop as follows:
    1.  I opened a raw file in Bridge and then after corrections sent to Photoshop with no problem, however, after correcting and saving the file I then went back to the option of closing file and going to bridge.  It closes file and stays in Photoshop.  In order to get back to bridge I must either click on the bridge logo at bottom of screen or request to go to bridge.
    2.  I tested the same thing in CS-5 and it works like it is suppose to you click on close and go to bridge and it immediately takes you back to bridge. 
    3.  Unless this is a new feature or suppose to work this way then it is a bug.
    NancyZ

    Hi Curt
    Yes, I am talking about opening a file in bridge doing necessary corrections etc and then sending on to Photoshop.  Once I do necessary corretions and save in Photoshop my next step would be to select close and open in bridge which is a choice.  In previous Photoshops that I have used (CS4 and CS5) when you did this it would close the file and then immediately take you back to bridge.  Now under CS6  if you select close and go to bridge it closes the file but remains in Photoshop.  If bridge is not a choice when you select close and open in bridge why even have that as a choice?  Why not just select close and then click on bridge logo or Control Alt O or select go to bridge? 
    Nancy

  • I have had a file disappear from creative cloud and then the name get reassigned to a different file.

    I have had a file disappear from creative cloud and then the name get reassigned to a different file.  How do I retrieve the missing file?

    If a file with the same name is saved again then a version is created. You can see versions from the Files page at https://creative.adobe.com/files. From the Files page click on the file to go to its page. Switch from the Details tab to the Activity tab if needed. You will see the Current Version and any past versions.

  • When i open my mail i have many recipes and so i usually take my mouse and click on the first recipe it turns blue then i take my mouse and drag all the way down to mark the recipies blue and then move them to a folder i cannot do that anymore how to

    Hi can someone please fix my problem for me! when I open my mail I have many recipes and so I click my mouse on one of the recipes and it turns blue , then i used to be able to drag my mouse down so all of the recipes are blue and then move them to my folder. now I cannot do that what happened!!!!!

    Click (and release) the first, hold the shift key while clicking the last.

  • I wish to restory my iPhone 4s to the original factory condition and then restore my apps. Can I do this?

    I want to restore my iPhone 4s to the original factory condition and then restore my apps. Can this be accomplished?
    Thanks.
    PRSNRS

    Dear Allan,
    Thanks. My main concern is whether my apps will be restored. Will they be available from the synch/backup?
    I am considering wiping my iPhone 4s because of one main problem. For some reason I receive, for example, 15 notices of a birthday reminder. I'm sure I made a bad choice somewhere, but cannot figure it out.
    Thanks.
    PRSNRS

  • I have an application on 4 computers. On 3, PDF files open as they should, withing the application. On the fourth the file is placed in "downloads" and then opens in a separate tab on the desktop(not inside the application).

    I have an application on 4 computers. On 3, PDF files open as they should, withing the application. On the fourth the file is placed in "downloads" and then opens in a separate tab on the desktop(not inside the application).  Any ideas on settings that might be causing this? It happens whether the application starts in IE11, Google Chrome or Firefox.
    This happens whether the "client" signs in over the internet or directly to the local host server.
    Thanks in advance

    One thing worth to check out: https://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Get and then Move ( Computer name )

    Hi all ,
    One of the nice people here helped me with Powershell script ,
    My goal is Get from Specific OU  computer names like ISR and TLV and then move them to Another OU ,
    This is my Script :
    Get-ADComputer -SearchBase "CN=Computers,DC=XXX,DC=com" -Filter {(Name -Like "ISR*") -And
    (Name -Like "TLV*")} | Move-ADObject -TargetPath "OU=xxx-Computers,DC=XXX,DC=com"
    I get error that " GetADcomputer is not recognized as the name of a CMDlet:
    The term 'Get-ADComputer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    My Website:www.Pelegit.co.il Mcitp /Mcsa 2012

    Start here:
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/01/25/hey-scripting-guy-january-25-2010.aspx
    ¯\_(ツ)_/¯

  • TS1717 I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

Maybe you are looking for

  • A2109 Info Thread

    This little tablet is quite a performer, and needs its own thread. First some links to pertinent info: IdeaTab A2109A-F Hardware Maintenance Manual (English) ideatab_a2109a-f_hmm_20120628.pdf - 23.3 MB http://download.lenovo.com/consumer/mobiles_pub/

  • Accessing ID Value Mapping table in XSLT

    Hi Experts, In the XSLT mapping,I would like to access my value mapping table which i defined in ID .The purpose of ID value mapping here is, the table entries will be changing in future and i don want to use fix values, XML table  which is defined i

  • FIELD-SYMBOLS as parameter subroutine that point to table

    Hi everyone,i have question. We often send table through subroutine using keyword TABLE. FORM f_xxx TABLES pt_xxx Now my question is possible send this internal table through field symbols? If so, how to do this? 1. FORM f_xxx USING <fs_xxx> STRUCTUR

  • SAP Sol Mgr 4.0 Upgrade to 7.0 Enterprise Edition

    Hi, I have installed SAP Sol Mgr 4.0 SR3. Now I want to upgrade to SOl Mgr 7.0 Enterprise Edition. What are the steps I need to follow. Regards, B

  • How to handle labor cost?

    Dear All, Scenario: I have a finished component ;an assembly of 3 items,how to handle the labor cost i am paying for assembling in SBO. could you all please write in detail . Thanks, Nandakumar