How to "list folder" sorted by date

I can get the list of items in a folder but it always is organized alphabetically by name even if the folder is in list form and sorted by date. Is there any easy way to get the list of items sorted by date (or some other property)?
Of course, I can go back and write a sorting algorithm based on these other properties, but I don't want to have to write more...
Thanks
Kraig

Yes, the looping would be necessary in this case. As an alternative you could use a shell command:
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Finder"
set x to POSIX path of (desktop as alias) -- in my case "/Users/michaelhenley/Desktop/"
set y to paragraphs of (do shell script "ls -t " & quoted form of x) -- "-t" sorts by modification date. type "man ls" in Terminal.app for more info
end tell</pre>

Similar Messages

  • WAD - how to design custom sorting of data?

    Hi,
    I have an analysis web item which is mapped to a query i.e a single data provider DP1.
    I have a requirement of disabling the pop up menu that appears on column right click of the report. I have done so. However, I require the sorting feature to be made available to the users. For this I have used a button & selected 'Set Sorting' command from under Characteristics. However, this lets me set sorting only for onw column & cannot be configured as toggle action.
    Plz. let me know how can I implement sorting feature on all columns of the report w/o having the pop-up menu OR if there is a way to have the pop-up menu only display sort option alone.
    Thanks.

    Hi,
    the af:column allows you to group columns
    <af:column>
    <af:column> </af:column>
    <af:column> </af:column>
    </af:clomn>
    Also, in HTML it is easy to assign a background color to cell, e.g. cell with Label 1 is red, Label 2 is green.
    Is there something like this in JSF?
    You can use CSS on the inlineStyl or contentStyle property to dynamically set CSS using EL. You can reference e.g. a managed bean , access the #{row} variable within the managed bean method and return the color based on the value you read for the each row
    Frank

  • How to list searched email in dATE ORDER

    There seems to be a problem with searching for email with my iphone5s.Unlike with my iphone 4s it does not display the results in date order. The most recent emails are shown buried further down in the list. I have asked the gurus at two Apple shops and nobody seems to be aware of the problem or can assist. I would have imagined this would have been readily observed by Apple in the initial beta testing so am surprised it has not been sorted before release. I have uploaded ios7.0.3 so I am up to date.

    i think there is no settings to sort the search results by date, in order to search by time, you can type the month name followed by your search query
    something like "February meeting"
    look into mails section  in the ios& manual
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • How to list column names and data types for a given table using SQL

    I remember that it is possible to use a select statement to list the column names and data types of databaase tables but forgot how its done. Please help.

    You can select what you need from DBA_TAB_COLUMNS (or ALL_TAB_COLUMNS or USER_TAB_COLUMNS).

  • How to list folder sizes in Terminal

    I pulled a command off the Internet, but it does not run correctly in my Terminal (using ZSH):
    find $1 -type f -print0 | xargs -0 stat -f'%z' | awk '{b+=$1} END {print b}' | awk '{ sum=$1 ; hum[1024**3]="Gb";hum[1024**2]="Mb";hum[1024]="Kb"; for (x=1024**3; x>=1024; x/=1024){ if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x];break } }}’
    Would anyone be willing to take a look at this and see if you can get it to run in ZSH, or provide another solution that meets the requirement?
    Thank you.

    Thank you, but after some experimentation, this resolved my issue:
    sudo du -kshc *
    Output:
    8.6G
    Applications
    3.4G
    Library
      0B
    Network
    3.9G
    System
    140G
    Users
    4.0K
    Volumes
    2.6M
    bin
      0B
    cores
    4.5K
    dev
    4.0K
    etc
    1.0K
    home
    8.0M
    mach_kernel
    1.0K
    net
    4.2G
    private
    980K
    sbin
    4.0K
    tmp
    384M
    usr
    4.0K
    var
    160G
    total

  • How to re-sort Table data like A-Z and Z-A

    Hello Gurus,
      How can i re-sort Table data based on last name or first name, once table filled data from backend(i mean, once executed RFC,  Table will be filled with data records, after that i want to re-sort table).
       Can you provide me code, how to do?
    Thanks
    Venkat.

    Hi Venkat,
    For sorting to table columns, you need to pick up the code from here and add into a java file within your development component.
    http://wiki.sdn.sap.com/wiki/display/Snippets/TableSorterClassfor+WebDynpro
    Then, you can call the constructor of the class and pass the arguments to enable table sorting in your code.
    Refer to following blog for execution
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID1078501850DB00490474849923920126End?blog=/pub/wlg/3287
    Let me know, if the problem persists.
    Regards,
    Tushar Sinha

  • How to create folder inside User Meetings using XML API

    Hello,
    I have appreciative if some one help me on below task
         I have created on application for user meeting.
         In that I want dynamic folder creation as per user need or how to list folder that related to login user or say user session.
    Waiting for reply,
    Thanks,
    Gaurang Jadav
    Project Leader
    iFlair Web Technologies Pvt. Ltd.
    www.iFlair.com 
    US: +1-312-235-2876 UK: +44-020-7193-4712

    Hello buddy,
    https://yourdomain.na4.acrobat.com/api/xml?action=sco-update&type=folder&name=gaurang&url-path=gaurangfolder &folder-id=827379162&depth=1
    you need to change yourdomain & 827379162(folder id).
    Hope this will help you in further process
    Good luck
    Regrd,
    Gaurang Jadav

  • List View: How to force update of *actual* file dates when sort by date?

    List View: How do I force and update of actual file dates when sort by date?
    When I go in, I often see the sort order and dates from 12-15 hours ago!
    not good

    Hi, did you ever get that Windows® Sharing thing worked out?
    On this problem, If it's just that you need the Finder to wake up to the fact that it needs to update the window give a try with Refresh Finder - 1.3...
    http://www.versiontracker.com/dyn/moreinfo/macosx/33066

  • In iPhoto if I select View, then Sort Photos by title, how do I stop it reverting to sorting by date when I close iPhoto and re-open it later?

    In iPhoto if I select View, then Sort Photos by title, how do I stop it reverting to sorting by date when I close iPhoto and re-open it later?

    In what mode, Events, Photos or in an Album, are you when you select View ➙ Sort ➙ By Title?
    As a first fix attempt try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE 1: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • How to list the name of recipient in Sent mail folder

    In the Gmail folder in Mail, is a Sent Mail folder. It lists FROM, SUBJECT, and DATE RECEIVED. My wife is the only account using the Mail appl. She would like to know how to have the name of the mail recipient listed, rather than her name as the sender since she already knows that info.
    Thanks.
    Jerry

    Jerry,
    That should happen automatically in Mail.
    Click the Gmail Sent folder. Where the names of the columns is displayed, there should be a dot next to the first column name. Right-click or control-click to get the menu. Click to check To. If you don't want to see From bring up the menu again and click it to uncheck.
    Done.
    -Wayne
    Message was edited by: ParentalUnit

  • When I drag music from a folder that contains songs by different artists and then sort by date added it shows the songs in alphabetical order by artist?

    When I drag a bunch of songs with different artists from a folder on my computer to the itunes library and sort by Date added it puts them into alphabetical order by artist. I am able to workaround this by using date modified. Why does itunes do this? This started happening in July. Prior to that never had this problem. Been adding my music the same way for almost a decade.

    They are added in the same minute. I do not see the second area next to that if it should be. I'm guessing an update to a newer itunes build is responsible. It's a shame. I am using the sort by date modified. But now whenever I modify a file in Itunes it automatically moves it to the top of the list. I am trying to keep the newest stuff at the top of my itunes.

  • How do I sort by date added while maintaining track order?

    Hello,
    I'm trying to do what I think is a simple function in ITunes. I'd like to sort by "date added" and have the tracks line up sequentially by track number. In other words, when in Itunes, I'd like to have (from top of the library to bottom) my most recent album with tracks 1-10, listed, and then the next recent album and so forth. Almost like a most recent album. You can of course sort by date added, and scroll all the way down to the bottom of the page, but then when Ituns plays, you start on the most recent album, it runs through that album, and then is done.
    Any thoughts?

    If you ever find the answer, I'd love to know as well. How odd is it that you can do this. I tried several searches for this in software hacks, and applications that let you alter icon views and the like. Can't believe the limited interest in correcting it either.
    I was looking for a way to display screen shots of various jpeg elements with files names that double as instructions in a tutorial. Icon view allowed me to see pictures in a large enough size to use as instructions with the corresponding file names. All I would have had to do was screen shots assembled into a PDF and I would have been done. Having to retype every instruction along with copy, and pasting into a new document and so forth is more than double the work for any set of pictorial instructions.
    Maybe Garage Band or some other application is the workaround until then. I'll let you know if I ever find a better workaround, or the solution.

  • How to change Finder View Arrange Date Created sort order

    When yoo go to a list of photos in a file under Finder, they can be sorted in different ways, but the most common one for me is by Date Created.  That's all good, but they come out with the latest date first on the list and the earliest at the bottom.  I prefer the opposite to be ideal, but I can find no way or information on how to reverse the sort order.  Any help out there? Thanks.

    Hi, Richard -
    Look for a small triangle in the column's title bar/button. Click on that triangle - it should switch from pointing down to pointing up (or vice versa), indicated the sort order has been reversed.

  • How can I maintain sorted data when I cut and paste?

    I work almost exclusively with .csv files that I download from the local multi-list service (I'm a real estate agent). I can sort and chart data on the multi-list website but the interface for Apple users is pretty bad (Citrix client running through a gateway). I was looking forward to being able to download and manipulate data on my iBook as well as be able to present it to clients in a polished and professional manner. As far as I am concerned Numbers seems like a Beta at this point. I have sent in feedback and realize that I will never receive a reply from doing so. I really want to like this program but right now I just want to run my iBook over with my truck. Any help will be much appreciated.
    I have three Numbers windows open. One is labeled "Sold" (20 columns, 693 rows+1 header), one is labeled "WE" (20 columns, 679 rows+1 header) and one is an untitled template (20 columns, 1 header). When I sort the data in "Sold" and "WE" to the parameters I need I end up with 18 rows in "Sold" and 22 rows in "WE". My goal is to take the sorted data and paste it into the untitled template.
    I select the 18 rows in "Sold" and then select copy (this takes 25.65 seconds BTW!!!). I go to the untitled template and then paste (20.86 seconds). Numbers pastes the entire 693 rows from "Sold" into the untitled template.
    I have tried to choose rows. I have tried to choose columns. I have selected individual cells and I have also tried to "select all cells". Each time I get a different result on what gets pasted into the untitled template. I have also tried "paste", "paste and match style" and "paste values" each time getting anything but what I need (the 18 sorted rows).
    Does anyone know how to do this?

    Hi,
    you should probablu describe better your actual situation:
    Is the form handler servlet a part of your portal web application?
    Seems like yes, if you use getContextPath() :-)
    then the form handler servlet should be able access the same session object
    through
    request.getSession()
    If this is not the case, than you could get the session id at the time when
    you create the form (in your portlet jsp file) and pass it as request
    parameter to the form handler servlet.
    That form handler servlet can return it later ...
    By the way - the session id is contained in the session cookie, that the
    browser sends everytime to the server in the requests. So when it hits the
    ".../application..." url, the server should automatically recognize to which
    session it belongs...
    HTH
    Ales
    "Mukul Sood" <[email protected]> wrote in message
    news:3cc9fd74$[email protected]..
    >
    Hello All,
    I am submitting to a form from a portlet.
    This formhandler is outside of the portal framework.
    Once I am done with form data processing, I need to come back into theportal.
    For this, I am sending a redirect request :
    response.sendRedirect(
    request.getContextPath()
    + "/application?" +"origin=FillMeta.jsp"+"&event=bea.portal.framework.internal.portlet.event"
    +"&wfevent=fileuploaded" +"&pageid=home"
    +"&portletid=FillMeta"
    However, I am not able to pass the sessionid in sendRedirect.
    How could I pass the sessionid using sendRedirect?
    Would greatly appreciate your inputs or suggestions.
    Thanks.
    Mukul

  • I just upgraded to the latest version of iTunes and it duplicated virtually every track in my music library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not help because they are all listed as added on 12/12/2011.

    Library Duplicated
    I just updated to the latest version of iTunes and it duplicated virtually every track in my library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not work, because every track is listed as added on 12/12/2011 even though this happened today 12/19/2011.

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    tt2

Maybe you are looking for