Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90000

Re: Import Text Data to text fields with folder level script

$
0
0

Have revised folder level script with begin and end priv statement, still not working, can you please check script and advise where it could be going wrong?

 

function mailmergeFunction()

{
app.beginPriv()

// Import the first row of data from "Mailmerge.txt"

this.importTextData("/h/mail merge/Jo Smith's Things/Mailmerge.txt", 0)


if (typeof cnt == "undefined") cnt = 0;
this.importTextData("/h/mail merge/Jo Smith's Things/Mailmerge.txt", cnt++ % 4)

app.endPriv()
}


app.trustedFunction(mailmergeFunction);

app.addToolButton({cName: "Mail merge",cExec: "mailmergeFunction()",cTooltext: "Mail Merge",cEnable: true,nPos: 14});


Viewing all articles
Browse latest Browse all 90000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>