K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmFileAllTabs

Submitted by: JamesD



Notes:

This macro will run the Save File As for each tab in the current window.



Updates:

2008-09-26
Added macroinfo data for menus


Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):

FileAllTabs.kmm

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#  
# ---------- FileAllTabs.kmm
# ---------- K-Meleon Macro Language  Open FileSaveAs for all Tabs in current window ----
#
# Dependencies        : - main.kmm KM version 1.5
# Resources           : - 
# Preferences         : - 
# Version             : - 0.9   2008-09-26
# --------------------------------------------------------------------------------

_FileAllTabs_RunCode{
macroinfo="Run the 'Save File As' dialog for each tab in current window - also closes the tabs";
$_FileAllTabs_Number_of_Tabs = $TabNumber ;
$_FileAllTabs_Tab_Count = 0 ;
while( $_FileAllTabs_Tab_Count < $_FileAllTabs_Number_of_Tabs ) &_FileAllTabs_Save_Close_Loop;
}

_FileAllTabs_Save_Close_Loop {
id(ID_FILE_SAVE_AS) ;
id(ID_CLOSE_TAB) ;
$_FileAllTabs_Tab_Count = $_FileAllTabs_Tab_Count + 1 ;
}

_FileAllTabs_BuildMenu{
# add another option to the File menu 
$kTabs?setmenu("&File",macro,"File All Tabs",_FileAllTabs_RunCode,3):0;
}

$OnInit=$OnInit."_FileAllTabs_BuildMenu;";
$macroModules=$macroModules."Snippet;";



Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.