Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
62 views

Reading the unique numbers (Catalog Node IDs or CNIDs) that MacOS uses to identify files and directories?

The MacOS uses unique numbers (Catalog Node IDs, aka CNIDs) to identify files and directories. Is there any way to obtain (read) CNIDs from within Mathematica?
James Stein's user avatar
5 votes
1 answer
298 views

How to run wolfram code from the finder in macos?

I'd like to run wolfram code (probably a .wls script) on a file or set of files by selecting them in the finder and using Right-click > Services. For example, ...
M.R.'s user avatar
  • 31.8k
4 votes
0 answers
227 views

Why is listing files on a network share so slow? / How to speed it up?

I'm using I need to load data in some files on a windows network share (samba), mounted on OSX. When listing the relevant directory in a shell, the performance is acceptable: ...
Shwouchk's user avatar
  • 517
1 vote
0 answers
70 views

How to read a file when it's pathname contains a Macintosh alias?

On a Macintosh: assume a file "F1" is in a directory "D1" in the current NotebookDirectory, and a file "F2" is in a directory "D2" somewhere else, and an alias "A2" to D2 is in the current ...
James Stein's user avatar
7 votes
4 answers
2k views

Cannot find BaseDirectory or UserBaseDirectory in Mac OS El Capitan

I am new to Mac OS, so this might be a silly question, but.... I just searched for $BaseDirectory and $UserBaseDirectory in my ...
magma's user avatar
  • 5,300
4 votes
2 answers
688 views

How do I set Mathematica to open a specific folder - When I type "Command + O" in OS X

When I type Command+O, in Mac OSX 10, Mathematica automatically opens my directory: "Users/john" How can I change this setting to make it open ...
Conor Cosnett's user avatar
1 vote
0 answers
57 views

Default starting location of "Save as..." dialog in OS X [duplicate]

In the answer to this previous question, user Szabolcs says On OS X (I'm using 10.9 and Mathematica 9) the file chooser dialogue will remember the last location you used. So if you Save/Open ...
thecommexokid's user avatar
4 votes
2 answers
280 views

How to read from /dev/random?

I am looking to read a few bytes from /dev/random on OS X and Linux. The simplest approach fails on both operating systems (see below). Why? What is a workaround?...
Szabolcs's user avatar
  • 236k
9 votes
1 answer
433 views

Drag & drop path info into front end?

On OSX at least, it's possible to quickly retrieve a folder/file path by dragging & dropping the folder/file into the terminal, eg: Is it possible to program Mathematica's front end enable ...
alancalvitti's user avatar
  • 15.2k