Re: Sorting finder windows by name, date etc.
Re: Sorting finder windows by name, date etc.
- Subject: Re: Sorting finder windows by name, date etc.
- From: Jay Young <email@hidden>
- Date: Thu, 25 Jul 2002 20:07:54 -0500
Hi David,
This seems to work on OS 10.1.4 with AS 1.8.2. Hope it helps!
Jay
-------------------------------------------------
tell application "Finder"
tell window of folder "Applications" of startup disk
open
set current view to list view
end tell
set sort column of list view options of window 1 to 2
end tell
-------------------------------------------------
On Thursday, July 25, 2002, at 05:17 PM, David Crowe wrote:
>
I thought I should be able to:
>
>
tell application "Finder"
>
tell window of folder "Applications" of startup disk
>
open
>
set current view to list view
>
-- Next line gets an error
>
set sort column of list view options to modification
>
date column
>
end tell
>
end tell
>
>
>
But, I get an error when trying to set the sort column. This may be
>
because list view options are r/o. So, I'm assuming there must be
>
another way to control this, but I just can't find it.
>
>
Applescript in a nutshell implies that:
>
>
sort files of folder "Applications" of startup disk by modification date
>
>
should work. On OS 9 it just produces a sorted list (i.e. doesn't
>
sort the window). And on Mac OS X I just get an error.
>
>
- David Crowe
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.