Error Relating to AppTranslocation in macOS Sierra

It would appear that Gatekeeper in macOS Sierra is a bit pickier. At any rate, it is causing a small utility I made some years ago to throw a rather annoying error.

As I haven't yet had the time to dig into the under-the-hood changes in Sierra, I'm not sure how to fix the error. Does anyone have experience dealing with errors relating to AppTranslocation and fixing them?

Code and error follow:


tell application "Finder"
set currentDir to POSIX path of ((container of (path to me)) as text)
end tell
set currentDir to quoted form of currentDir
set lib80211 to quoted form of "AirPort Utility 5.6.1"

do shell script "export DYLD_INSERT_LIBRARIES=" & currentDir & lib80211 & "
cd " & currentDir & "AirPort\\ Utility\\
./AirPort\\ Utility"


sh: line 1: cd: /private/var/folders/t4/7k5z832d2tjd4xpzvvq43n4m0000gn/T/AppTranslocation/23AF67A4-3DF7-4982-A1A3-B019CDACB4C2/dAirPort Utility No such file or directory
sh: line 2: ./AirPort Utility: No such file or directory (127)


Well, after a fairly significant amount of trial and error (and a bit of reading about how AppTranslocation works in macOS 10.12 Sierra), I've discovered a fix.

In essence, you have to open the *.dmg and then move the contents to some other folder in Finder. The catch: If you move both simultaneously, AppTranslocation may 'tag' them (seemingly permanently) and continue to run every time you try to launch either *.app); this seems like a bug, and I intend to report it to Apple.

The Solution

Re-download the *.dmg (as others have stated) and move the two files it contains one at a time into a folder (preferably Utilities, but it's up to you where you want them to reside). Once you've done this, run the Launcher and everything should work as before.

You have to download once again Airport Utility Launcher from the dev website, because when you install macOS Sierra it erase the Airport Utility 5.6.1. that's why you have to download the whole folder from the website :

Hope it helps.

Need Your Help

Download binary encrypted file with urllib, keep it as stream

python python-3.x urllib binary-data gnupg

So, I want to download a binary file(encrypted with gpg) using urllib. Now if I would pipe it:

Account Password Insert Process

c# entity-framework linq entity-framework-6

I wanted to discover new points in ASP.NET MVC ecosystem. So I wanted to try something.