ExtensionAn ActionMenu, where string entries are interpreted as file/folder paths. A folder works multi-level, listing subfolders. Directories navigate to the next level with a new window and an up ../ option.
You can still add \key->action associations, just like in ActionMenu.
Closes on click outside or on escape key.
Create an ActionMenu
| parent |
The parent view. |
| bounds |
A Rect |
| name |
The Menu Button Title |
| items |
An Array of Strings or Associations (\key->function) Strings ar interpreted as FilePaths |
| showArrow |
show a little down-tick arrow, defaults to true |
an ActionMenu
Default: ["rtf","rtfd","sc","scd","html","HTML","schelp"]
a default function you can set for all items.
{|path,modifier,buttonNum| doSomething()}
a directory prefix default for all instances
a directory suffix default for all instances. defaults to "/".
Default: ["rtf","rtfd","sc","scd","html","HTML","schelp"]
a function run on the selected path. Typically open a file.
{|path,modifier,buttonNum| doSomething()}
You can set it on the instance, or you can set a default with PathActionMenu.defaultOpenAction
a prefix for directory entries. overrides defaultPrefix. defaults to "/"
a suffix for directory entries. overrides defaultSuffix.