Finder / AppleScript problem in 10.15?

Script looks like:


tell application "Finder"

set myWin to window 1

set thePath to (quoted form of POSIX path of (target of myWin as alias))

tell application "Terminal"

activate

tell window 1

do script "cd " & thePath

end tell

end tell

end tell


in <= 10.14 thePath is '/Users/myuser/Downloads/' if the windows is showing the Downloads directory of my account


in 10.15, thePath is '/Users/myuser/Downloads:/'


where does the : come from and now my scripts are failing because the this. Is this the new exepected behaivor? Should I file a bug?

Replies

What happens if you do this coercion?


set thePath to (quoted form of POSIX path of ((target of myWin as alias) as text))

It's a bug and it's already been filed.

I've just retested a AppleScript exported as an application that was suffering with a very similar file path (mis)handling issue on 10.15 betas 1 & 2. On 10.15 beta 4 (19A512f) the issue appears to have been resolved.


Can anyone confirm this?