Jump to content
Ketarin forum

Template extensions


floele
 Share

Recommended Posts

It's rather personalized or customized content. For instance, for jobs created w/ my Softpedia template, regexes are often different. Or w/Sourceforge template, each regex for each job uses a different prefix or sufix. Or Ghisler, no textual content tab 'content' is alike and I have a lot of variations on target path. Usually I insert all this customization when placeholder pops-up.

 

I'm interested to keep customization, hence the question, will that be preserved ? If not, I'd rather use XML edit.

Link to comment
Share on other sites

Example: 2 jobs using the same Sourceforge template

 

 

<?xml version="1.0" encoding="utf-16"?>

<Jobs>

<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="a5b8ac20-e7ce-4ba8-947e-1e18d36a8f1e">

<DownloadBeta>Default</DownloadBeta>

<DownloadDate xsi:nil="true" />

<CheckForUpdatesOnly>false</CheckForUpdatesOnly>

<VariableChangeIndicator />

<CanBeShared>true</CanBeShared>

<ShareApplication>false</ShareApplication>

<ExclusiveDownload>false</ExclusiveDownload>

<HttpReferer />

<Variables>

<item>

<key>

<string>version</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>ch32_(?:(\d+[\.\d+]+.*?)(?:_Final\.zip))(?=")</Regex>

<Url>http://sourceforge.net/project/showfiles.php?group_id=235157&package_id=285539&release_id=657842</Url>

<Name>version</Name>

</UrlVariable>

</value>

</item>

<item>

<key>

<string>mirror</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>(?<=ch32_.*?"init_download\('http://downloads.sourceforge.net/)([^\s]+(?:_Final\.zip)[^\s]*)'\)</Regex>

<Url>http://sourceforge.net/project/showfiles.php?group_id=235157&package_id=285539&release_id=657842</Url>

<Name>mirror</Name>

</UrlVariable>

</value>

</item>

</Variables>

<ExecuteCommand />

<ExecutePreCommand />

<Category>Backup</Category>

<SourceType>FixedUrl</SourceType>

<PreviousLocation>D:\Programas\Backup\Copyhandler_1.31.zip</PreviousLocation>

<DeletePreviousFile>true</DeletePreviousFile>

<Enabled>true</Enabled>

<FileHippoId />

<LastUpdated>2009-04-08T18:24:00.4272844</LastUpdated>

<TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath>

<FixedDownloadUrl>http://downloads.sourceforge.net/{mirror}</FixedDownloadUrl>

<Name>Copyhandler</Name>

</ApplicationJob>

 

 

<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="c8e436e1-6490-45b7-9c5a-a6a59560f22f">

<DownloadBeta>Default</DownloadBeta>

<DownloadDate xsi:nil="true" />

<CheckForUpdatesOnly>false</CheckForUpdatesOnly>

<VariableChangeIndicator />

<CanBeShared>true</CanBeShared>

<ShareApplication>false</ShareApplication>

<ExclusiveDownload>false</ExclusiveDownload>

<HttpReferer />

<Variables>

<item>

<key>

<string>version</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>npp\.(?:(\d+[\.\d+]+)(?:\.bin\.7z))(?=")</Regex>

<Url>http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072&release_id=671651</Url>

<Name>version</Name>

</UrlVariable>

</value>

</item>

<item>

<key>

<string>mirror</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>(?<=npp\..*?"init_download\('http://downloads.sourceforge.net/)([^\s]+(?:\.bin\.7z)[^\s]*)'\)</Regex>

<Url>http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072&release_id=671651</Url>

<Name>mirror</Name>

</UrlVariable>

</value>

</item>

</Variables>

<ExecuteCommand />

<ExecutePreCommand />

<Category>Office</Category>

<SourceType>FixedUrl</SourceType>

<PreviousLocation>D:\Programas\Office\Notepad\npp.5.3.1.bin.7z</PreviousLocation>

<DeletePreviousFile>true</DeletePreviousFile>

<Enabled>true</Enabled>

<FileHippoId />

<LastUpdated>2009-04-08T00:15:43.7932884</LastUpdated>

<TargetPath>{target}\{category}\Notepad\</TargetPath>

<FixedDownloadUrl>http://downloads.sourceforge.net/{mirror}</FixedDownloadUrl>

<Name>Notepad++</Name>

</ApplicationJob>

</Jobs>

Edited by FranciscoR
Link to comment
Share on other sites

Flo,

A significant percentage of my app entries have been modified due to site variations and/or changes from their original template import state so this may be difficult to accomplish, but I'm certainly open to the attempt to achieve it. ;) If there was any such thing as a 'perfect template', this would be much easier IMHO. If you're up to it I'm willing to help tweak such a feature (except during my upcoming vacation time) and I'm sure FranciscoR is up to the task! :D

Link to comment
Share on other sites

Flo, got another idea (simple): user would add search keywords to application templates/ selected jobs.

 

-----------------------------

 

Example (using 15 Sourceforge jobs created by templates):

 

1. Assign keyword 'SF' to each job;

2. Perform search 'SF .+';

3. Ketarin selects all my 15 Sourceforge jobs.

 

4. Perform search 'SF note.+';

5. Ketarin selects Sourceforge jobs beggining with 'note' (like Notepad++ (portable), Notepad++ (installer), etc.)

 

Easy way to export XML!

 

6. Assign keyword 'SF' to each job AND keyword 'CIV' (cross-reference keyword for jobs with CIV);

7. Perform search 'SF,CIV .+';

8. Ketarin selects only 7 Sourceforge jobs with CIV.

 

9. Assign keyword 'CIV' (cross-reference keyword) also to several Majorgeeks jobs;

10. Perform search 'CIV .+';

11. Ketarin selects 7 Sourceforge jobs AND 10 Majorgeeks jobs with CIV keywords.

 

Like it ? =)

Edited by FranciscoR
Link to comment
Share on other sites

Hi,

What about a multi-edit feature, that would open the standard edit dialog but applies changes on all selected entries?

It would be handy to quickly updated several apps without relying on whether the apps have been created by a template or not (or when they don't share a template at all).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.