Page 1 of 1

How to get the file name path in an variable

Posted: Wed Apr 27, 2016 6:52 am
by shalu
Hi,

How to get the file name path in an variable. I am using the following command for selecting the File.

Code: Select all

answer files "Select the file" with type "*"
Thanks
Shalu S

Re: How to get the file name path in an variable

Posted: Wed Apr 27, 2016 6:58 am
by Dixie
The following would put the full path of the file that you choose into the messagebox... Is this what you want to do ?

Code: Select all

on mouseUp
   answer file "Select the file" with type "*"
   put it
end mouseUp

Re: How to get the file name path in an variable

Posted: Wed Apr 27, 2016 7:04 am
by shalu
OK it's Working, Thanks for your quick response.