• 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: filtering a list of items with Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filtering a list of items with Finder


  • Subject: Re: filtering a list of items with Finder
  • From: John Delacour <email@hidden>
  • Date: Fri, 25 Oct 2002 18:16:07 +0100
  • Mac-eudora-version: 5.3a6

At 11:44 pm +0900 25/10/02, Gakuji Ohtori wrote:

The folloiwng code generates an error (-1731):

tell application "Finder" to get (items whose class is not disk) in desktop

Is this the expected result or is it simply a bug of Finder?

I'm using Mac OS X 10.2.


It doesn't work with this either, which would be the proper syntax:
'..get items in desktop whose class is not disk'


So, as far as I can see, you'll have to do this:

set ls to {}
tell app "Finder"
repeat with f in (get desktop's items)
if f's class is not disk then set end of ls to contents of f
end
end
return ls


-- JD
_______________________________________________
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.

References: 
 >filtering a list of items with Finder (From: Gakuji Ohtori <email@hidden>)

  • Prev by Date: iPhoto - Mail.scpt change to Entourage X
  • Next by Date: Re: OS X deleteFile
  • Previous by thread: filtering a list of items with Finder
  • Next by thread: Re: filtering a list of items with Finder
  • Index(es):
    • Date
    • Thread