Hello all,

recently, I discovered that my Mac denies to list the contents of the Desktop 
or Downloads folder. 

For example, the macro below returns an empty array
without mentioning the access restriction.

I can enable the access by going to: 
 System Settings>
 Privacy & Security>
 Files and Folders>
 ImageJ

But the problem remains that other users who try out such a macro on their 
desktop are not aware of this.

I am using MacOS Sonama and Sequoia

Question:
- Could ImageJ give a decent warning instead of returning an empty list"?
(With Fiji, these limitations do not appear in Settings)

Best regards, Norbert


//macro lists zero files if access is denied: 
home = getDirectory("home");
desk = home + "Desktop";
print(desk);
deskFiles = getFileList(desk);
Array.show(deskFiles);

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to