Jon
Joined: 28 Apr 2004 Posts: 349
|
Posted: Sat Aug 21, 2004 12:38 am Post subject: List extensions Firefox |
|
|
The following code will list all installed firefox extensions (post 0.9) in alphabetical order in a text file along with it's version number and the total number of extensions installed.
| Code: |
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
;
; Script Function:
; List all installed Firefox Extensions (post v0.9)
;
Loop, %AppData%\Mozilla\Firefox\Profiles\install.rdf, , 1 ; Recurse into subfolders.
{
extno++
Loop, read, %A_LoopFileFullPath%
{
IfInString, A_LoopReadLine, <em:version>
{
StringReplace, version, A_LoopReadLine,<em:version>, , all
StringReplace, version, version,</em:version>, , all
AutoTrim, On
version=%version%
}
IfInString, A_LoopReadLine, <em:name>
{
StringReplace, newname, A_LoopReadLine,<em:name>, , all
StringReplace, newname, newname,</em:name>, , all
AutoTrim, On
}
}
name=%newname%%a_space%%a_space%%a_space%%version%
extname=%extname%,%name%
}
;Calculate number of extensions
extno=0
Loop, parse, extname, `,
{
if A_LoopField=
{
continue
}
else
{
extno++
}
}
Sort extname, D,
StringReplace, extname, extname, `, , `n , All
FileSelectFile, location, s3, %a_workingdir%\extensions.txt, Please select the location to save the list of installed extensions., Text Documents (*.txt)
ifexist, %location%
{
filedelete, %location%
}
FileAppend, List of all installed extensions (%extno%)%extname%`n, %location%
run, %location%
|
|
|