Automator to move shared files

I am using OS X 10.7.3 and shared files with OSX 10.7.3 server.  I want to use automator to identify certain files in a shared folder and move them to another shared folder. 
I tried this on my non-server 10.7.3 with files on the HD and it works fine. But when I try to use it with shared files, although it will get the folder, it won't identify the contents and simply hangs.
Any thoughts?
Using Macmini 10.7.3 Server and Macmini 10.7.3

I am using OS X 10.7.3 and shared files with OSX 10.7.3 server.  I want to use automator to identify certain files in a shared folder and move them to another shared folder. 
I tried this on my non-server 10.7.3 with files on the HD and it works fine. But when I try to use it with shared files, although it will get the folder, it won't identify the contents and simply hangs.
Any thoughts?
Using Macmini 10.7.3 Server and Macmini 10.7.3

Similar Messages

  • Automator or Apple Script To Move Multiple Files to Multiple Folders

    I was just wondering, is there any sort of automator workflow or maybe apple script that will allow me to automate the following:
    I have a folder named SCANS containing multiple different files that need to go to multiple different folders.
    So Say I have:
    SCANS
    and in this folder I have ten files named A,B,C,D,E,F,G,H,I,J and I want each of these files to be moved to different folders eg.
    A I want to go to folder 1
    B I want to go to folder 2
    C I want to go to folder 3 etc etc.
    Anyone know if there is a way of doing this please?
    I have tried a workflow where I find finder items in the Scans folder and move to another but that only seems to work for one file.  When I add more it does not seem to work.
    Any help/guidance would be appreciated.
    Thank you!

    Hi Niel,
    Not quite what I wanted because I missed some information from my question....
    What I actually want is to search for files containing certain text in the name and if positive to then move that file to the specified folders.
    Cheers.

  • Script/Automator Get Filenames in Folder and Move Each File into Folder based on Filename?

    I have searched for an answer to this and I have searched through multiple file renaming apps on the app store too but alas I cannot find anything that does what I want so I ended up looking into Automator as my saviour but I am a total NOOB.
    What I want to do is point automator to a folder of my choosing
    Automator then takes each file in that folder and creates a folder with the same name as the file and then move the file into that subfolder.
    Sounds easy enough eh
    I'm totally stumped, anyone have any guidance ???

    This is a PITA to do in automator - automator does not handle loops the way it should - but in applescript it looks like so (open this in the applescript editor, select the file you want to run it on in the Finder, then run the script):
    tell application "Finder"
              set mainFolders to the selection
      -- selection returns as a list, so even if there's only one folder a loop is used
              repeat with thisFolder in mainFolders
      --get the folder's contents
                        set containedItems to every item of thisFolder
                        repeat with thisItem in containedItems
      -- get name of file, add 'ƒ' to avoid name conflicts
                                  set newFolderName to (displayed name of thisItem) & " ƒ"
      --make folder, move item
                                  set newFolder to make new folder at thisFolder with properties {name:newFolderName}
      move thisItem to newFolder
                        end repeat
              end repeat
    end tell

  • Automator error when no files exist to move

    I have a very simple automator script set up in Snow Leopard:
    Find Video files in "Downloads" folder that are larger than 50 MB
    Move those files to the "Files to Convert" folder
    The script works perfectly when there are video files in the folder to convert, the problem is it throws an error when there are no files. I receive a "The action move finder items encountered an error" "The action move items was not supplied with the required data"
    I can see why the script is failing but do not know how to tell it to ignore the error if no files are found.
    Any thoughts?

    Put a step in there to see if there are any files ≥50 MB. If not, quit the workflow. If so, continue. For AppleScript details, post to its forum under OS X Technologies or try the Automator forum under Mac OS X v10.5 Leopard
    BTW. your profile shows Tiger and you've posted to the Snow Leopard forums. Please fix the discrepancy.

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • I was wondering if it was possible to use Automator to move files based on the filename.

    Hi,
    I'm kind of new to Automator and I'm trying to come up with a sequence that will severely save me a few hours a day moving files from two larger folders into smaller folders. Basically the setup is that I have two folders, one constantly being populated with images and the other with video files. They each have file names starting with a two digit number (i.e. 12, 11, 10...) or "BG" and then a two digit number (i.e. BG12, BG11, BG10...) with the digits corresponding to a year. Essentially, I'd need to move the files into folders corresponding to the year (i.e. files starting with BG12 and 12 would be moved to 2012, files starting with BG11 and 11 would be moved to 2011, etc). As it stands now, I've only been able to get the 2012 folder populated. Any help would be greatly appreciated. Thanks.

    Hi,
    Here's a solution that uses a script, because it is not possible, at least to make twenty or more Workflows
    In Automator :
    Create a new worflow.
    Add the action "Run Shell Script", select "/bin/bash" in the popup menu
    Cut the text in the action.
    Copy/paste this script in the action :
    targetsDir=('/Users/jack/Desktop/MyImagesFolder' '/Users/jack/Desktop/MyVideosFolder')
    destDir=('/Users/jack/Desktop/yearImageFolder' '/Users/jack/Desktop/yearVideoFolder')
    for i in 0 1;do
          subfolder="${destDir[$i]}"/20
          for each in "${targetsDir[$i]}"/*;do
                if [ ! -d "$each" ];then ## not a directory
                      name=${each##*/};
                      if [[ $name =~ ^([0-9]{2})|^..([0-9]{2}) ]]; then
                            [[ $name =~ ([0-9]{2}) ]] && year=${BASH_REMATCH[1]};
                            /bin/mv -n "$each" "$subfolder$year"
                      fi
                fi
          done
    done
    Replace the paths in the first line by the path of your Images Folder  and Video Folder, use drag/drop between the simple quote ''
    Replace the paths in the second line by the path of your destibation Folders, use drag/drop between the simple quote ''.
    This script will not overwrite existing files, If you want to replace the existing file, use the /bin/mv -f instead of /bin/mv -n
    That's it.

  • Sharing files with multiple users on single iMac

    THIS IS a REPOST from another location - more appropriate "thread"
    After switching to Mac from a PC about a month ago (& not being technologically over-adept), I have finally succeeded in creating separate "User" accounts on my iMac (1 admin, 1 standard, 1 managed) to allow the 3 users in my household to create their own workspace. However, now I would like to allow them to access all files from some applications - iTunes, iPhoto, Address Book, etc. - and some of the files within Numbers, Pages, & Keynote (that were theirs to start with...but they were working on in "my" admin space before establishing separate Users.) As an additional challenge, I'd still like to have access to their files...for monitoring purposes...as we go forward. I've "searched" the Apple support files and found reference to some of this but (1) I can't seem to figure out how to move the files into the Public Folder (I did one, then logged in as another User & it wasn't there...) and (2) If they access files from the Public Folder, will they need to specifically save them back there when done? -- my other users will NEVER remember to put something back where they got it...

    You can give each user read and write permissions to just that folder, or to everything in it. But that will not stick to any new files that are added to the folder hierarchy after that point. When new files are created they are read and write for the creator, and read only for all others. If you want to change that it must be done manually for each new file that you add.
    There is a way to get around this, and make every file/folder added to a folder hierarchy automatically get full read and write permission for the users you specify. It requires setting up ACLs. Do it this way:
    1. Make a new subfolder in /Users/Shared. Call it something like /Users/Shared/sharefolder. Move all the files you want to share into this folder.
    2. Go to System Preferences and unlock the Accounts pref pane. Click the + button. Make a new group (select "group" from the drop down menu). Call it something like "sharegroup". Add the users you want to that group.
    3. Log in to an admin account. Launch Terminal. Paste in all three of these lines at the same time and then press Return:
    sudo chmod -R +a "sharegroup allow delete,chown,list,search,add_file,\
    addsubdirectory,delete_child,file_inherit,directoryinherit" \
    /Users/Shared/sharefolder
    Enter your admin password when prompted and press return again. You are done. The users in the sharegroup can all now read and write everything in the sharefolder. They will also be able to read and write any file that is newly created or copied into the sharefolder from that point on.
    NOTE: After setting this up, and you want to add more files to the sharefolder, be aware that files that already exist outside the sharefolder WON'T inherit the new permissions if they are simply moved in (i.e. drag with Finder). They must be copied in. Hold down the option key when dragging files into the sharefolder. That will ensure that a new copy will be made, and the permissions will inherit properly. You can then delete the old copy of the file from its previous location.
    I hope this helps.

  • How to apply multiple automator workflows to one file

    Hi everyone,
    I've set up a few workflow applications to automate the process of making packshots from PDF files. The way those roughly work is they create a temporary copy in a folder, open a Photoshop droplet that executes all the actions on the file, and then save the finished product in a "finished" folder.
    However, we frequently need to deliver multiple packshots made from the same file. I was asked to make one automator app that allowed us to drop the PDF version on it, resulting in the multiple types of packshots in the "finished" folder, together with the original PDF.
    The way I have this set up right now is as follows:
    1) Copy the original PDF file to the "finished" folder
    2) Execute the first automator app
    3) Execute the second automator app
    This seems simple enough, and does work in 10.6.8. When I try it on a different computer in our studio though, with 10.7 installed, I get various errors:
    - Sometimes it says an error occured within one of the automator apps, while the app works fine when running it seperately (on all computers).
    - Sometimes it says something like "An error occurred while converting the data" when moving on from the first application to the second application
    - Sometimes I'll get an error message in the log, saying:
    *** -[_NSArrayl objectAtIndex:]: index 0 beyond bounds for empty array
    What I got from this is that it's actually not getting the right input it requires (or not getting any input, since it's an empty array). However, the previous task is set to "return the task input" (our systems are Dutch so excuse me for any discrepancies in translations please), and the resulting output that I get seems to be what I want the next automator application to use. Below is a screenshot of the error message:
    What I've tried:
    - I read somewhere that the newer versions of Automator require the action "Retrieve selected finder items" between them. I've tried using this in various ways (between all other actions/tasks, only before the second application to be run and before both applications to be run), but with no success. The problem I have with these is that, during the applications, it moves the files around, thus apparently selecting those folders as well.
    - Building an entirely new workflow on the newer system
    - Using "Start application" instead of "Execute Automator workflow". This results in Automator saying that it did execute the workflow while nothing happened.
    - Using "Ignore input" for the second application. This also results in Automator saying that it executed the workflow while nothing happened.
    So right now, I'm pretty stumped as to how to get this combination of apps to work in 10.7. Any solutions or workarounds are most welcome.
    Thanks in advance!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones.
    We are looking for a way to:
    - Share our photos (we don't use iPhoto) and some files. We would like to have this in one shared folder, that we can access from both accounts in the iMac, the MBA and ideally (though not a must) the PC and iPhones. We would both need to have admin rights to edit documents, etc.
    - Have access to all the information in my account on the iMac from the MBA. Ideally, same thing for his and the PC.
    - Have access to all the data remotely when traveling.
    - Have all the data backed up locally (we already have a cloud backup, but we'd like to have a local backup too as it's easier and quicker to access)
    We have read a lot about configuration, NAS, time capsule... but we get more and more confused, as we are obviously no tech experts.
    Dropbox is not our preferred choice. We already have a cloud backup system. We'd rather have the files stored and accessed locally for everyday use.
    Using a NAS to store shared folders and backup the rest sounds good, but they either seem very complicated to set up, or they have mixed reviews in terms of stability, especially to access files remotely.
    Timecapsule seems easier and more straightforward, but I'm not sure it would solve the "sharing files between users and macs with admin rights"? It seems to be more focused on backing up the main drive and then providing access to the backed up files. (Though I might be completely mistaken!)
    We just can't manage to have one shared folder between both accounts in the iMac. We need to grant admin rights document by document. We don't manage to make it work automatically so we both have one folder to access with full rights for all the contents inside it. And this seems to me like something that should easily be done...?
    Any help, advice, proposals... would be greatly appreciated!!!

    Move any file you want to the other user to access to the Shared Folder. Anything you put in that folder is available to all users.
    The shared folder is here:
    Macintosh HD > Users > Shared

  • Using an external drive with shared files (iPhoto, iTunes), attached to a Time Capsule, can the contents of the external drive be backed-up to the internal Time Capsule drive? Perhaps a RAID1 mirror to a partition?

    Using an external drive with shared files (iPhoto, iTunes), attached to a Time Capsule, can the contents of the external drive be backed-up to the internal Time Capsule drive? Perhaps a RAID1 mirror to a partitioned Time Capsule? I understand that the Time Machine (software) cannot backup a networked drive (the external) and that Time Capsule (the router/wireless hard drive) does not have its own backup software... so it won't backup the connected drive. What I would like is an alternate solution for having an automated backup of a networked drive. A 2TB Time Capsule has more than enough space for Time Machine backups of my family of Macbooks, so I had hoped to mirror a 500GB external drive (with shared media files) to a portion of the Time Capsule internal hard drive. I assume this would require a partition of the Time Capsule drive. If not, would the sparse file from the various computers being backed up need to be copied to the external drive as part of the RAID1 setup? This seems like overkill for the Time Machine backup, but it would cover the media files.  

    The complexity with this idea is the software has to run from a Mac computer on your network.. so you need a Mac turned on, probably most of the day.
    It isn't possible to partition the TC although you can create a image area.
    The software would have to copy the material, that means all files to be copied, go from USB drive, back to the Mac, then back to the TC, and written to the drive. In other words you have just added Network congestion, although a proper incremental backup type software will not actually use a lot of capacity.
    Finally it will be slow.. network drives are slower than internal drives. Well USB connected drive is much slower than the same drive connected directly to the computer.. and if the drive is connected directly to a computer it can be shared with the network.
    http://www.anandtech.com/show/4577/airport-extreme-5th-gen-and-time-capsule-4th- gen-review-faster-wifi-/4
    Read carefully the speed of the USB drive plugged into the TC.

  • How do I move my files from my Macbook to a pc?

    How do I move my files from my MAcbook to my pc?

    What operating system is the PC running?
    You will need to turn on file sharing on the PC. For Windows XP use methods described here. Windows 7 here.
    Connect to the shared Windows volume by going to the Go menu in the Finder and selecting Connect to Server... In the resulting dialog type smp:// and the IP address of your windows machine. Click Connect and enter your Windows machine's username and password when prompted.
    The Windows share will now appear on your Mac's desktop. Drag the items you want to copy over to it.
    Best of luck.

  • How do I move a file with 'no access' permissions?

    I have a file on a computer that I do not have administrator access on. The file's permissions are -r--------, so the system can read the file only and no one else can read or write the file (or execute the file, but it's a text file so that's not really applicable).
    Basically, I'm trying either to change the permissions (remember, I am not the administrator of this computer, so Get Info>Permissions doesn't work, and chmod +r "file" in Terminal doesn't work either) or to move the file to another computer (where I'm the admin) where I can change the permissions.
    Having no access to a file is really annoying, because it can't even be moved, or at least easily. I've tried copying to various folders, airdropping, sharing via iMessage, opening the file in various applications, compressing the enclosing folder, burning it to a disk (I have a MBA so that doesn't work lol), creating an alias, moving it to the trash, and even dragging the file into a rich text file in TextEdit. Of all those things I've tried, the only successful attempt was to drag the file into a TextEdit document, but I got the rtf file onto the other computer and had no idea how to extract the file I had seemingly just copied into the rtf document.
    I also tried copying the enclosing folder (and enclosing folders many layers out) but the copies always failed because I need to be an administrator to copy that single file deep within the folders. I guess it was worth a shot
    Is there some obscure way of moving this file? Or of changing the permissions? Remember I have absolutely zero admin access to this computer (long story).
    Anything you can come up with will help! You don't need the whole backstory to my predicament but basically I'm transferring the system key for the system keychain so I can open the system keychain on the computer with admin access. Thanks!

    Contact the machine's administrator. Only they can change the permissions.

  • Trying to move a file based on file name

    ok, so i feel like this should be an easy thing to accomplish, but sadly, i can't seem to get it. here's what i got...i have an automator app that will take a file that has been scanned in (pdf) and rename it to the name in a field in one of my filemaker databases. got that working. now, depending on the name of the file, i need this applescript to move that file to the correct folder. for instance...if the file name starts with "P", then i need it to move to 'folder 1'. if it starts with 'L", it needs to move to 'folder 2'....and so on. this is what i've got, but it doesn't work. can someone point me in the right direction?
    on run {input, parameters}
    set FileName to input as text
    tell application "Finder"
    if name of FileName starts with "P" then
    move file FileName to folder "Drive:Folder:Folder1"
    else if name of FileName starts with "8" then
    move file FileName to folder "Drive:Folder:Folder2"
    else if name of FileName starts with "L" then
    move file FileName to folder "Drive:Folder:Folder3"
    else if name of FileName starts with "T" then
    move file FileName to folder "Drive:Folder:Folder4"
    end if
    end tell
    return input
    end run

    try...
    if character 1 of FileName is "P"
    edit:
    Whoops rereading your code I realized I completely misdiagnosed the problem there as "begins with" is proper applescript. What are you passing in as Filename? Try a "display dialog FileName" near the beginning of your script and see what you get. You might also try ...if fileName contains "string"...so you don't need to worry about starts with etc.

  • Want to move a file off my ipod to my authorized computer from my other authorized computer

    how do you move a file between authorized computers with ipod or with sharing?

    Click here and follow the relevant set of instructions.
    (100524)

  • Editing (download/upload) of shared file ... ?

    We have a customer using Filr for sharing files from NET folders to some external users for lecturing/corrections.
    Therefore they must have a possibility to edit/modify files they have been shared to.
    I have tested WebDAV in-place editing and it (a sort of) works. For me, at least. But it involves configuration of all that stuff with certificates on windows 7 ....
    The problem is in external users's wide range of different hw/sw configurations which means a lot of support, writing of instructions...
    Is there any way for external user to download a file he has been shared to, edit/modify it and upload it, instead of in-place editing ?
    Internal user can do that with file inside NET folder.
    External user can do it in the folder he has been shared to. But folders can be shared only from user's homes, not from NET folders.
    Any idea? Or info when will it be possible to share folders from within NET folders to external users ?

    BSajovic wrote:
    >
    > We have a customer using Filr for sharing files from NET folders to
    > some external users for lecturing/corrections.
    > Therefore they must have a possibility to edit/modify files they have
    > been shared to.
    >
    > I have tested WebDAV in-place editing and it (a sort of) works. For
    > me, at least. But it involves configuration of all that stuff with
    > certificates on windows 7 ....
    > The problem is in external users's wide range of different hw/sw
    > configurations which means a lot of support, writing of
    > instructions...
    >
    > Is there any way for *external user *to download a file he has been
    > shared to, edit/modify it and upload it, instead of in-place editing ?
    > Internal user can do that with file inside NET folder.
    > External user can do it in the folder he has been shared to. But
    > folders can be shared only from user's homes, not from NET folders.
    >
    > Any idea? Or info when will it be possible to share folders from
    > within NET folders to external users ?
    Adding the ability to share folders from within NF is definitely on the
    roadmap, but right now is slated as a post-Filr 1.1 enhancement. For
    now what you see are the options external users have: download the file
    using the web/desktop/mobile clients, edit, and reupload; use WebDAV
    edit-in-place; use WebDAV to map a drive to Filr and access the content.
    Your world is on the move. http://www.novell.com/mobility/
    We know what your world looks like. http://www.novell.com/yourworld/

Maybe you are looking for