Archive of UserLand's first discussion group, started October 5, 1998.
user.callbacks.opStruct2Click.filebrowser
Author: Dave Winer Posted: 1/17/2000; 11:27:51 AM Topic: scriptingNews outline for 1/17/00 Msg #: 14533 (In response to 14518) Prev/Next: 14532 / 14534
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:
- Re: user.callbacks.opStruct2Click.filebrowser, Steve Ivy, 1/17/2000; 11:42:01 AM
- Re: user.callbacks.opStruct2Click.filebrowser, Wesley Felter, 1/17/2000; 12:29:07 PM
- Re: user.callbacks.opStruct2Click.filebrowser, Robert Brook, 1/18/2000; 4:17:28 AM
This page was archived on 6/13/2001; 4:54:08 PM.
© Copyright 1998-2001 UserLand Software, Inc.