Hi JB > Am 20.09.2019 um 12:10 schrieb JB via use-livecode > <use-livecode@lists.runrev.com>: > > Now this is interesting! > > I added the code snipped you just gave me and put > it above your other code. > > When I clicked the button it worked like a charm as > far as copying the file to the desktop. That is great! > > But for some reason the answer dialog appeared > like it should but it was empty. How did adding > this before the other code make a difference and > how can I make it work without it?
made a test on my own with the same script and with "Copy files", the resulting file on my desktop has an icon and is an exact copy of the original file. ... answer specialfolderpath("resources") put specialfolderpath("desktop") & "/mypic.jpg" into tTargetFile put specialfolderpath("resources") & "/3d3.jpg" into tSourceFile if there is not a file tTargetfile then put url("binfile:" & tSourceFile) into url("binfile:" & tTargetFile) end if ... And MY answer dialog showed the correct path!? What version of LC are you using on what macOS version? specialfolderpath("resources") in a standalone gave me: (my desktop folder)/el_testo.app/Contents/Resources/_MacOS Maybe you need to create that _MacOS folder when copying your files manually into the standalone. > Thank you very much! > JB Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode