나는 주변을 검색했지만 JSL 내에서 시스템 환경 설정을 가져오는 간단한 방법을 찾지 못했습니다. 저는 Mac(JMP 14 & 15)에서 개발 중인데 Windows에서 이 작업을 수행하는 방법도 알고 싶습니다. 내가 얻은 가장 가까운 것은 언어 코드를 얻는 방법에 대한 토론 이었습니다.
System Service( Get Language Code );
System Service sounds like and interesting function, but I couldn't find any documentation on it. I'm looking for a general solution but am immediately interested in finding the date format, (per setting in System Preferences ➔ Language & Region ➔ Advanced... ➔ Dates ➔ Short), as shown below:

The 짧은 date delimiters are normally set to slashes by default, but were modified by me to dashes in the image above. The specific issue I find with changing this setting is that it affects what arguments are valid to the Input Format function. For example, the following statement will generate a runtime error:
col << Input Format( "y/m/d h:m:s" );
따라서 코드는 다음과 같아야 합니다.
col << Input Format( "y-m-d h:m:s" );
And the reverse it true if the user has their System Preferences set to slashes. Furthermore, with the Format function, if the wrong date string is given, there won't be a runtime error, but the relevant datetime column will ignore the format setting, and the data will be left in its raw, unintelligible form.
따라서 유효한 인수 집합은 사용자 설정에 따라 달라지며, 코드는 사용할 형식을 결정하기 위해 먼저 이 설정을 읽어야 합니다.
해결 방법으로 시스템 Unix 명령에서 설정 정보를 수집하고 그에 따라 구문 분석할 수 있었습니다.
// implement Unix command:
// $ defaults read com.apple.mail DateCellWidthCache | grep M.d.yy
Clear Log();
// read System Preferences from 'defaults' that contains date format string.
sDefaults = Run Program(
Executable( "/usr/bin/defaults" ),
Options( { "read", "com.apple.mail", "DateCellWidthCache" } ),
Read Function( "text" )
);
//Write( sDefaults );
ss1 = Munger( sDefaults, 1, "M/d/yy" ); // check for slash style.
ss2 = Munger( sDefaults, 1, "M-d-yy" ); // check for dash style.
Show( ss1, ss2 ); Write("\!n");
If( ss1 > 0,
Write( "Using slashes.\!n");
,
/* else if */ ss2 > 0,
Write( "Using dashes.\!n");
,
/* else */
Write( "***ERROR: unrecognized date delimiter.\!n");
Write( "defaults read com.apple.mail DateCellWidthCache:\!n");
Write( sDefaults );
);그러나 이것은 다소 서투른 것 같아서 더 간단한 방법이 있다고 생각합니다. 아래와 같이 열 속성 대화 상자에 매우 다른 시간 형식 집합이 표시되므로 JMP 엔진이 이 설정을 읽을 수 있음이 분명합니다(여기에는 대시 옵션만 표시됨).

So, my question is: Is there a simple way to get arbitrary System Preferences values (and the date format specifically) by using System Service or some other function?