I’ve recently added
use framework "Cocoa" to be able to customize the included AppleScript progress window (disable the Stop button and hide the window while the script is still running) to some already existing scripts of mine.
I noticed a few new issues where some things started not working which used to work fine. This lead me to these two posts:
set volume issue with Cocoa: https://stackoverflow.com/questions/15555380/set-volume-not-working-in-xcode-with-applescript-cocoa-objc
open for access issue with Cocoa: "open for access" error in modern AppleScript
Both of these posts have good information about this issue, and both are fixable by using
tell current application, but I’m curious if there are anymore know Scripting Additions commands (or any other AppleScript stuff) that have issues when using Cocoa.
I figured if anyone knows the rhyme or reason or has a list of known conflicts, it’d be the folks on here.
I’m plan on doing a full audit on the scripts where I recently added Cocoa, but I figure it’d be a lot simpler to just have a list of known issues like these to look out for when using Cocoa in AppleScript.
Thank you all!