How to differentiate multiple window instances of Cmder? - conemu

Good day!
I'm having a difficult time determining which window instance of Cmder I need when I'm doing Alt+Tab in window. All of my Cmder instances are just named [1/1] Cmder. Is there a way to customize this name? I've been looking at the settings but it seems there is no configuration for it. Either that or I'm just dumb so I'm taking my chances here. Thanks in advance!

That's default cmder settings.
In ConEmu the defaults are that your window title is the title of your console. So you can easily differentiate them, as the title usually shows your current condone directory (cmd, PowerShell, Far, etc.)
Optionally you may run ConEmu with -title switch. For example ConEmu64.exe -title "My cool project".
https://conemu.github.io/en/ConEmuArgs.html
https://conemu.github.io/en/SettingsTabBar.html

Related

How to get a list of functions supported by an application?

I'm new to Hammerspoon, but interested in automating some macOS workflows with it.
Many examples seem to directly access functions provided by a target application itself - but how does one find out which functions are provided and how they have to be used?
Thanks in advance for any help!
since I may have found an answer myself (or s.th. which comes close to it) let me summarize it here:
Script Editor
One possible approach may be to exploit the built-in macOS "Script Editor" (to be found in folder "Applications" > "Utilities").
Just open the "Script Editor" and - from the menu - choose "Window" > "Library". This will give you a list of automatable applications. Double-clicking on any of these applications will give you a documented list of methods and properties that application provides.
By default, the documentation will use AppleScript syntax - it may be useful to switch to JavaScript using the dropdown just below the window's title bar instead.
Right now, I have no idea if the list (of applications and/or provided properties and methods) is complete or not.
Additionally, you will need a little bit of "fantasy" to map AppleScript/JavaScript definitions to Lua...
I found this recipe in an "DevOps Zone" article
Script Debugger (Lite)
An alternative seems to be the "Script Debugger" from "Late Night Software" - the free "Lite" version seems to be sufficient.
From the menu, simply choose "File" > "Open Dictionary" for an (already open) application of your choice. The "Preview Dictionary" window will then show you a list of all properties and methods provided - and the "Explorer" tab will allow you to inspect them.

Indesign real-time package for collaboration

I manage a team of designers working on Indesign.
When we work on a project, it often happens that a designer has to work on the project of another. We work with Dropbox for Business.
But when we take the work of another designer, there is often missing links and fonts.
Is there a plugin or a way to develop a plugin that would allow, when we create a new indd file (or for the protection of the same file):
Automatically create a "Links" folder and another "Document fonts" at side of the indd file
Systematically add a new link or new typography in the corresponding folder?
To simplify: each action on font or on a link, make a kind of "Indesign Package" in real time?
If this is not a solution, do you have any solutions to meet this need?
I don't know of a specific script or plugin that does this.
However, it should be possible to write a script with an eventhandler with a beforeClose event that runs certain script commands every time a user closes a document (or even every time a user adds, changes or deletes a link). At this point the script could run some copyLink commands on all the images and fonts (?) placing them all in the folders next to the document.
The whole script could be made a startup script, so it becomes active anytime any user runs InDesign.
(I'm actually not sure, if fonts can be copied so easily. Worst case scenario would be that the script would need to run some packaging command to gather the fonts somewhere, copy them over to where you need them and then delete the rest of the temporary package.)
Did you consider Creative Cloud Libraries ? They are meant to allow sharing assets within a team. Apart form that, you users would need to have a same access to the file system (a common drive letter for the network path for example).
Another solution would be to use a DAM solution so users would link files from the DAM.
Eventually, you could sure think of a script as mdomino offered.

Batch or PowerShell command to get the names of all the open applications in Windows

We have a command line utility which opens MS Office documents on a server and converts them to PDF. For Office documents which have a macro in them, a security warning message will pop up and the utility will not proceed to complete the job until someone enables the macro.
For example, the warning message dialog box for a Visio file has the title "Microsoft Visio Security Notice". We need to click on the enable button.
This title is displayed in the Application pane in the Windows Task Manager, but not in the process list.
I want to write a utility to notify me when this occurs.
Could you please let me know what batch or PowerShell command can be used to read/search the task list based on names (i.e., get all the names of applications as displayed in Application pane in the Windows Task Manager).
I have tried tasklist and get-process. They give information regarding the processes but not the details of the application window title.
Please could you share a way to get the list of application window names or a way to check if there is a security warning open through a script.
Here is a proof of concept. You could implement email functionality or triggers if you need. But really, if you know the window title it's fairly easy to manipulate.
$vischk = get-process | where-object {$_.mainwindowhandle -ne 0 -and $_.MainWindowTitle -eq "Microsoft Visio Security Notice"} | select-object name, mainwindowtitle
if (!($vischk))
{
Write-Warning "Security notice not present"
} else {
Write-Warning "This is where you'd do your scripting"
}
The information you are seeing in the TaskManager (well at least the one on Win8) is likely pulled from either the FileVersionInfo's Product or Description fields e.g.:
Get-Process | % {$_.MainModule} | ft Product,Description
BTW if you are looking for a dialog box window title, MainWindowTitle for the process isn't going to help you. You will need to be able to find a window which you can use the WASP module to do. And if it is a newer version of Office, the primary apps are no longer using dialog boxes for security warnings about enable macros, etc.

How can I change settings within Control Panel with Bat files?

I am trying to make my job a little bit more time efficient by using a batch file to change multiple settings within control panel all at once. I can do this manually but if you are setting up 20+ computers it can get a little time consuming. I do not work much with batch files so I do not have any idea where I should start or if it is even possible.
Better way is actually interact with Windows registry from .bat.
Exactly, which configurations do you wanna change?
This is very easy, you can easily find info online about how to do that, MS should have some tutorials on MSDN too. Also, you can done almost all those things thru PowerSheel scripts instead of bat (which I personally think is the best approach)
Anyways, to change ACC you need to go over registry key
HKLM\Software\Microsoft\Windows\CurrentVersion\Action Center
Firewall settings at
HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\
Installed software and its uninstall commands at
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
be careful, registry changes can harm the system.

How can I make the Tab Drop Down In Sql Server Management Studio display more of the File Names

Am I the only person annoyed by this? I don't even know what proc I'm clicking on if the file names have the same prefix, or are longer than the context window width.
I find the tab dropdown, as well as the tab names themselves, annoying. You can't widen either of them.
It helps to save each script to a file, even if only temporarily. I work in an environment where I need to save each script I write. I can see the file names if I hover over each tab. Not perfect, but it helps.
If you're running SSMS 2008 (or even just SSMS Express 2008), you can change certain property settings so that only certain things are shown in each tab: the current server, the current database, the filename, etc. If you only work in a single database, for instance, you could switch off everything except the filename.
But unless any of these suggestions help, there's really no way around those stupid tabs.
connect is garbage, they dont do anything
There isn't a way to make it any bigger.
I find this greatly annoying as well. There are a couple of connect items open about this.

Resources