Scripted container field export fails with external container storage
Operating system version
OS X 10.6.8
Description of the issue
Files in externally stored container fields export properly with right-click export but fail with a scripted export. Unknown error 20403.
Steps to reproduce the problem
Set up a container field with external storage, using the default external storage location. In my case the file is hosted with FMS 12. Set the external storage to either open or secure.
Export field contents, first by right-click menu choice.
Then export via a script.
I expect a field export in both cases.
Right-click export works. Scripted one doesn't.
Here's the script:
If [ IsEmpty ( Documents::Document) ]
Exit Script [ ]
Enter Browse Mode
Set Variable [ $$document; Value:Let ( [ MAC = "filemac:" & Get ( TemporaryPath ); PC = "filewin:" & Get ( TemporaryPath ) ] ; Case(Abs(Get ( SystemPlatform )) = 1; MAC; Abs(Get ( SystemPlatform ))= 2 ; PC ) & Documents::File Name) ]
Set Field [ Documents::LastDocumentPath; $$document ]
Go to Field [ Documents::Document ] [ Select/perform ]
Export Field Contents [ Documents::Document; “$$document”; Automatically open ]
You can change this to DocumentPath or whatever, it makes no difference.
Exact text of any error message(s) that appear
Unknown error 20403