• 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: Index list from the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Index list from the Finder


  • Subject: Re: Index list from the Finder
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 25 Jul 2007 19:24:43 -0700

On Jul 25, 2007, at 6:46 PM, Daniel Brieck Jr. wrote:

set indexList to get the index of every disk -- Getting a problem here on INDEX and don't know why

For some reason, you have to get the indexes individually. There are two "disks" that exist ("network" and "servers") that do not have indexes; they have to be excluded. The only characteristic that I found that distinguishes them from physical disks and dmg disks is that they have a size of zero. So, the following script works:


tell application "Finder" to the index of every disk whose size is greater than 0

-- Michelle

--
Peter pull at St. Taffy's tonight! (Or is it the other way around?)

_______________________________________________
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
References: 
 >Index list from the Finder (From: "Daniel Brieck Jr." <email@hidden>)

  • Prev by Date: Index list from the Finder
  • Next by Date: Re: Filemaker: referring to a "mirror" cell value
  • Previous by thread: Index list from the Finder
  • Next by thread: Re: Index list from the Finder
  • Index(es):
    • Date
    • Thread