Jump to content
Ketarin forum
floele

Ketarin 1.8.10 beta 2

Recommended Posts

Changes in Beta 1:

+Allow forced evaluation of custom columns by prefixing the name with "!"
+When accessing an FTP directory (path ending with /) list directory contents
+New option: Default user agent. Replaced all previous default user agents with a new one.

Changes in Beta 2:

+Added "clear log" feature in log window
+Allow non-binary downloads (text/html)
*Now requires .NET 4.5.2 (instead of 4.5)

 

Ketarin-1.8.10.1.zip

Edited by floele

Share this post


Link to post
Share on other sites
Quote

+Allow forced evaluation of custom columns by prefixing the name with "!"

What is "name" referring to? The name of the column, the name of the variable used in the columns value?

Can the prefix be combined with a function e.g. "{!countSetup:ps}"?

Share this post


Link to post
Share on other sites

Looks like something has changed with this beta, for example this powershell script does not work anymore (worked fine on previous versions):

 

$PortableAppsPath = [System.Environment]::ExpandEnvironmentVariables($GlobalVars.item('portable').cachedcontent)
$WShell = New-Object -ComObject WScript.Shell
$Executables = (Get-ChildItem (Join-Path $PortableAppsPath $App.Name) -Filter '*.exe' -Recurse)
if ($Executables.Count -gt 1) {
	$ShortCutPath = (Join-Path $([System.Environment]::ExpandEnvironmentVariables($GlobalVars.item('shortcuts').cachedcontent)) $App.Name)
	if (-Not(Test-Path $ShortCutPath -PathType Container)) {
		New-Item $ShortCutPath -ItemType Directory -Force
	}
} else {
	$ShortCutPath = [System.Environment]::ExpandEnvironmentVariables($GlobalVars.item('shortcuts').cachedcontent)
}
foreach ($Executable in $Executables) {
	$ShortCut = $WShell.CreateShortcut("$ShortCutPath\$($Executable.BaseName).lnk")
	$Shortcut.TargetPath = $Executable.FullName
	$Shortcut.WorkingDirectory = (Join-Path $PortableAppsPath $App.Name)
	$Shortcut.IconLocation = $Executable.FullName
	$Shortcut.Save()
}

It does not give any meaningful error either, simply throws: Script can not be executed. Value does not fall into expected range.

Share this post


Link to post
Share on other sites

Are you sure it's actually related to the Ketarin update? There shouldn't be anything different with the new version in this regard.

Share this post


Link to post
Share on other sites

@Etz

What errors does Ketarin log show?

Tried the script with slight modifications, to account for assumption not met by my system, without issue.
Functional modifications : Finds executables in current app dir, rather than dir specified in "portable".
Tested as an app\job specific script, not global.


Global variable shortcuts = C:\

$PortableAppsPath = (Get-Item $app.CurrentLocation).DirectoryName
$WShell = New-Object -ComObject WScript.Shell
$Executables = Get-ChildItem (Get-Item $app.CurrentLocation).DirectoryName -Filter '*.exe' -Recurse
if ($Executables.Count -gt 1) {
    $ShortCutPath = Join-Path $globalvars.'shortcuts'.CachedContent $app.Name
    if (-Not(Test-Path $ShortCutPath -PathType Container)) {
        New-Item $ShortCutPath -ItemType Directory -Force
    }
} else {
    $ShortCutPath = Join-Path $globalvars.'shortcuts'.CachedContent $app.Name
}
foreach ($Executable in $Executables) {
    $ShortCut = $WShell.CreateShortcut("$ShortCutPath\$($Executable.BaseName).lnk")
    $Shortcut.TargetPath = $Executable.FullName
    $Shortcut.WorkingDirectory = (Join-Path $PortableAppsPath $App.Name)
    $Shortcut.IconLocation = $Executable.FullName
    $Shortcut.Save()
}

 

Share this post


Link to post
Share on other sites

@Ambimind Log does not show any errors, it just refused to run by throwing popup message: Script can not be executed. Value does not fall into expected range.

@floele nevermind, looks like it was some kind of temporary issue, started to work by itself again. Probably something got screwed on my system.

Share this post


Link to post
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

×

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.