iphoneSetDoNotBackupFile
Posted: Sat Mar 09, 2013 7:17 pm
Hi,
I can set the do not back up attribute for a folder within the IOS documents folder to true with the following script but when I check the status of a file within that folder it returns false.
SO does that mean the folder and files are protected from backups? Or do I need to set a repeat loop and set the do not back up for each file within the folder? It seems like if the folder itself is protected all the files within it would also be protected. There is no iphoneSetDoNotBackupFolder function just a iphoneSetDoNotBackupFile .
What do you think?
Dave
on mouseUp
put specialfolderpath ("documents") & "/MyFolder" into tMyFile
iphoneSetDoNotBackupFile tMyFile, true
get iphoneDoNotBackupFile(tMyFile)
answer it ## Returns TRUE
------
put specialfolderpath ("documents") & "/MyFolder/MyFile.pdf" into tMyFile
if there is a file tMyFile then
get iphoneDoNotBackupFile(tMyFile)
answer it ## Returns FALSE
end if
end mouseup
I can set the do not back up attribute for a folder within the IOS documents folder to true with the following script but when I check the status of a file within that folder it returns false.
SO does that mean the folder and files are protected from backups? Or do I need to set a repeat loop and set the do not back up for each file within the folder? It seems like if the folder itself is protected all the files within it would also be protected. There is no iphoneSetDoNotBackupFolder function just a iphoneSetDoNotBackupFile .
What do you think?
Dave
on mouseUp
put specialfolderpath ("documents") & "/MyFolder" into tMyFile
iphoneSetDoNotBackupFile tMyFile, true
get iphoneDoNotBackupFile(tMyFile)
answer it ## Returns TRUE
------
put specialfolderpath ("documents") & "/MyFolder/MyFile.pdf" into tMyFile
if there is a file tMyFile then
get iphoneDoNotBackupFile(tMyFile)
answer it ## Returns FALSE
end if
end mouseup