Archive of UserLand's first discussion group, started October 5, 1998.
user.callbacks.opStruct2Click.filebrowser
For 15 points, what does this script do in 6.2a4?
if window.frontmost () == "workspace.filebrowser" {
if not op.subsExpanded () {
try {
local (f = op.getrefcon ());
if f == 0 { //no refcon
f = op.getlinetext ()};
if file.isfolder (f) {
local (g, dir = right);
op.deletesubs ();
op.setdisplay (false);
fileloop (g in f) {
op.insert (file.filefrompath (g), dir);
dir = down;
op.setrefcon (g)};
if dir == down {
op.go (left, 1)};
op.setdisplay (true)}
else {
webbrowser.openDocument (f);
frontier.bringtofront ()};
return (true)} //consume the expand operation
else {
msg (tryerror);
return (true)}}};
return (false) //don't consume the expand operation
There are responses to this message:
This page was archived on 6/13/2001; 4:54:08 PM.
© Copyright 1998-2001 UserLand Software, Inc.