• 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: Get List of Certain Desktop Filetypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Acrobat Scripting
      • From: Chad Gray <email@hidden>
References: 
 >Get List of Certain Desktop Filetypes (From: Gnarlodious <email@hidden>)

  • Prev by Date: RE: interesting discovery (trying to get record labels as strings )
  • Next by Date: "open for access" changed in 9.2.2?
  • Previous by thread: Re: Get List of Certain Desktop Filetypes
  • Next by thread: Acrobat Scripting
  • Index(es):
    • Date
    • Thread