How can I sort a sequence files into two new folders in Automator?

I have a folder with 2000 files. I need to sort these files into two folders. I have sequentially renamed the files in automator so that a number is the first character of each file. I need to put the odd numbered files in folder one and the even numbered ones in folder two.
I can do this sort in a spreadsheet. How do I get the resuls of the spreadsheet sort back into automator?
Or is there a better way to do this within Automator?
G4 17 PB   Mac OS X (10.4.2)  

Open the Script Editor in the /Applications/AppleScript/ folder and enter the following:
tell application "Finder"
set source_folder to folder "folder:with:2000:items"
set folder_1 to folder "folder 1"
set folder_2 to folder "folder 2"
repeat with this_item in (get items of source_folder)
if (item 1 of (get name of this_item)) mod 2 is 1 then --odd number
move this_item to folder_1
else
move this_item to folder_2
end if
end repeat
end tell
Insert the paths to the actual folders in lines 2, 3, and 4.
(14737)

Similar Messages

  • Teststand 1.03 - How can I get the sequence file path into an expression?

    The sequence file will be located at different locations on different computers. I need the base address of the sequence file to get to the correct limits file. How can I get the sequence file path into a string-local expression.
    Thanks

    As Ray described, the FindFile expression function and TS API method will seach all TS search directories and return to you the path of your file, assuming the file is located in the search directories.
    If you just want the path of a TS file that you have a reference to then there is a faster, easier method. You can use the Path property of the PropertyObjectFile class. In the attached example I use an AcitiveX Automation adapter step to call Path on the property RunState.SequenceFile. This returns the path to the current executing sequence file. Note that if you have not yet saved the sequence file then the path will be empty. In a subsequence step I strip off the file name leaving the root path of the file.
    Attachments:
    GetSeqFilePath.seq ‏22 KB

  • How can i turn a photoshop file into a website with knowing code? can i upload Muse or DreamWeaver?

    How can i turn a photoshop file into a website with knowing code? can i upload Muse or DreamWeaver?
    I created a few images (pages for a site) on photoshop and want to turn them into HTML code for a website- Can i Just upload the file into one of these programs and make a file with the correct code imediatly?
    I was reading about using EDGE Reform but i did not understand if i can create the code with it, in the end it says it still needs to be sent to website developer after?

    You need to look at Dreamweaver as a code editor. You need to learn to create good, clean HTML code with style sheets to make websites with Dreamweaver.
    There are tutorials that will take you from a layered .PSD file to HTML. Here's a good one:
    http://net.tutsplus.com/tutorials/site-builds/from-psd-to-html-building-a-set-of-website-d esigns-step-by-step/
    Adobe's Muse is a semi-WYSIWYG website layout creator for small websites (1-5 pages). But there is no way you can go from a .PDS file to Muse, you have to start the site in Muse.
    I have seen a few Muse sites and they're OK, but there is some code that Muse creates that is kind of odd. If you want a good, clean website that will work for you or your business, Dreamweaver is the best choice. Alternatively, you could hire a pro.
    -Mark

  • How can I convert a pdf file into a usable xcel file

    how can I convert a pdf file into a xcel file. the pdf file file is layed out in colums, justified and separated in various types - i need to be able to set colum limits manualy,  thanks for your input/

    Without further information, I would suggest using either Acrobat or the Export PDF service.

  • How can i read local excel file into internal table in webdynpro for abap a

    Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
    thank u for your reply

    Deep,
    File manuplations...............................
    1. At the presentation level:
    ->GUI_UPLOAD
    ->GUI_DOWNLOAD
    ->CL_GUI_FRONTEND
    2. At the application server level:
    ->OPEN DATASET : open a file in the application server for reading or writing.
    ->READ DATASET : used to read from a file on the application server that has been opened for reading
    -> TRANSFER DATASET : writing data to a file.
    -> CLOSE DATASET : closes the file
    -> DELETE DATASET : delete file
    If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
    call function 'GUI_UPLOAD'
    exporting
    filename = p_file
    filetype = 'ASC'
    has_field_separator = '#'
    tables
    data_tab = t_data
    p_file : excel file path.
    t_data : internal table
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • How can I embed a pdf file into the body of an email?

    How can I embed a pdf file into the body of an email?

    The problem is defining what it even means to “embed” a PDF file in the body of an e-mail, especially if you are dealing with a multiple page PDF file.
    E-mail is either pure text, rich text (something akin to RTF in Word), or HTML. PDF is not compatible with any of these. Thus, to embed a PDF file, something has to be converted and that means the PDF would be converted to a less graphically rich raster format. But is that what you would really want?
    I think that the MacOS and iOS e-mail clients do under some circumstances place an attached PDF file within HTML segments and by clicking on same, you get the equivalent of extracting the full PDF file, but I have no real experience with that.
    Another alternative is HTML with a proxy image with a hyperlink to an external PDF file that is invoked when you click on the hyperlink.
    Perhaps you can explain what you are really trying to accomplish and what the recipient of such an e-mail's actual experience would be?
              - Dov

  • How can I insert a completed file into another PDF file I am developing?

    How can I insert a completed file into another PDF file I am developing?

    Please refer : http://acrobatusers.com/tutorials/how-to-insert-a-pdf-into-a-pdf

  • How can I import MP3 audio files into premiere pro cs5?

    Can any one help?
    How can I import MP3 audio files into premiere pro cs5?

    It is really difficulty for me.If you still haven't found a satisfactory answer,please search it on google.Hope you can get your answer as soon as quickly!
    fifa 14 coins
    cheap fifa coins

  • How can I turn garage band files into mp3s?

    On my older Macbook i have always been able to easily turn my .band files into mp3s under the Advanced heading in itunes, but with my Macbook Pro, that is not an option. The option has become "Create AAC version". How can I turn my .band files into mp3s so that I can load them onto my web page and my students can pick them up as mp3s and put them on their devices?

    The option has become "Create AAC version".
    Your iTunes importing preferences are currently set to AAC. If you change your Importing preferences to mp3, the option should then become "Create mp3 version". See the following document for some more details:
    iTunes: How to convert a song to a different file format

  • How can i import an excel file into formscentral?

    how can i import an excel file into formscentral?

    Thanks for asking.  This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Perry

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • How can you convert a PDF File into a picture format for uploading?

    How can you convert a PDF File into a picture format for uploading?

    If you have Acrobat 11, you'd select: File > Save As Other > Image
    and select one of the available image formats.

  • How can I import a pdf file into numbers so it will open with a click

    How can I import a pdf file into a spreadsheet so that it will open with a click?

    You can link to a webpage or an email in Numbers-- that's it.
    The best way I found to do this is to enable websharing on your machine (see this article if you are running 10.8: http://lowendmac.com/crews/12lc/web-sharing-mountain-lion.html)
    You can then place your pdf files in the folder /Users/<your user name>/Sites/<somefolder>
    Then link to this using the url  "<your machine name>.local/~<your user name>/<somefolder>/<pdf Name>
    My machines name is "Proton" (you can get this from the System Preferences > Sharing pane)
    My user name is "wayne"
    so I stored a pdf file (DM00027543.pdf) in the folder "/User/wayne/Sites/PDFTest"
    and stored the URL "http://proton.local/~wayne/PDFTest/DM00027543.pdf" in the "URL" field of the Hyperlink inspector

  • How can I split a QuickTime file in two?

    8/21/2006. How can I split a QuickTime file in two? I saved a two hour videotape converted by PYRO A/V LINK to iBook G4 combo into a file of 24.5 Gb, and I saved to QuickTime into 536 mgs. Of course, it took half a day. When I went to copy it as video (536 mgs) onto a CD of 700 mg capacity, Toast 7 said it required 1100 mgs and couldn't do it. I have QuickTime Pro, got just recently. I would be very happy to learn how to split it, so to copy each of the split pieces onto 2 CD's, for my own purposes. Many, many thanks. Chuck Yopst. [email protected] 847-394-5621 Moutn Prospect, IL (nw Chicago suburb)

    Wednesday, 10:35 am CDT, 30 August 2006
    Kirk, Thanks for your post Monday 8/21. Interesting how things worked out. I split the OuickTime file--of my retired uncle Church of the Brethren pastor's 50th wedding anniversary, and came up with two folders. Each contained four more folders, and inside folder Mvseg was file Avseq.dat which contained the video material and, when double clicked, started playing that half of the story on Windows 98SE. It just so happens that my uncle's PC operating system is a Windows 98SE. All this from QuickTime 7.0 which Windows 98SE would play the audio but not the video. Then a week later, yesterday in fact, in looking through iDVD help I found your solution, which heretofore I had no idea of. I had to go into System Preferences--Hardware--CDs & DVDs, and set these for "Open with 'Ask what you want to do'." The factory settings were to "open these when inserted" without that "Ask"ing. So then I was able and did follow your solution and it worked, but as a single QuickTime file, playable on Windows XP and Windows 2000 and Macintosh but not Windows 98SE. So everything worked out well. And thank you again. Chuck Y

  • How can I open my .cwk files on my new iMac OS 10.8?

    How can I open my .cwk files on my new iMac OS 10.8?

    Tom in London wrote:
    Alas, you can't.
    You can open nearly all of them. Pages will open AppleWorks 6 Word Processing documents but not AppleWorks 5 ones.
    Word Processing documents can be opened directly only in Pages.
    Draw Documents can be opened directly only in EazyDraw (the more expensive version from their website, not the cheaper one from the Mac App Store, and you will need v4.0 'Retro' not the most recent version) or Intaglio (though this appears not to be able to handle very complex drawings). (It's possible to copy Draw documents into a Word Processing document in order to open them in Pages, but you need AppleWorks to do this in the first place.)
    Spreadsheets can be opened directly only in Numbers.
    Presentations can be opened directly only in Keynote.
    Nothing will open AppleWorks databases or Paint documents: the only way to access them is to open them in AppleWorks and export.
    This seven-page article examines migrating from AppleWorks in some detail:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    Cheers
    Pete

Maybe you are looking for

  • Query in SQVI

    Hi experts, I did maked a query in SQVI. When I log in the system TR I can open the report but I couldn't open in ES. I've got a dump. You can see the following error analysis. What should I do? "A RAISE statement in the program "CL_GUI_ALV_GRID=====

  • Can't create a ringtone on itunes

    When ever I try to create a ringtone a window pops up that says "itunes could not connect to the itunes store. an unknown error occurred (11556)". but my internet connection is working fine, any help would be appreciated.

  • How do I reach the customer relations team?

    I have been unsuccessful in getting help for an extended warranty repair for my Vaio for weeks.  How do I reach someone who actually cares and can assist, who resides in the United States.

  • Set up exchange account?

    I am trying unsuccessfully to set up an exchange account to sync my contacts. Help!

  • New zen player avi vi

    Does anyone know why the new zen player doesnt support avi video format? My friend has a Zen Vision M 30 GB and?his entire library is in AVI format because his player supports them. Why the switch and loss of support on the new Zen? I thought it wasn