r/applescript • u/brijazz012 • 24d ago
Golden Gate: Applescript App works in Script Editor only
I've just moved from Sequoia to Golden Gate. I have an ages-old script (packaged as an app) to mount an external drive and reveal it in Finder. It's always worked reliably – but in GG, I get the following error:

Here's the strange thing though: if I open the app in Script Editor and run it there, it works perfectly. Doubly strange is if I quit Script Editor and again try launching the .app from Finder, it works. Any idea what's going on? Here's my code:
set thefile to "/Volumes/External 14TB/systool.sparsebundle"
set thefile to POSIX path of thefile
set thefile to POSIX file thefile as text
mount volume "smb://mac-mini/External 14TB"
tell application "Finder" to open thefile
3
u/Tthurm4 23d ago
The error looks like it’s a permissions error. You might want to go to System Settings and under Privacy and Security see if there’s a setting you can toggle. (Sorry not on Golden Gate myself and this is kind of a shot in the dark based on some errors I’ve received before where this is the issue. )
1
u/mad_scrub 24d ago
Is this an encrypted HFS+ (CoreStorage) external drive? Mounting them is broken in macOS 27.
1
u/welp____see_ya_later 23d ago
maybe mounting is async so hasn't happened yet on a cold start, can you try something like