Re: Volume index bug in Panther?
Re: Volume index bug in Panther?
- Subject: Re: Volume index bug in Panther?
- From: Paul Skinner <email@hidden>
- Date: Fri, 7 Nov 2003 02:25:44 -0500
On Nov 6, 2003, at 8:32 PM, Bill Briggs wrote:
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
Right, I later referenced it in a script. I was alluding to the absence
of that property in the dictionary entry.
And Item's 'index' is defined as...
' index integer [r/o] -- the index in the front-to-back ordering
within its container'
And the disk titan's container is "titan". cool.
Looking at the properties raises another question.'Network'? 'Servers'?
These are disks? And further...
Network drive 'biggie' mounted from the 'browser'...
{{class:disk, name:"titan", index:2, displayed name:"titan", ...
{class:disk, name:"Network", index:missing value, displayed
name:"Network", ...
{class:disk, name:"vst", index:3, displayed name:"vst", name
extension:"", ...
{class:disk, name:"Servers", index:missing value, displayed
name:"Servers", ...
{class:disk, name:"biggie", index:missing value, displayed
name:"biggie"...
Network drive 'biggie' mounted 'for real'
{{class:disk, name:"titan", index:2, displayed name:"titan", ...
{class:disk, name:"Network", index:missing value, displayed
name:"Network", ...
{class:disk, name:"vst", index:3, displayed name:"vst", name
extension:"", ...
{class:disk, name:"Servers", index:missing value, displayed
name:"Servers", ...
{class:disk, name:"biggie", index:4, displayed name:"biggie", name
extension:"",
PS
_______________________________________________
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.