Home Apple macos – mv shell script line in Applescript not working after Mac OS improve

macos – mv shell script line in Applescript not working after Mac OS improve

0

[ad_1]

I had an Applescript that labored positive in Mac OS 10.12 however now that I am on OS 12.6, a line of it now not does. The road of code that is not working is:

do shell script "mv -i " & (quoted type of POSIX path of loc) & " " & (quoted type of POSIX path of uD as string)

I take advantage of the quoted kind becuase there are areas within the drive, folder, and file names and this labored earlier than. I’ve since tried the next and none of them work:

WITHOUT the -i

do shell script "mv " & (quoted type of POSIX path of loc) & " " & (quoted type of POSIX path of uD as string)

USING sudo

do shell script “sudo mv " & (quoted type of POSIX path of loc) & " " & (quoted type of POSIX path of uD as string)

WITHOUT the quoted kind

do shell script "mv " & loc & " " & uD

If I add a script step to repeat loc and uD to the clipboard and paste them into TextEdit, they give the impression of being right, at the very least when it comes to spelling and file construction. If I take away the these traces, the remainder of the script runs positive.

Thanks for any assist with this.

[ad_2]