Re: Volume index bug in Panther?
Re: Volume index bug in Panther?
- Subject: Re: Volume index bug in Panther?
- From: Bill Briggs <email@hidden>
- Date: Thu, 6 Nov 2003 21:32:45 -0400
At 5:49 PM -0500 06/11/03, Paul Skinner wrote:
The Finder's Disks don't have an 'Index' property in Panther. I get
'Can't continue' errors trying to run...
Oh, but they do! You have to look up the property inheritance
chain. Disk inherits the "container" properties, which inherit
"item" properties, and item has an index. So disk has an index too.
if you run
tell application "Finder"
get the properties of every disk
end tell
which does run and work, or did just now, then you get a list of
records containing the properties of each disk. You'll note that the
index is one of those properties.
The thing that I don't get is that I ran the query for "index of
every disk" last night and it returned a list of index numbers. Wrong
ones, but a list nonetheless. Now I get the same error that you and
Deivy get. The guy who verified to me off-list today ran the same
query on his Mac and it worked for him too. If he's reading this
maybe he can see if it still runs without error on his Panther.
tell application "Finder"
get the index of every disk
end tell
but ...
tell application "Finder"
tell disk 1
name
-->"titan"
index
-->2
end tell
end tell
Does seem a bit off.
Indeed.
- web
_______________________________________________
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.