Old 04-23-2019, 05:05 AM   #1
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default Get File Path of txt/csv

When I run run Script: X-Raym_Import markers and regions from tab-delimited CSV file.lua

it prompts to browse for the csv/txt to parse.
How do I get the path of the file I opened ?
MusoBob is offline   Reply With Quote
Old 04-23-2019, 05:12 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

In the script:


Code:
retval, filetxt = reaper.GetUserFileNameForRead("", "Import markers and regions", "csv")

filetxt is the path. Not really well named variable but it's there.
X-Raym is offline   Reply With Quote
Old 04-23-2019, 06:28 PM   #3
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Thanks again !
MusoBob is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.