Mac Window Size App
Does it happen on all kind of files, or just txt files?
- Apps for Desktop Customization. Quickly manipulate window position and size using keyboard shortcuts. Restore hierarchical Dock folder menus in Leopard with this cool Mac.
- Download this app from Microsoft Store for Windows 10. See screenshots, read the latest customer reviews, and compare ratings for TreeSize Free.
- GB, which used to be the only and correct term, now means the incorrect size. GiB now means the actual size. Also, the Mac OS has a twin file system for each file and folder on the drive. The data fork, and the resource fork. Each added resource fork (which doesn't exist on any MS formatted drive) adds a few Kbytes to each total file size.
It depends on the Application, but mostly it's stored in the defaults database. You can check for example Mail.app with. Defaults read com.apple.mail DefaultWindowState If You do not know the key just grep with 'window' the output from defaults read BUNDLEID where BUNDLEID is Your application bundle identifier which can be read like this. Windows users might understand this behavior best, as it is the default maximize window behavior in Windows. If you hold down the Shift key and click the green plus button, the app’s window will fill the entire horizontal and vertical length of the screen.
Usually, it comes from the fact that Unix (from which OS X closely derives) and Windows don't have the same way of 'recording' changing lines in txt files: in DOS and Windows, going to the next line, whether manually when typing or because you imported a txt file made by someone else (or another machine) means using a 'carriage return' (yeah, I know, sounds old), where Unix uses a 'line feed'.
A carriage return will first send the carret back to the beginning of the last line you typed in, before switching to the next line so you can resume typing, whereas a line feed will jump to the next line directly. This leads to some invisible extra characters being typed, and since each digit or key press brings its own byte or octet in the balance, your files might end up being heavier under one platform than they were in another.
The Notepad application in Windows is known for its poor text wrapping (which it makes up for by being a good tool for coding, for the same reason), with the user/writer needing to feed its own carriage returns in the text, when Wordpad is more user-friendly, with better text wrapping, but doesn't show the same flexibility that Notepad has.
The same principle applies to all txt-based files, hence to .log files too. And log files tend to be created by applications for this purpose or that, without you knowing it.
Oct 29, 2013 12:10 PM
Click here to return to the 'Move and resize app windows via AppleScript' hint |
Sorry, my keyboard shortcuts didn't show - the move window scripts use:
command, option, shift and the cursors.
The resize scripts use:
command, option, shift, control and the cursors.
The 'Remember Finder window position' script uses:
command, option, shift and enter.
PhilHints
I was having problems with running the scripts, until I found some similar scripts (spooky).
In their setup script they test if 'access for assistive devices' is enabled in Universal Access.
Once I enabled this your scripts started to work.
Thanks.
Control-Command-F: Use the app in full screen, if supported by the app. Space bar: Use Quick Look to preview the selected item. Command-Tab: Switch to the next most recently used app among your open apps. Shift-Command-5: In macOS Mojave or later, take a screenshot or make a screen recording. Or use Shift-Command-3 or Shift-Command-4 for. Multitouch lets you execute a custom action when you perform a specific trackpad or magic mouse gesture. Easily execute keyboard shortcuts, control your browser's tabs, perform a. Mac App Store is the simplest way to find and download apps for your Mac. To download apps from the Mac App Store, you need a Mac with OS X 10.6.6 or later. Multi clutch mac app.
You're right - I turned off 'Enable access for assistive devices' and the scripts stopped working. Anybody know why?
The reasons I wrote these scripts are because: I couldn't find anything similar; I thought someone might find them useful; It's great to get input on how to make scripts better. If you've found something better (i.e. a script that checks for assistive devices) the can you please post a link so I can see for myself. (Also I love ghost stories..)
Creating a Folder: Open ('Finder2' icon) Finder. Click the Finder app icon, which resembles a blue. How to put a password on a mac app. The password is used to encrypt the file. Open Preview for me. In the Preview app on your Mac, open the PDF you want to password-protect. Choose File Export, then select Encrypt. Type a password, then retype it to verify the password. See also Manage versions of a Preview document in Preview on Mac Lock PDFs and images in Preview on Mac.
Zooom/2
http://coderage-software.com/zooom/
These are awesome! I simplified them to only move stuff from a screen to another. I also removed the checks for the screen edges, and let Mac OS take care of that: Aqua won't let windows move out of the screen entirely.
Also, I prefer Butler for my shortcuts and AppleScript, among other stuff good too.
PhilHints, thanks a bundle for this! -and RobG, seriously, thanks for the mirror - the .mac source was indeed gone :)
These are great scripts. I was looking for information about using AppleScript to move and resize windows so that I could emulate a 'tile windows' function. These are great examples for me to follow for my experiment. Of course, they're great on their own, too.
Thanks. I still use them. I'd like to hear about any improvements you come up with (especially if you can think of a way to move hud style windows properly).
What exactly is 'hud style'? Can you give a link to an example screenshot?
Very cool scripts. I added some code to automatically detect the screen size and pick a grid size. Kinda a quick hack without much testing, but thought I’d share it for the adventurous. Only works for one screen.
Mac Window Size App Windows
The first is for increasing screen size (Frontmost application window snap to grid reduce horizontally script). Paste at the top of the script and remove the duplicated set’s to the _gridSize and _screenWidth. The second bit is for decreasing screen size (Frontmost application window snap to grid increase horizontally script). It tries to pick a reasonable minimum window size.
These can be adapted for the other scripts, but that is left as an exercise for the reader.
FIRST BIT OF CODE SECOND BIT OF CODE STARTS HERE:Mac Window Size App Download
Looks good!
Are you still using these scripts? (I'm a little late replying…)
No I'm not. There are lots of great window utilities out there like Divvy (the one I use).