Ask or Answer File on Mobile
Posted: Sun May 24, 2020 3:17 pm
Is there an equivalent to ask or answer file on mobile devices.
I'm working on a PC with Android which is why I posted in Android but assume this applies to both iOS and Android.
I would simple like my users to be able to click a button called 'Import' and then select a text or csv file the app could then read in. I don't need to write out, just give the users an option to select a file and then read it in so I can process it.
Ask and Answer don't seem to do anything.
My code so far is
Nothing happens with the ask statement, it just skips it and displays my answer statement.
I'm working on a PC with Android which is why I posted in Android but assume this applies to both iOS and Android.
I would simple like my users to be able to click a button called 'Import' and then select a text or csv file the app could then read in. I don't need to write out, just give the users an option to select a file and then read it in so I can process it.
Ask and Answer don't seem to do anything.
My code so far is
Code: Select all
on mouseup
put specialFolderPath("documents") & slash into tPath
set the defaultfolder to tPath
ask file "Select file to import..."
answer "Result" && it && the result
end mouseup