• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Home to top of the list.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Home to top of the list.


  • Subject: Re: Home to top of the list.
  • From: Philip Aker <email@hidden>
  • Date: Sat, 16 May 2009 11:09:49 -0700

On 2009-05-16, at 09:07:58, Robert Poland wrote:

This works to home to top of folder IF IT'S SET TO NAME VIEW.
tell application "Finder"  -- home to top of folder
tell window 1 to select item 1
...

If in a "date modified" view it still homes to the first item by name and not the top of the list.
Is there a command that will do this?

I'm having trouble interpreting the problem description.
I think you mean something like the following (which will have to be changed if the sort direction is descending):

set hf to path to home folder
tell application "Finder"
set top to date ("Jan 24, 1984")
set dlist to modification date of every item of hf
repeat with i from 1 to count of dlist
set d to item i of dlist
if (d is greater than top) then
set top to d
end if
end repeat
set tlist to every item of hf whose modification date is top
reveal item 1 of tlist
end tell


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Home to top of the list.
      • From: Robert Poland <email@hidden>
References: 
 >Home to top of the list. (From: Robert Poland <email@hidden>)

  • Prev by Date: Home to top of the list.
  • Next by Date: Get unread message count from Mail.app
  • Previous by thread: Home to top of the list.
  • Next by thread: Re: Home to top of the list.
  • Index(es):
    • Date
    • Thread