Re: Get List of Certain Desktop Filetypes
Re: Get List of Certain Desktop Filetypes
- Subject: Re: Get List of Certain Desktop Filetypes
- From: Matthew Smith <email@hidden>
- Date: Thu, 06 Dec 2001 14:34:02 +1100
on 06/12/01 02:17, Gnarlodious at email@hidden wrote:
>
I am trying to get a list of specified filetypes on my Desktop:
>
(Akua)
>
tell application "Finder"
>
set x to items in desktop whose file type is in ({"M822", "TEXT"} as alias)
>
repeat with i in x
>
open alias i
>
>
ETC.
>
>
What is the best/right way to do this? Because I get error "Can't make
>
{"M822", "TEXT"} into a alias"
How about:
tell application "Finder"
set fileList to every file of desktop whose file type is in
{"M822","TEXT"}
repeat with oneFile in fileList
open oneFile
end repeat
end tell
This works in Mac OS 9. It used just the Finder's dictionary.
--
Matthew Smith