[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] A general question



Awrobinson@aol.com writes:
|In particular, I like being able to arrange icons aphabetically in a folder. 
|The short question is, can I replicate some of this functionality with
|MacPerl? 

The FInfo structure contains the location of the icon, so you should be
able to use FSpGetFInfo to get the structure, set fdLocation, clear the
inited flag in fdFlags, and write the structure with FSpSetFInfo. This
is the most general solution as you can set the icon locations to whatever
you want (like, for example, smashed up against each other to form a
picture). See Files.pm and the appropriate Inside Mac for more info.

You can probably also do something with AppleScript, although you'll
be limited to how the Finder knows how to arrange the icons.

However, in this particular case, what's wrong with doing a Clean up By
Name?

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch