Re: Entourage folder hierarchy
Re: Entourage folder hierarchy
- Subject: Re: Entourage folder hierarchy
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 19 Jan 2003 19:31:56 -0800
On 1/19/03 7:04 PM, I wrote:
>
One of the handlers (actually it's a whole set of handlers) of which I'm
>
proudest gets all the folders - local, IMAP, Hotmail - and newsgroups too,
>
and puts them into a 'choose from list' with correct indentations for each
>
level, just like the Entourage folder list. It took me a long time to get it
>
right.
The hard part wasn't so much constructing the list with indents, although
that had its moments too. It was knowing what you got back when a user chose
a folder which had the same name and indentation as other folders
(subfolders of different folders can have the same name), since 'choose from
list' only identifies the string chosen, not its index in the list. The
trick was to make a parallel list of IDs, and to add on spaces to the name
when an identical string already existed, so that each string was unique and
could be found in the list.
--
Paul Berkowitz
_______________________________________________
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.