Hi,
I've been trying to extract the file path of a csv file in order to open it. I've been using the following script:
dt = Open("File.csv");
path = Arg(dt << get property("Source"), 1);
print("path: " || path);
This prints a file not found error to the log. The file path returned shows the following:
C:\Users\jaz\Desktop\File.csv was not found.
My file is stored in a folder in the Desktop but the path does not go to the folder. In another one of my scripts the path variable I create just provides the name of the file with a backslash. I'm confused as to why one script is providing me with a path (be it the wrong one), and another is providing the file name?
Any clarification and ideas on how I could extract the full file path of the file by simply providing the name of the file would be appreciated.