• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit Search
0

this.maildoc in privileged context: bUI parameter false is ignored

Participant ,
Dec 06, 2022 Dec 06, 2022

Copy link to clipboard

Copied

The following folder script is executed on a Mac. The script works precisely as intended except that the bUI parameter "false" is ingored and the script opens the email with attachment to require user interaction to send the email. I noted the API comment "On Windows, the client computer must have its default mail program configured to be MAPI enabled to use this method." I see no similar requirement about Macs. Can anyone confirm that bUI "false" does not work on Macs. Am I wasting my time trying?
 
var sendRegistrationPDF = app.trustedFunction(function(sendTo, ccTo, subject, thirdParty, dataFor)
{
app.beginPriv();
this.mailDoc({
bUI: false, 
cTo: sendTo, 
cCc: ccTo, 
cSubject:  subject, 
cMsg: "\r\rAttached you will find the " + thirdParty + "'s data file for " + dataFor + "\r\r"
});
app.endPriv();
app.alert("Thank you. Your information has been returned to " + sendTo);// bUI false is ignored
});
TOPICS
JavaScript

Views

433

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2022 Dec 06, 2022

Copy link to clipboard

Copied

LATEST

Did you place this code in a folder-level script? If so, and it works well in Windows then it's probably a bug in the Mac implementation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines