REBOL3 tracker
  0.9.12 beta
Ticket #0000779 User: anonymous

Project:

Previous Next
rss
TypeBug Statusbuilt Date8-May-2009 12:20
Versionalpha 51 Categoryn/a Submitted byhenrikmk
PlatformAll Severityminor Prioritynormal

Summary RebDev: OD command does not support OSX
Description od
** Access error: external process failed: "Undefined error: 0"
** Where: call open-dir parse try either either forever command-loop make context do catch applier do try chat
** Near: call reform ["explorer " to-local-file path]
Example code

			

Assigned ton/a Fixed in- Last Update15-May-2009 01:06


Comments
(0000670)
henrikmk
8-May-2009 12:24

This can be fixed with two small fixes:

First 'file-manager is defined somewhere early in the chat-app context:

file-manager: select [2 "open" 3 "explorer"] system/version/4

Second, OPEN-DIR is changed to use the 'file-manager word:

open-dir: funct [] [
if need-topic [exit]
path: file-path? this-head
call reform [file-manager to-local-file path] ; changed
]

OD will now open Finder windows on OSX.
(0000671)
manum
8-May-2009 21:34

Adding code for Linux

file-manager: select [2 "open" 3 "explorer" 4 "xdg-open"] system/version/4

xdg-open path - open your favorite file-manager window on Linux at path directory

Date User Field Action Change
15-May-2009 01:06 carl Status Modified pending => built
8-May-2009 21:34 manum Comment : 0000671 Added -
8-May-2009 12:24 henrikmk Description Modified -
8-May-2009 12:24 henrikmk Status Modified submitted => pending
8-May-2009 12:24 henrikmk Comment : 0000670 Added -
8-May-2009 12:20 henrikmk Ticket Added -