• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to get user's home folder in Lua plugin

Participant ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

Hi all, I want write plugin that read metadata from catalog and export as text file.

I want to put exported files on user's home, but I can not find method described to obtain users home 

on API documents.

Any suggestions are welcome.

TOPICS
SDK

Views

149

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 02, 2022 Sep 02, 2022

LrPathUtils.standardizePath( '~' ) works on Mac but not Windows.  Instead, use LrPathUtils.getStandardFilePath ("home").

Votes

Translate

Translate
Engaged ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

LrPathUtils.standardizePath( '~' )

 

should do the job for you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

LATEST

LrPathUtils.standardizePath( '~' ) works on Mac but not Windows.  Instead, use LrPathUtils.getStandardFilePath ("home").

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines