Dim PathToFile As String
PathToFile = "False"
On Error Resume Next
PathToFile = MacScript("choose file of type {""TEXT""}")
On Error GoTo 0
If PathToFile = "False" Then
MsgBox "Canceled"
Exit Sub
Else
Workbooks.Open PathToFile
End If
Sub Get_OfType_Argument()
Dim InfoFrom As String
InfoFrom = "False"
On Error Resume Next
InfoFrom = MacScript("info for (choose file)")
InfoFrom = Split(InfoFrom, ", file type:")(1)
InfoFrom = Trim(Split(InfoFrom, ",")(0))
MsgBox InfoFrom
End Sub