Opens a dialog window to select a file and returns the path to the file as a String.
Returns:
Type |
Value |
Description |
String |
Path to selected file |
The native path to the selected file is returned as a string. If the user canceled the selection, then an empty string is returned. Example of a returned file path: /Users/user1/Downloads/201-1000.pdf |
Available in:
WindowMain |
WindowLink |
YES |
NO |
Example XojoScript:
Dim path As String = GetOpenFolderItemPath
If path <> "" Then
Dim contents As String = GetFolderItemText(path)
If contents <> "" Then
MsgBox contents
End If
End If