Create Automator workflow/AppleScript to automatically move files within NAS

Running iMac / Macbook Air (OS 10.9.5), having the Macs connected wireless to the same network as a Seagate Central (NAS). On the Seagate Central and the iMac I have specified a couple of folders which are bidirectional synced via "Sync folders pro", e.g. pictures/movies folders. As a family, we have several iPhones (4S and 5S) with dedicated folders on the Seagate Central / iMac. Having the Seagate Media app on the iPhones, we are able to upload (and thereby free iPhone memory) pictures/movies directly onto the Seagate Central (pictures/movies which then are synced back onto the iMac). However, when uploading pictures/movies from the iPhone to the Seagate central (via Seagate Media app), it is not possible to define a target directory, and the pictures are therefore uploaded to a dedicated directory. I therefore search for some workflow/script to automatically (when new pictures/movies are uploaded, or at a daily basis);
- Search for pictures/movies within a specific NAS folder
- Move the pictures/movies to another specific NAS folder
- Delete all other files/folders within the NAS folder being searched
New to Automator / scripting, so I hope you bear with me even if the questions are dumb.
Is it possible to make the NAS recognize a workflow/script without starting the iMac and/or MBA?

Ok, so I made it a bit further, now having the following Automator Workflow (iCal)
1. Get requested clients (check for ignore input from this action)
- afp://192.168.1.86/Public
2. Connect to client
- I end up with a mounted disc (Public folder). Note that I end up at the same folder even if using afp://192.168.1.86/Public/iPhone/Photos in step 1.
3. Get specified Finder items (check for ignore input from this action - to avoid having the Public folder itself following the workflow)
- Choose the subfolder Public/iPhone/Photos
4. Get folder content
5. Filter Finder items
- Did not get any results by using arguments as "kind is picture" and/or "kind is movie"
- Ended up using arguments as "name contains jpg", "name contains mov" etc
6. Move Finder items
- Destination folder: Public/Pictures/iPhone
- I now successfully managed to transfer the pictures and movies from one NAS folder to another
*** I now want to continue the workflow to delete all other Folders/Files on Public/iPhone/Photos ***
7. Get specified Finder items (check for ignore input from this action - to have no existing input for the remaining workflow)
- Choose the subfolder Public/iPhone/Photos
8. Get folder content
- Results no showing a folder and a file
9. Move Finder items to trash
However, I´m encountering a couple of problems with this workflow;
Note1: If there are no pictures/movies to move (no output from #5 going into #6), the workflow will stop. Any suggestions on how to skip step #6 and go to #7 if there are no pictures/movies to move? Applescript within Automator? Setting up the workflow as iCal (regular basis), so would be nice if the workflow just completes without errors (i.e. still goes on with deleting other files on the folder, even if there are no pictures/movies to move).
Note2: Step #9 result in a error "Finder could not move the specified items to trash". Has this something to do with a folder and some other file being attempted deleted from a NAS folder? Any suggestions for how to cope with this problem?

Similar Messages

  • Can you manually move files within a folder to put them in a specific order?

    I am new to mac, I was wondering if there is an app maybe that you could move files within a folder (ie photos) to make them in a specific order and then rename them, I used to be able to do this with my windows xp..... cant seem to make it happen with my new macbook pro and from what i can gather it cant be done? can it? Thanx in advance.........

    Thomas, I have set the view to maunally but when i move the icons they return to where they were sitting..?
    In the Finder? You probably have a sort selected in the Sort By submenu in the View menu. However, the order of icons in icon view won't have any influence on the order of the images in the slideshow, I think. Use iPhoto, this is one of the things it's made for, the Finder is not.

  • Create Automator workflow to open Excel file

    Hi,
    First time using Automator and a little confused. Can anyone help me to create this workflow? I'd like to:
    Required
    =========
    1. Connect to our Xserve
    2. Browse through our directory structure to a particular folder
    3. In that folder will be an Excel file
    4. Open the Excel file on my machine
    Nice to have additional actions
    ===============================
    5. Assign the Excel file to a particular window in Spaces
    6. Save the Excel file in the same folder as a new file with today's date in the filename (i.e. Spreadsheet - 25th Oct.xls)
    7. Move the existing Excel file into a new folder in the same directory (already exists, is called OLD)
    This process is currently manual for 4-5 spreadsheets each day and it would be nice to click a couple of buttons and get it all done automatically for me
    Any help is greatly appreciated.
    Thanks in advance.

    I could probably work this out but it might take a while. I did something similar having iTunes open with a specific playlist selected.
    In the meantime try the following and see if Automator lets you see the app that you had built previously:
    1. Find the self-contained app that you created (not an alias).
    2. Drag your app onto the icon that launches Automator.
    I discovered that little trick a while ago by accident. I just tried it again a few minutes ago and it seems to still work.

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • Can I create a folder that will automatically update files changed on a USB stick?

    Hi,
    I am just wondering if there is a way to do this.
    here's the situation, and what I'd like to happen.
    I have a folder on a USB thumb drive with files in
    A file within the set of folders is changed (on, for example, a college computer)
    When I connect my USB to my Mac, the file that was changed on the college computer, then replaces the same file on my Mac so they're both the same version.
    Basically, a syncronised folder so that all of my work that is changed on my USB will then be changed on my Mac automatically so that if I lose my keys and USB, I still have all of my work.
    Maybe there's an AppleScript that would work?
    Thank you in advance!
    Sam

    You should discuss with your college the licensing there.  If they have any Macs, it is essential they have this software in anycase.

  • Will changing the partition of the Home Folder automatically move files from old location?

    I want to change the home folder for my users.  Currently they are saving to the C: drive and using up the space on the root drive.  There is a D:  partition that has 774 GB free, so I would like to move use directories over to a new Home
    Folder on the D: drive. 
    http://support.microsoft.com/kb/816313
    What I am unsure of is whether or not I will have to manually move their files once I change the home directory.  Will it or do I need to take an extra step to move files in order to provide a seemless experience to the users?
    I am working with Windows Small Business Server 2011 Essentials.  

    Hi,
    Did you use the group policy to set the user home folder?
    As Ahmed MALEK mentioned, a user account is moved from one location to another in AD the users home drive setting is not automatically updated as its a static configuration on the users account. You need to manually move the file to the new location.
    Maybe you could consider the folder redirection, more detail information, please refer to:
    How to “Set users home folder” via group policy in Windows 8
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Automator and Applescript to export movie with quicktime

    I have started a work flow that asks for some files from a folder and then passes the list to an Applescript. So far the script is:
    on run {input, parameters}
    set output_items to {}
    tell application "QuickTime Player"
    activate
    close every window
    end tell
    repeat with i in input
    tell application "QuickTime Player"
    open (i as alias)
    -- HERE HERE HERE
    close front document
    end tell
    end repeat
    return output_items
    end run
    What I cannot figure out is how to get the file name excluding the extension where I have "HERE HERE HERE". I want to be able to get Quicktime to export the file to the desktop with the same file name as a Quicktime Movie. I cannot figure out how to do this...any help?

    Thanks to both of you for your help.
    I have made (well still in the process of finishing it up) a folder action work flow that takes movie files, converts them to an iPhone format and moves them to iTunes.
    I would like to give credit where credit is due. If you guys are okay with it, can I add your info (name, email, profile on apple discussions, whatever) to the credits?
    Thanks
    _Nacho

  • EXS24 instrument created from audio region- How to  move files?

    In Logic Pro X. I have created an EXS24 instrument from an audio region with 3 well-separated sounds. The instrument in EXS24 editor shows a zone with 3 files. Each file is actually the same physical file, but, when examining the three separate "files" (what should I call them??), a different section is highlighted for each tone. I can set a note for each of these "files". This instrument plays perfectly.
    So now I have 2 files in my project folder  - a .exs one for the instrument, and ONE SINGLE .wav file somehow representing three different samples. I want to move them to ~Library/Application Support/Logic/folderName, where folderName is , say,  myInstruments (for .exs) and mySamples (for .wav). When I do this, and erase the files in the project folder, I can load the instrument and the sample file into EXS24, but the sample file is recognized as one single tone - that is, in the EXS24 editor, there is only one file rather than 3, and that file has all three audio sounds.
    How do I move these files correctly? Is there some way to get them created originally in the correct place?

    Hi keystrike,
    This article will give you information about how to move files in Logic -
    Logic Pro X: Move, copy, and convert audio files
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Will the latest version of Quicktime Pro(for Vista) create a Lime Lapse from a .Mov file (from a video camera)

    Will Quicktime Pro for Windows convert a .MOV file to a time lapse?
      I have a six hour tripcoming up next weekend, and want turn a full length bullet cam video(native .MOV) of it into a time lapse to post.  I have found tons of info saying QuicktimePro will go from stills to time lapse, but only one reference to converting an existing 1080P .mov file into one.
    Any and all help and or direction  will be greatly appreciated! 

    QuickTime Player Pro can open image sequences and export to an image sequence. This will create a series of still image files, sequentially named to a folder you create.
    Open the video and choose Export from the File menu. In the next dialog window choose "Movie to Image Sequence" and then click the "Options" button. Here you set the "frame per second" and the file format (JPEG, PNG, etc.) and other options (like target file size or compression).
    Set the FPS to one and one image file per second of video will be extracted and compressed. If your source was 30 fps then the first frame of the first second of the file will be saved. Set the fps to two and the first and fifteenth frame will be captured.
    Some words of cation:
    Be sure to create a new folder prior to the export. You don't want hundreds (or thousands) of image files cluttering your desktop.
    Edit the source file prior to export to get a "long" shot of the action. Scene breaks will look awkward when they are played at high speed.
    Don't make a 1080 file export to image sequence. If your source is 1080 use the View menu to change it to "Half Size". These half size image files will help keep the file size down and help playback on older machines.
    Now that you have your folder of images choose "import Image Sequence" from the file menu and set your fps rate back to the same as your source file.
    You'll note that file size of your exported/imported project will probably be larger than your source file (and maybe too big to share on the Web). Export it again "Movie to QuickTime Movie" and choose H.264 video codec and set an "average" data rate. This should crunch the file five times smaller.

  • Automate renaming files within zip archive

    I have a large number of files where I need to do the following:
    Change the file extension to .zip. (The files are zip archives but with a special extension, and all of the files have their own extension, ie .xx01, .xx02, etc...)
    Extract the zip file.
    Rename a file within. (Alternatively, it'd be great to be able to rename the file without extracting the zip file.)
    Recompress the file.
    Set the file extension back to what it was.
    I've been playing around in Automator to see if I could create a workflow that would do some or all of this. I've figured out changing the file extension, and Automator has an action to compress a zip file, but the other parts are eluding me.
    Does anyone know a way to make this process a little less labor intensive? I'd prefer to automate the whole thing, but even just some way to rename a file in a .zip archive without extracting it first would be hugely helpful. (I know this is possible under Windows.)
    I'm comfortable with delving into new territory in Automator, AppleScript, or shell scripts to make this easier.
    Thanks!

    We had a similar problem
    It turned out to be a feature and not a bug
    Actually 'vanilla' XP handles those files and is able to open them and it seems that the problem appears only after updating the XP to fix the vulnerability described in:
    http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/MS02-054.asp
    What we have determined is that if the zip file contains '/' at the begining of the path - the compressed folder utility will refuse to open it and will show only a blank pane in explorer. Removing the '/' from path in zip file solves the problem on updated Windows XP.

  • I trimmed a .mov file within Iphoto11 and now I can't copy & paste to my desktop

    Hi
    I imported a .mov file from my digital camera to my Iphoto11 Library.
    I wanted to email someone the video clip but wanted to TRIM it to remove an unwanted section of the .mov
    So I used the functionality within Iphoto to Trim the .mov
    I then right clicked on the .mov selected COPY
    I then went to my desktop and selected Paste.
    Instead of pasting the 50MB video, it pasted an 80kb .mov file.
    The files opens using Quicktime but is blank.
    The .mov file still plays fine in Iphoto11.
    I have tried searching for the .mov filename but can't find it on my MAC.
    Other ,mov files can be copied and pasted with no issue.
    I have opened up Iphoto using the special key stroke and selected all the options.  this has not worked.
    Anyone got any ideas?

    thanks Terence,
    So I went into Iphoto, selected the Trimmed Movie and selected. PHOTOS, revert to Original.
    Now I can COPY and PASTE the MOVIE from Iphoto to a normal Folder.
    I then opened the original .mov file in Quicktime and trim the movie.  I then go to close and save
    "The Operation could not be completed, an unknown error occured"

  • Need to automatically move files to another folder

    I have been playing around and can't find the answer I need, please help...
    I shoot photos in RAW+JPEG and, therefore, have two files for each image in folders on my memory cards. I now have AutoImporter set to automatically import all files form the card to a subfolder within Pictures called Auto Import. I would like to add a folder action or script of some sort on Auto Import that would take the JPEGs and move them to a different folder automatically after import (addition to this folder.
    My goal here is to split the RAW from JPEG into separate folders so that I can have Time Machine and iDisk back up just the JPEGs, leaving the RAW only for editing in Aperture.
    I am pretty new to Mac and not very familiar with scripts or folder actions but I can muddle through. I looked around Automator but could not see any action that might work.
    Thanks for any help.

    OK, forget everything else, here's where I am at...
    Got Aperture importing and saving the files into folders just the way I want. It is creating backup copies to a second folder.
    I am using Aperture to import images to specific folders as follows:
    1) Imports RAW+JPEG files to folder "Import"
    2) Also sends copy to backup location folder "Jpeg Files"
    3) Each set of files goes into a subfolder within "Import" and "Jpeg Files" that is labeled with the shot date (so the paths would be ...pictures/"Import"/"shot date" and ...pictures/"Jpeg Files"/"shot date")
    Now, the goal is to set a folder action to "Jpeg Files" that would look for the RAW files and delete them, thereby leaving just the JPEG file in the folder labeled with the shot date. Of course, folder "Import" would still have both the RAW and JPEG versions.
    I worked with Automator to create a folder action for "Jpeg Files" that would include Find Finder Items and selecting Search "Jpeg Files", then Any-File Extension-Is-"NEF" (NEF is the RAW file extension). I then add Move Finder Items To Trash.
    When I run from within Automator, it works perfectly and deletes just the .NEF file. As soon as I apply the action to the folder, however, and run through the steps, it deletes the subfolders containing the NEF file and the JPG file instead of just the NEF file.
    What am I doing wrong?? I just want it to delete the file type, not the folders.
    Thanks for your help!

  • Help creating automator workflow (mencoder)

    Hello everyones.
    I wonder if anybody want and could halep me with an Automator scirpt.
    My relatives use to make lots of family video, then they ask me to merge them to make a single file.
    Now, in order to achieve this, i use mencoder. The script is the following:
    $ mencoder -oac copy -ovc copy -idx -o outputfile.avi part1.avi part2.avi
    So, I'd like to create a service that when I select two or more movie parts it asks me to create the output merged video.
    Is it possible through automator?
    Thank you in advance for the help.
    Cheers!

    Hello everyones.
    I wonder if anybody want and could halep me with an Automator scirpt.
    My relatives use to make lots of family video, then they ask me to merge them to make a single file.
    Now, in order to achieve this, i use mencoder. The script is the following:
    $ mencoder -oac copy -ovc copy -idx -o outputfile.avi part1.avi part2.avi
    So, I'd like to create a service that when I select two or more movie parts it asks me to create the output merged video.
    Is it possible through automator?
    Thank you in advance for the help.
    Cheers!

  • Move file within directories

    Hi
    Can anyone let me know how to move a file from source directory to target directory in an unix/windows NT system and how to do error handling.
    Please let me know the code.There was a thread which desscribed this but am not able to locate it
    Thanks
    Panda<b></b>

    Hi Guys
    I tried the following code for Windows NT to move a file from one directory to another but its not working.Can you please suggest what is going wrong
    am using operating system command 'MOVE' while creating external command
    ws_file_path = 'D:\usr\sap\UKR\DVEBMGS00\work\ENQLOG00.DAT'.
    p_tg_dir = 'D:\usr\sap\UKR\DVEBMGS00\data'.
    Forming the command
    concatenate ws_file_path p_tg_dir into ws_comm_winnt
    separated by space.
    Call function to execute 'ZMV' command defined in SM69 CALL FUNCTION
    call function 'SXPG_COMMAND_EXECUTE'
      exporting
        commandname                   = 'ZMV'
        additional_parameters         = ws_comm_winnt
        operatingsystem               = sy-opsys
        stdout                        = 'X'
        stderr                        = 'X'
        terminationwait               = 'X'
      importing
        status                        = ws_zstat
        exitcode                      = ws_zexit
      tables
        exec_protocol                 = t_move
      exceptions
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        others                        = 15.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.

  • Can you move files within music library?

    I recently added a number of audio books I have on CD to the iTunes library expecting to be able to drag and drop them into the audio book folder, I can't. Now when I'm playing my pod on shuffle (which is usual) I get the occasional chapter of a book.
    Does anyone have a method to prevent this. I have followed all the instructions on moving files and although I have enabled audio books in iTunes it is not a choice when setting the default folder for storage.

    No, it doesn't have any storage.
    If however you subscribe to itunes Match then matched music and itunes store purchases will be available to play from the internet on AppleTV.
    AC

Maybe you are looking for