Hi,

I had some trouble using revCopyFolder, maybe it is related.

Looking for a method to move/duplicate folders on MacOS I tried using 
revCopyFolder.

The internal LC appleScript seems to use 'copy folder' in LC9.6.8
On MacOS 12.6.3 that does not work for me.
'duplicate folder' does. 
Not sure since when or what version this changed.
Maybe it's the same for revCopyFile

Applescript from LiveCode works  pretty well for me, most of the time.
Moving and duplicating folders in the Finder by applescript from LC is slow. 

Adding 'ignoring application responses' get's the beachball away, but also all 
the results and errors.
Maybe somebody has a different workaround?

My script for 'do ... as applescript' looks something like this:

set sourcePath to "/Users/.../...."
set destinationPath to "/Users/.../...."
tell application "Finder"
        ignoring application responses
                set theSource to sourcePath as POSIX file
                set theDestination to destinationPath as POSIX file
                duplicate folder theSource to folder theDestination
        end ignoring
end tell

The script works like expected, but getting the results and errors would be 
helpfull.

regards,
Chris Hiedecker

> Op 6 apr. 2023, om 13:28 heeft Paul Dupuis via use-livecode 
> <use-livecode@lists.runrev.com> het volgende geschreven:
> 
> You may also be able to address this by giving any Standalone if this app is 
> it's own Standalone) or the Livecode version you are using the "Full Disk 
> Access" permission, from System Settings
> 
> 
> 
> On 4/6/2023 1:03 AM, Jean-Jacques Wagner via use-livecode wrote:
>> Hi,
>> Last Sunday I upgrade to ventura 1.3 and since then I am in  big troubles. 
>> The function revcopyfile does not work anymore.
>> I have stack to manage files (over 8000 pdf files), which with  revcopyfile 
>> are getting corrupt. There are not anymore openable
>> using preview, but also pages dokument are getting lost or corrupt, because 
>> not anymore reopenable.
>> 
>> Some time a file placed in a folder is not anymore openable, moving it on 
>> the desktop, there is sometime against openable.
>> 
>> I pin down the problems on a script, where I do makes on regular basis a 
>> backup of  about 10 textfiles (Wrangler) and 20 stacks,
>> so using revcopyfile and rename file to do it. The backup is not longer 
>> functioning, make no copies of the files anymore. Just one
>> old stack, which I don not use for year is copied.
>> 
>> So I can spend just now the time to go more deeper and investigate on the 
>> problem, since I have to be careful not to loose my
>> documents which I will have to deliver within the next 5 days. But at first 
>> I couldn’t at a time open document, then I was able to
>> pin down thats was not the system but the function revcopyfile should be at 
>> the center of the problems. Possibly it has to do with
>> AppleScript (I hate this app, which was and is almost a copy of hypercard in 
>> a very bad manner) on which revcopyfile should work.
>> 
>> This is an alert, I will be able to go deeper finding the trouble by end of 
>> next week.
>> 
>> Have <https://dict.leo.org/englisch-deutsch/Have> a 
>> <https://dict.leo.org/englisch-deutsch/a> nice 
>> <https://dict.leo.org/englisch-deutsch/nice> Easter 
>> <https://dict.leo.org/englisch-deutsch/Easter>!
>> 
>> Jean-Jacques Wagner
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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


_______________________________________________
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

Reply via email to