Jump to content
Ketarin forum

shawn

Moderators
  • Posts

    1,181
  • Joined

  • Last visited

Everything posted by shawn

  1. Yes. I haven't had a chance to test it yet, but what you describe above is exactly what I'm after.
  2. Just an aside, in most cases in your example: {version:multireplace:|:, Build| Build | part | beta | b:.|.|.|.|-} ...you'd be better off using this: {version:regexreplace:[^\d\.]+:.} That's the most effective means if you KNOW that legitimate version numbers for a job should always include only numbers and dots.
  3. ProcExp shows that the same environment variables I expect to be there, but that wasn't the problem. It was "THEN". Batch doesn't understand it. Removed, and working fine now: IF "%ProgramFiles(x86)%"=="" "%ProgramFiles%\Notepad++\notepad++.exe" "Updates.txt" IF NOT "%ProgramFiles(x86)%"=="" "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt" Thanks everyone!
  4. It would also be cool if we could add additional headers to specific jobs, for example, to add cookies. For FileHippo, this is what they use to determine if a result can include beta's or not: Filter=NOBETA=1 You could also add "&NODEMO=1" to it to avoid shareware/demoware/trials. If we could add job-specific headers in a simple multiline textbox, we could paste in something like this: Cookie: $Version=1; FH_PreferredCulture=en-US; Filter=NOBETA=1&NODEMO=1; That would result in all transactions to FileHippo (version checks + downloads) avoiding the beta and trial software. And while I initially thought, "hey, how about a cookie option", it really would be best to nip them all in the bud right now and just give full access to the request headers (maybe with a quick-list as seen here), since that would save quite a bit of time. Accept Accept-Charset Accept-Encoding Accept-Language Accept-Ranges Authorization Cache-Control Connection Cookie Content-Type From If-Match If-Modified-Since If-None-Match If-Range If-Unmodified-Since Max-Forwards Pragma Proxy-Authorization Range Referer TE Upgrade User-Agent Via Warning
  5. And an explicit number of "updated" apps. It doesn't matter to me so much how many are "finished" as how many have actually been updated from the entire series.
  6. Which job was it? I experiment a lot with Ketarin, and my jobs.db file is over 13mb. I've never actually tried to see what was sucking up all that space, but I assume that it's some form of cache of the previous webpages used for version checks and stuff, which would easily have consumed a crapload of space using the PortableApps files lists from SourceForge.
  7. Have fun, Flo - and THANK YOU for Ketarin. It's so wonderful to have a developer of an advanced application like this is receptive to feedback and input.
  8. Hm...would be difficult to implement. In what kind of situation would you need that For example, if there isn't a regex match for a {version} check, instead of returning an empty string, it returns the entire content of the page. If I use the version variable in my filenames (as I always do), then the download fails because of forbidden characters (<!DOCTYPE ...) in the filename.
  9. re: user-agents, some sites behave very differently depending on the user-agent. All Adobe sites under get.adobe.com, for example, but I, too, change output on some of my sites based on the user-agent. Flo - can you add a checkbox/feature to return empty string when there isn't a match in a variable assignment?
  10. That makes sense. The biggest problem with SF templates is that there really isn't a consistent version source. That's demonstrated perfectly by DVDFlick.
  11. Nope, that doesn't work either.
  12. No. It's exactly what it describes: multiple files that all related to the same package. If you hit http://live.sysinternals.com/ you'll see that all the SysInternals tools are there, already extracted, but there are at least two files for each "package". Sure, I could setup two separate jobs to ensure that I get both the EXE and the CHM file (and another job for each other dependency, when necessary), but it would be so much easier to be able to assign a pattern. If you look at the syntax options for Syncaid it'll make a lot more sense (I hope): http://saferpc.info/syncaid/#extensions It's literally designed to capture the contents of *every* link by default, so you can either pattern match, or use other filters to reduce the number of results. I actually push specific categories from this page to Syncaid when I'm onsite for a client and they need a certain type of removal tool/utility: http://saferpc.info/syncaid.asp CybTekSol - thanks! I'll definitely check it out. The most common problem I have is, I sometimes end up onsite without my USB key or am remoting into a computer and just need certain files (like all the current common updaters). I can either individually go find 'em or keep a list of the links somewhere (as above), or I can use Syncaid to "go get 'em" for me, and not have to worry about it, freeing me up to work on something else ad interim. This is especially important since I'm doing more and more of the once-a-month updates for remote clients, where I login to their computers with LogMeIn, and install the current spate of updates. On 99% of computers out there, I can either run UpdateChecker (remotely) and then individually download each one, or I can just run Syncaid (which downloads all the most common updates for me in the background) while I run UpdateChecker to find out the "uncommon" updates that need applied, and queue Windows Update and Apple Updater, too. Then, when Syncaid is done I can start running those. Very streamlined already, but always looking for any tips. If anyone is interested, I can provide a list of my shortlinks for the common updaters.
  13. SF was doing maintenance earlier this week. Don't fret too hard. For DVDFlick, I use this: <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="45b11c2c-16f0-4b54-8b02-21a24213e829"> <WebsiteUrl>http://www.dvdflick.net/changelog.php</WebsiteUrl> <UserNotes>DVD Flick is a simple, powerful DVD Authoring tool. It can take a number of video files stored on your computer and turn them into a DVD that will play back on your DVD player, Media Center or Home Cinema Set.</UserNotes> <LastFileSize>12951423</LastFileSize> <LastFileDate>2010-09-06T03:16:23.0728179</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer>http://sourceforge.net/</HttpReferer> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>StartEnd</VariableType> <Regex /> <Url>http://www.dvdflick.net/changelog.php</Url> <StartText><h2>Version </StartText> <EndText></h2></EndText> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>schangelog</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.dvdflick.net/changelog.php</TextualContent> <Name>schangelog</Name> </UrlVariable> </value> </item> <item> <key> <string>swebsite</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.dvdflick.net/</TextualContent> <Name>swebsite</Name> </UrlVariable> </value> </item> <item> <key> <string>snotes</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <Name>snotes</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Converters</Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2010-09-06T03:16:23.0728179</LastUpdated> <TargetPath>.\{category}\{appname:regexreplace:([\s\t\r\n\-\\&]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://downloads.sourceforge.net/project/dvdflick/dvdflick/DVD%20Flick%20{version}/dvdflick_setup_{version}.exe</FixedDownloadUrl> <Name>DVD Flick</Name> </ApplicationJob> </Jobs> As far as the PAF issues, hopefully the new builds of Ketarin will put those issues behind us.
  14. "%ProgramFiles(x86)%" doesn't exist on 32-bit computers, so it won't work in my screwy network. I know, I've been through this a lot trying to find a reliable cross-platform method to use the same jobs.db and local (network storage) cache settings without having to change settings based on the environment. The start command should really be avoided too, since it's not cross-platform consistent. Maybe the best method is to set the executeable based on the system variables? IF "%ProgramFiles(x86)%"=="" THEN "%ProgramFiles%\Notepad++\notepad++.exe" "Updates.txt" IF NOT "%ProgramFiles(x86)%"=="" THEN "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt"
  15. Appy, consider using this instead: <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="56063164-e18f-4c70-806d-04ed851f2222"> <WebsiteUrl>http://www.java.com/en/</WebsiteUrl> <UserNotes /> <LastFileSize>16299808</LastFileSize> <LastFileDate>2010-09-12T02:29:12.4995617</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate>2009-07-09T13:28:52</DownloadDate> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>false</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>aversion</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>Recommended Version ([^<>]+?)\s*</strong</Regex> <Url>http://java.com/en/download/manual.jsp</Url> <Name>aversion</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <Url>http://java.com/en/download/manual.jsp</Url> <StartText>Recommended Version </StartText> <EndText> </strong</EndText> <TextualContent>{aversion:regexreplace:[^\d]+:u}</TextualContent> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>URL</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>StartEnd</VariableType> <Regex /> <Url>http://java.com/en/download/manual.jsp#win</Url> <StartText>Offline" href="http://javadl.sun.com/webapps/download/AutoDL?BundleId=</StartText> <EndText>" onclick</EndText> <Name>URL</Name> </UrlVariable> </value> </item> <item> <key> <string>swebsite</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.java.com/winoffline_installer/</TextualContent> <Name>swebsite</Name> </UrlVariable> </value> </item> <item> <key> <string>schangelog</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://java.sun.com/javase/{version:split:u:0}/webnotes/ReleaseNotes.html</TextualContent> <Name>schangelog</Name> </UrlVariable> </value> </item> <item> <key> <string>snotes</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent /> <Name>snotes</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Plugins</Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>.\{category}\{appname:regexreplace:([\s\t\r\n\-\\&\/]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://javadl.sun.com/webapps/download/AutoDL?BundleId={URL}</FixedDownloadUrl> <Name>Java x86</Name> </ApplicationJob> </Jobs> Or FileHippo.
  16. This is one of my biggest frustrations as well. Maybe a type-delay (1.5 seconds or so - tunable if people are into that sort of thing), and a pre-scan of the RegEx to ensure it has capture braces before attempting application?
  17. While I'm thrilled and excited about the C# scripting, I agree with CybTekSol - I really would prefer to have both. While powerful, 99% of the time I doubt I'd need more than a single command to execute. And when I do, I know batch so well compared to C#, that I don't have to even think about it to compose scripts there, while I'm sure I'll spend days investigating C# scripting to get everything I want out of it.
  18. Also, if the MS DL search sucks (as unfortunately, they often do), you can try a Google search by replacing the search URL from: http://www.microsoft.com/downloads/en/results.aspx?freetext=%22{mssearch}%22&displaylang=en&stype=ss_rr&nr=10&sortCriteria=Date&sortOrder=Descending to: http://www.google.com/search?hl=&cat=&meta=&num=100&ie=utf-8&q=site%3Amicrosoft.com%2Fdownloads+%22{mssearch}%22#q=site:microsoft.com/downloads+%22{mssearch}%22&hl=en&tbo=1&tbs=qdr:y,sbd:1&prmd=ivfd&source=lnt&sa=X This will change it to a Google search of all links within the last year, sorted by date, descending (newest on top). That can help if the MS search functionality keeps returning totally useless crap.
  19. what are the swebsite, schangelog and snotes variables for? Sorry, those are for how I use Ketarin. I maintain a list of updated software and security apps and publish it for my clients, and this helps me automate much of that. For apps with multiple downloads, I use Syncaid: http://saferpc.info/syncaid/ I started writing that a few years ago specifically for that purpose, and then I found Ketarin, and haven't needed to maintain Syncaid since. It does have a couple nifty features lacking in Ketarin (most significantly multiple downloads), but is nowhere near as polished as Ketarin. It would be so nice to have the ability to tell Ketarin to download "myapp.*" (or "myapp\.(exe|pl|hlp|ini|chm|bin|xml)") from a given URL and have it download all matching files (see a great example of "why" here: http://live.sysinternals.com/). The single-result matching thingy is very limiting, IMHO. Still, I wouldn't trade Ketarin for anything.
  20. Okay, how do I open it in N++? Currently, I use: "C:\Program Files (x86)\Notepad++\notepad++.exe" "%USERPROFILE%\Desktop\Updates.txt" That's not possible, and my attempt to include just the filename fail. Neither of these work to open the file in N++, even though txt files are associated with it: "%USERPROFILE%\Desktop\Updates.txt" Updates.txt
  21. I'm a keyboarder, so would prefer to be able to do everything thru menus and access keys. I would *greatly* prefer having two options ("update all" and "update selected") with different accelerators. This would make it so i could avoid the mouse even more
  22. I don't use them, so have never needed to. This does not work with the one that's currently showing issues here, but i strongly suspect it's a SF problem, not a problem with Ketarin or this template. Even following "the rules" (that is, visiting it in a real browser), SF is returning a webpage when I try to download the releases sometimes.
×
×
  • 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.