can anybody help me? What is the synonym in iOS for:
Code: Select all
ask file "Save file as..." with specialFolderPath("Documents")
put it into tSavePath
put myPrefs into url ("file:" & tSavePath)
Thanks ... Guera
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
ask file "Save file as..." with specialFolderPath("Documents")
put it into tSavePath
put myPrefs into url ("file:" & tSavePath)
Code: Select all
put myPrefs into URL("file:" & specialFolderPath("documents") & "/myPrefs.txt")
Code: Select all
...
ask "Enter a name for the file:"
put it into tFileName
if tFileName <> empty then
## Now save whatever you want to save with that name:
put myPrefs into URL("file:" & specialFolderPath("documents") & "/ & tFileName & ".txt")
end if
...
Code: Select all
...
put specialFolderPath("documents") & "/ & tFileName & ".txt" into tFile
if there is a file tFile then
put URL("file:" & specialFolderPath("documents") & "/ & tFileName & ".txt") into YourVariable
## do something with YourVariable
end if
...