Friday, June 29, 2012

Livecode: Copy File with Mac Sandbox & Mobile


If you find out RevCopyFile does not work. There an really simple fix, and one that used in mobile with iOS and Android with Livecode that can be used to fix this fast.

It super super simple. Use URL and binfile. like such

put URL ("binfile:" & tPath2File) into URL ("binfile:" & tPath2CopyLoc)

The Variables

tPath2File is the var that holds the path to the location of the file to copy.

tPath2CopyLoc is the var that holds the path to the location to copy the file to.

It works and does not require the use of anything like applescript, VB script or shell. Also it supported with iOS, Android, Sandbox Mac Apps, and all the Livecode supported platforms.

No comments:

Post a Comment