Re: srvr
Re: srvr
- Subject: Re: srvr
- From: Ed Stockly <email@hidden>
- Date: Sat, 06 Jan 2001 20:34:06 -0800
>
Now that's just rude. A simple interface that keeps the gnarly bits hidden
>
away from the general user is what the Mac OS is all about. It's their
>
stated aim. It's the same thing as the one-button mouse, ease of use. And I
>
appreciate that not everyone wants to look under the hood. It's a policy,
>
not a conspiracy, so, what's the problem with mentioning that, Ed?
Well, given the context of the exchange, Chad asking where to find
documentation for scripting that particular property, your comment that
Apple's mission is to conceal that, I was dreading another absurd thread
about how apple makes a great effort to conceal information from Scripters.
If I misinterpreted your comments then I am glad that's not what you meant!
The reason the file type and creator are not shown in the file's get info
window is that that particular data is not considered part of that
information. But that does not mean apple is concealing the information,
certainly not from Scripters and power users.
Ordinary users do not need to know the file or creator types.
Super users, like us, may need that information and it has long been
available from ResEdit and other utilities.
For Scripting, getting and changing the file/creator types of items has been
available for some time.
>
chad> Can someone explain where this "srvr" came from in this script to
>
mount/unmount server aliases.
Every item has a file type, depending on what it is: a text document, an
application, a document from an application, a folder, a disc or server,
etc, etc.
The finder uses that informatin to determine which icon to display with the
item. There are hundreds of file types. srvr is the type which identifies
file servers. It doesn't come from Scripting, it has long been part of the
Finder and the OS.
>
Set the alias_list to (every alias file of this_folder whose file type is
>
"srvr") as list
Since an alias displays the same icon as the original, the alias inherits
the file type. What this snippet illustrates is Apple's resourcefulness and
ingenuity. In making the finder scriptable they gave scripter's access to
the data the finder uses to display icons and we can use that data in ways
that the orginal Finder and system desingers never contemplated.
HTH,
ES
When on the net visit: <
http://justapplescript.weblogs.com/>