Perform Script on Server [ “Test2” ]
[ Wait for completion ]
Show Custom Dialog [ Message: "done"; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ] Refresh Window
Go to Layout [ “Site Entry” (Sites) ]
Show All Records
Go to Record/Request/Page
[ First ]
Set Error Capture [ On ]
Set Field [ Sites::test; Get ( DocumentsPathListing ) ]
Set Field [ Sites::test2; Get(lasterror) ]
Set Field [ Sites::test3; "hello" ]
[ No dialog ]
Test2 works with FMP but of course lists the filepaths to items in the user's documents folder
When I run Test1 the "Done" dialog pops up immediately but nothing is entered in the destination fields
I am assuming a server script runs with th FMserver system account -- that has r/w priviges to the Documents folder even if not to all its contents.
Anyway the "hello" argument should be written.
What am I missing?