Strange Error

Hi, XCode 9.2 and Sierra:

Handler:

on ChooseImagesFolder_(sender)
		set pathImagesFolder to (choose folder with prompt "Seleziona la cartella immagini:") as string
	end ChooseImagesFolder:

I receive the following error:

2018-03-13 09:26:26.281228+0100 Taglia Descrizione Foto[2832:63220] [default] [ERROR] Failed getting container for URL: file:///Users/adminosx/Desktop/Normalizza%20Immagini%201012/, error: Error Domain=BRCloudDocsErrorDomain Code=2 “Logged out - iCloud Drive is not configured” UserInfo={NSDescription=Logged out - iCloud Drive is not configured}

What’means iCloud in a normal Choose Folder procedure???

Steven

Do you have iCloud Drive turned on for Desktop & Documents Folders?

Hi Shane, iCloud is OFF in the System Preferences Pane.

Stefano

Choose file probably breach the sandbox boundaries which throws similar errors.

Better is to use Cocoa’s own open and save panels instead.

Check the Capabilities tab of the Target, and make sure both the sandbox and iCloud are off there (and everything else).

Hi Shane, everything is off…
My impression is that in the “latest” macOS, Apple has abandoned AppleScript developers.
But AppleScript is unique :wink:

Stefano

If you want to send me a small project showing the problem, I’ll have a look at it.

Hi Shane, I reproduced the problem on a new fresh iMac installed only with 10.12.6 and Xcode 9.2

https://www.dropbox.com/s/k0uetpz4xkyk26w/shane.zip?dl=0

But returned path seems OK. I also found some other user that have the same problem googling.

Stefano - Ame

That’s really all you need to worry about.