Handbook
Glossary
open-item ( item -- )
Vocabulary
webbrowser
Inputs
item
an
object
Outputs
None
Word description
Opens an item, which is either a file, directory or url in a detached process using the default application, similar to double-clicking the file's icon. item is any object that has the
present
method.
Definition
USING:
system
;
IN:
webbrowser
HOOK:
open-item
os
( item -- )
Methods
USING:
arrays
io.launcher
kernel
present
system
webbrowser
;
M:
macos
open-item
present
"open"
swap
2array
run-detached
drop
;