-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsaveGmailConDialog.js
More file actions
executable file
·50 lines (41 loc) · 1.36 KB
/
Copy pathsaveGmailConDialog.js
File metadata and controls
executable file
·50 lines (41 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/// SETTING_SECTION_START
setReplaceVariables="file://"
/// SETTING_SECTION_END
const urlString = makeUrl();
if(!urlString) exitZero();
launchWebview(urlString);
function launchWebview(launchUrlString){
const menuMapStrListStr= makeMenuMapStr();
const tsvCon = [
`urlConSaveParentDirPath\t${EXTERNAL_EXEC_REPLACE_TXT2}`,
`compSuffix\t${EXTERNAL_EXEC_REPLACE_TXT3}`,
].join("\n");
jsFileSystem.writeLocalFile(
`${saveGmailConArgsTsvPath}`,
tsvCon,
);
jsDialog.webView_S(
launchUrlString,
"${0}",
`toolBar=${menuMapStrListStr}`,
);
};
function makeUrl(){
const externalExecLink = "${EXTERNAL_EXEC_REPLACE_TXT1}";
const cmdclickExternalExecReplaceTextStr = "${ENCRPT_EXTERNAL_EXEC_REPLACE_TXT1}".replace(
"ENCRPT_",
""
);
if(
externalExecLink !== cmdclickExternalExecReplaceTextStr
&& externalExecLink !== ""
) return externalExecLink;
return "https://www.google.com/search?q=";
}
function makeMenuMapStr(){
// const onSearchBtn = `${EXTERNAL_EXEC_REPLACE_TXT2}`;
return [
`clickMenuFilePath=${leftMenuListFilePath}?longPressMenuFilePath=${leftLongPressMenuListFilePath}?dismissType=longpress?caption=back?iconName=back`,
`clickMenuFilePath=${rightMenuListFilePath}?caption=sveGCon?iconName=download_done`,
].join("|");
}