Tag Info

Hot answers tagged

3

I use the text expansion feature built into Mac OS X to automatically put in email address using a short abbreviations. This will work in standard text fields in Cocoa apps, like TextEdit, Mail etc; alternatively (paid) software like TextExpander (by Smile Software) works in apps like Sublime Text. Information here: ...


2

Batch can't do this. But PowerShell can Here is a very simple example to open two Internet Explorer windows and move/resize them $ie1 = new-object -comobject InternetExplorer.Application $ie1.navigate("http://google.com") $ie1.visible = $true $ie1.top = 10 $ie1.width = 790 $ie1.height = 790 $ie1.Left = 10 $ie2 = new-object -comobject ...


2

Yes, it is possible. First play your video to see if it is OK: ffplay -i YourMovie.mp4 -vf "cropdetect=24:16:0" The cropdetect filter values are: cropdetect=limit:round:reset limit = black threshold (default 24) round = output resolution must be divisible to this reset = after how many frames the detection process will start over If it looks OK, crop ...


2

The -exec argument to find simply executes that command on each item returned. So, for example, if you have a directory set like: >$ find . . ./a.txt ./b.txt ./dir1 ./dir1/c.txt ./dir2 ./dir2/d.txt The -exec portion will be run once for each line, substituting the text for {}. So, in your case, it would recursively copy each entry to the specified ...


1

If I understood your requirement correctly, then for /f will not work as it waits till inner process ends. You could try to synchronize on the file, like in this example: (this would be your depended scripts file, say wait.bat) : @echo off :loop timeout /t 1 (type res.txt |find "trip") > nul 2>&1 if errorlevel 1 goto loop echo I can go! ...


1

No, at least not to obtain the end you seek. Freegate operates as a proxy. it is not changing your IP address, its just forwarding on your traffic so it looks like the traffic is coming from them, not from you. This is not something you can do, because you'd be masquerading as yourself, which obiviously won't fool anyone. no scripting on your end will ...


1

AppleScript You can write a short AppleScript tell application "Finder" set the clipboard to "mylongemail@example.com" end tell Open the AppleScript Editor, paste the example and save it as an application. You can then put it in your dock to access it quickly. Terminal You can use pbcopy to copy text to the clipboard echo 'mylongemail@example.com' ...


1

Something like this should do it: # An array of server names $servers = 'comp1','comp2','comp3','comp4'; Get-WmiObject -computer $servers -class win32_networkadapter | Where-Object AdapterType -eq 'Ethernet 802.3' | Format-Table -auto __SERVER,Caption,ServiceName,AdapterType, MacAddress with the result being something like (MAC addresses ...


1

1) In order not to have problems with the first line, make sure to kill all your script instances when (re)testing. e.g. killall <scriptname>. 2) Add the --batch parameter to your gpg command. Everything else should fine. Hope this helps.



Only top voted, non community-wiki answers of a minimum length are eligible