How to merge primary partition with 'Free Space', when there is a Linux ext4 partition between them? I used to have only a 500gb SSD for my MacBook Pro, but later came across a 1TB SSD that I wanted to switch to using. Instead of using the 'recommended' method, I opted for the dirty route and just connected another MBP in Target Disk Mode via Thunderbolt and used pv /dev/rdisk0 > /dev/rdisk(x) x = whichever disk for the 1TB at the time.

However, prior to copying the entire contents over to the 1TB SSD, I used rEFInd and installed a copy of Kali Linux as a dual boot, which I've been running with.....minimal issues for quite some time now.

So the 'dirty' copy worked as planned, the 1TB SSD boots fine and, after a quick reinstallation of rEFInd, everything runs perfectly as it ever has - except now I have an additional 500gb of 'Free Space' at the very end of the 1TB SSD.

I've tried booting to an external OS X drive and using Disk Utility (both from Yosemite Disk Utility and El Capitan Disk Utility), to expand/merge/delete/create anything to do with this 'Free Space' - without any working results.

So my question is: how can I reclaim this 500gb of space at the END of my 1TB SSD, without compromising any of the other partitions (including primary OS X, Recovery, rEFInd, Kali Linux & Linux Swap), and merge it with my primary partition so I can actually use this space?

Here are some visuals of my partition layout and other various info to help see what I mean...

If you hesitate to dd partitions or backup and restore your data with Time Machine, you may convert the first OS X partition of your disk to a Physical Volume and create a Logical Volume Group. After creating a second partition in the free space you can add it to your LVG and expand your current Logical Volume.

The approach is similar to a Fusion Drive (two Physical Volumes -> one Logical Volume Group/Logical Volume) however using only one disk.

Boot to Macintosh HD
Attach a backup drive and use Time Machine to backup Macintosh HD.
Detach the backup drive
Open Disk Utility and add a JHFS+ partition in the free space (~500 GB)
Enter diskutil list to list all partitions
Enter diskutil cs convert /dev/disk0s2 to convert your main volume to CoreStorage
Enter diskutil cs list to get all CoreStorage items
Enter diskutil cs addDisk lvgUUID diskYsZ to add the new empty 500 GB partition as Physical Volume to the Logical Volume Group.

lvgUUID is the UUID of the Logical Volume Group, diskYsZ is the disk identifier of the empty partition 500 GB partition (probably disk0s6). The content of the partition will be destroyed!
Enter diskutil cs resizeVolume lvUUID size to extend Macintosh HD.

lvUUID is the UUID of the Logical Volume, size: size in t, g, m, k or b (in your case ~850g. If you get an error regarding missing space use a slightly smaller size like 849g).
Enter diskutil verifyDisk disk0 and diskutil verifyVolume disk0s2.

The pros:

it's fast; it takes about 3 minutes.

The cons:

your CoreStorage LVG is non-contiguous and "fragmented".


How to get rid of extra top bar in safari My safari windows suddenly started to include an extra bar containing the bookmarks.  How do I remove this bar?

This is toggled via the menu item View > Show/Hide Favorites Bar, accessible by pressing the shortcut ⇧⌘B.  It's the third item down in the View menu.


How can I get the mic sound feedback in my headphone? I bought a noise canceling headphone yesterday and it works perfectly. The only problem I have is that when I myself talk, I cannot hear my voice correctly. I'm wondered if it is possible to enable the microphone sound feedback in the audio output while the headphone is connected? I have a MacBook Pro with MacOS 10.6 installed.

LineIn from Rogue Amoeba lets you route any sound input to any output. Freeware.


Why Finder opens same folder each time i create new window by tapping finder icon in dock? I have created directory in my dropbox.
And i noticed that every time i have no windows of finder created and tap on finder icon in dock it creates new window with this new folder opened.
But my default folder set to another directory.
Also, if i press cmd+n or cmd+t it opens my default folder.
What can i do to fix this bug?

P.S. if i move this folder to another directory, bug disappears
if i change path to this folder (e.g. folderA/folderB/badfolder —> foldeRRA/folderB/badfolder), bugs disappears
if i delete this folder completely, and then recreate exactly same path, bug appears again.
Also, i used git and virtualenv there, if it is important.

Any help appreciated.

Solved this by deleting com.apple.finder.plist
tutorial for deleting finder.plist

But i still wondering why this have happened.


Turn off emoticons in iOS I'd like to be able to stop iOS automatically converting emoticons as pictures. I want it so that, for example, instead of a picture of a smiling face my phone displays the raw characters of a colon followed by a right bracket [ :) ].

Anyone have any more thoughts on this?

It's a feature of iOS 10. You'll have to delete the emoji keyboard to get rid of that, by going to Settings > General > Keyboards.

Since iOS 10 introduced the predictive text feature, you can type in English and have words corrected in other languages, provided that the keyboard is enabled.


OS X Lion, Moutain Lion, Mavericks, Yosemite: deep sleep on low battery leads to crash I'm having an issue on my Mac since I installed Lion and now Mountain Lion (I thought that the Lion problem could be because I've put an SSD in my Mac and did not make a fresh install but a carbon copy to the new disk, but it still happens with Mountain Lion with a format/fresh install).

What is happening to me is that, when I put my Mac to sleep and the battery dies, it does not restore the state like a normal sleep that it did when I was on Snow Leopard. Now when the battery dies, the computer restarts: I need to put my password and the programs open again but some of them lose the previous state (like VLC, Chrome has the "restore" option, etc.) it is exactly like a restart with the option "Reopen windows when logging back in" selected.

Is this normal or should it happen like in Snow Leopard?

If this is the normal behavior, I will turn off Deep Sleep since the Mac takes less time to sleep with it off. (I think that the more time is because it is storing the state of the RAM on the disk so it could recover when the battery goes off which it doesn't do properly!)

$ pmset -g | grep hibernatemode
 hibernatemode        3

Does you SSD use a SandForce controller?  SandForce controllers seem to have some serious issues related to battery and sleep/hibernate activities, and you might (I repeat might) be seeing some of these problems coming up:

SandForce controller problems

If you have a SandForce controller you might want to change SSD altogether, based on the info provided by the link above.


iPhone 4 previous back up help how can I view all dates of my previous back ups & how can I restore all of my lost photos without connecting to another computer? please say this is possible and help by telling me how I can do this. thank you very much if you can help:)

There are two ways to back up iPhones. One is through iTunes, and the other is through iCloud (seeing that you have an iPhone 4S).

If you have enabled iCloud backup, then you can restore your phone by wiping it (Settings > General > Reset > Erase All Content and Settings) and tapping Restore from iCloud backup after your phone comes up again, then logging into your iCloud backup. Note that iCloud only saves the "latest" backup, and may not have the pictures if you actually (accidentally) deleted them from your phone.

If you have backed it up through iTunes, then plug in your phone, select "Restore" (I didn't walk through these steps myself just now, so they may not be click by click accurate), and select the backup that you would like to restore to your phone. I'm not sure if iTunes just saves the latest or if it will save multiple versions of your phone.


Problem connecting MacBook to TV I was able to watch Netflix on my TV using a ThunderBolt cable to connect previously, however since the last upgrade all I get now is a picture of a screensaver nothing else.

How can I fix this?

When you say screensaver, do you mean a static image or a mountain or something like that?

It could be that previously your computer was previously mirroring the image from your MacBook's built-in screen to the TV, and it has for some unknown reason switched modes and is now creating a second desktop.

Computers like yours can support up to three screens including the built-in one, and you can mix and match the mirroring and desktop modes.

Spanning basically gives you more room, it allows you to put windows onto the second screen and you can move your mouse between them, but in this case it's not what you want.

You can verify if this is what is happening by following these steps:

Click on the Apple menu
Open "System Preferences"

Choose "Displays".

Select the "Arrangement" option.

If this option is missing then the problem is not what I suspect, please come back and let me know.

You should see a diagram that shows you two blue boxes side-by-side:

This diagram shows how the two screens are arranged in relation to your mouse and the laptop, the one with the white bar is the primary screen (probably the build-in screen).

If as with this diagram the second box (without white bar) is off to the left you should find that if you move your cursor to the left if will appear on the TV.

If this is the case the solution is simple, there are two ways:

a. Press CommandF1 to switch into mirroring mode.

b. In the System Preferences window you have opened click "Mirror Displays"

After you've done this you'll notice that the blue boxes are now stacked in the System Preferences window, this indicates they are displaying the same image. The system should remember this in future, it is possible this was reset by the system during a firmware update caused by a software update you ran on your computer.


Run Xcode `git pull` and `git Push` commands in terminal The question is clear:

How do I perform Xcode's commands for git pull and git push via terminal?

Reason:

I've set up multiple git accounts and ssh (Reference). Someone told me the reason why one of those git commands (from XCode or Terminal) doesn't work is because of different ssh policies. Xcode uses open SSH, while Terminal uses normal ssh (I'm not really sure about that). Therefore the ssh setup is different in Terminal and Xcode.

Since the remote origin URL should be the same, I'd like to know how to perform those commands in Terminal?

After some researches, I've just found an alternative solution for my problem, though it does not exactly answer what I asked.

Reference

Action:

Create a file, name it something like: git02
Open and add write this:

#!/bin/bash

echo $1;
ssh-agent bash -c "ssh-add ~/.ssh/id_rsa2; $1"

open terminal in the same folder, type $ chmod +x git02
Copy this file to /usr/local/bin
Execute desired command using something like this: $ git02 'git pull'

Work perfect for me now.


iOS 8.1 Iphone 6 Mail Client can't open links using Chrome The default mail client can't seem to open email links using chrome at all. I have deactivated safari.  Is this  a glitch? Should I stop using the default client?

Thanks.

Since you can't choose a default browser other than Safari (without a Jailbreak) it is the normal behaviour.


AppleScript - mdfind kMDItemTextContent script to find specified content from display dialog query I have this AppleScript find all documents whose content matches the text 'theMessage' and it works perfectly fine:

set matchText to paragraphs of (do shell script "mdfind \"kMDItemTextContent == 'theMessage'\"")
set targetMatch to (choose from list matchText) as string
if targetMatch ≠ "false" then tell application "Finder" to open (POSIX file targetMatch) as alias

but I would like to improve it so that I can search for any text I specify

For example:

set searchText to text returned of (display dialog "Enter your search text:" default answer "")

and then continue on with previous script, with this simple change:

set matchText to paragraphs of (do shell script "mdfind \"kMDItemTextContent == searchText\"")

I just can't seem to get it to take searchText as a variable

Try:

set searchText to text returned of (display dialog "Enter your search text:" default answer "")
set matchText to paragraphs of (do shell script "mdfind \"kMDItemTextContent == " & quoted form of searchText & "\"")
if matchText ≠ {} then
    set targetMatch to (choose from list matchText) as string
    if targetMatch ≠ "false" then tell application "Finder" to open (POSIX file targetMatch) as alias
end if


Change tabstop in TextEdit.app How does one change the tabstop in TextEdit.app for Snow Leopard?

The current tabstop is 8 spaces. I would like to change this to 4 spaces.
Is there any way to achieve this?

For plaintext tabs, you don't need to replace the entire TextEdit app to change it. I looked at the source code and it provides the simpler answer: Open the Terminal and type

defaults write com.apple.TextEdit "TabWidth" '4'

Where '4' is the number of spaces a tab should be.


How to detect spy/keylogger software? I have some serious suspition that my boss installed some kind of spy software. Maybe a keylogger, screen capture or something to know what I do when he's not at the office.

I have nothing to hide so I don't know if he doesn't tell me anything because he didn't find anything out of place or because I'm being paranoid and he's not spying me.

Either way I want to be sure if I'm being spied because:

I don't want to work for someone he doesn't trust me me
It's illegal and I won't allow anyone to store my passwords (I do access my personal email, homebanking and Facebook account during lunch breaks) and personal information.

So... how can I detect spy software in a iMac running OS X 10.6.8? I have full admin permissions know it.

I tried scanning all folders in my user's and system Library but nothing rang any bell but since I think any of this software would hide the folder (either by location or name)  I don't think I'll find a folder named Employeee Spy Data

I also looked all the processes running at different moments with Activity Monitor but again... it's not like the process would be called SpyAgent Helper

Is there a list of known possible folders / processes to look for?

Any other way to detect?

Any kind of rootkit worth its salt is going to be nearly undetectable on a running system because they hook into the kernel and/or replace system binaries to hide itself. Basically what you're seeing cannot be trusted because the system cannot be trusted. What you need to do is turn off the system, connect an external boot drive (don't connect it to the running system) and then boot the system from an external disk and look for suspicious programs.


Run multiple instances of the same version of Firefox with different profiles simultaneously I have an existing installation of Firefox. I've been using this installation for a long time so theres a lot of data (history, bookmark, browser preferences, addon preferences).

Now I want to split this data (browser history, bookmarks, some settings) with the result that some data is only accessable by instance #1 and the other data is only accessable by instance #2. I know that I have to delete most unwanted data manually but thats ok.

My first thought was to clone the profile but I figured out that there are many spots where the actual profile name is hardcoded. The second possibility I see is that I add another installation of the same Firefox version to my system and transfer the profile to the new installation.

Is there a way to do that? Or is there an alternative solution?

Your question is asking for something technically possible, in that it may be possble to "split" data in your profile, and distribute it among other profiles, but it sounds incredibly difficult to do considering what you would you gain doing this manually, as opposed to simply setting up new profiles and entering the data you wish into each new profile, and deleting the data from the other profile.

To accomplish everything you're asking for (except this splitting of the original profile data) is largely academic. The basic idea is have multiple profiles, and have multiple instances of Firefox each accessing a different profile. The way you do that is you first set up the multiple profiles, and you can do this by accessing the Profile Manager. Open your /Applications/Utilities/Terminal.app and type this at the command prompt:

 /Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager &

and the window that appears, along with information at the link provided above, will get you started on creating the extra profiles. Once these profiles are created, you can start the first instance of Firefox by clicking the Start Firefox button, and you can then launch your subsequent instances of Firefox using that same command. Again, in Terminal.app type the following:

 /Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager &

and you will see a second instance of Firefox appear in your dock. Choose the profile you wish for the second Firefox instance, and click Start Firefox. Repeat these steps (pressing the up arrow will display the last command) for as many instances of Firefox that you wish to run, or until you run out of memory.


Why is my iPhoto Library size so much bigger than its contents? I've stopped using iPhoto and want to extract my Originals and trash the library itself. After I pulled out my originals, I noticed that they're nowhere near the 8GB iPhoto Library size Finder is reporting. So I checked the package contents, and selecting everything including hidden files, the total size is only 1GB. I copied everything out to be sure, also 1GB. du -hs from Terminal, also 1GB.

Any thoughts why Finder thinks it's taking up 8GB of space?

Go to your iPhoto Library and right-click on it and select "Show Contents".
Then sort by List (Command+2).
Then go to Finder-View--Show View Options (Command+J) and select "Calculate all sizes"

It will count up all the folder/file sizes and you can see what is taking up space where.


opencv cmake not building I've been trying to build OpenCV in a mac (Yosemite 10.10) using cmake-gui and the compilers gcc,g++ and gfortran given by MacPorts.
I HAVE to use those compilers.
I configured WITH_OPENCL to be OFF and generated the binaries. But when I try to make it in the terminal I get the following error :

[ 65%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.o
/Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp: In function 'bool cv::ocl_FAST(cv::InputArray, std::vector<cv::KeyPoint>&, int, bool, int)':
/Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp:267:53: error: 'fast_oclsrc' is not a member of 'cv::ocl::features2d'
 ocl::Kernel fastKptKernel("FAST_findKeypoints", ocl::features2d::fast_oclsrc);
                                                 ^
/Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp:305:60: error: 'fast_oclsrc' is not a member of 'cv::ocl::features2d'
     ocl::Kernel fastNMSKernel("FAST_nonmaxSupression", ocl::features2d::fast_oclsrc);
                                                        ^
make[2]: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.o] Error 1
make[1]: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2
make: *** [all] Error 2

I do not know why I'm receiving this error. Is there some other configuration I should be doing? Can anyone help me out with this?

So I'm a bit late, and with new problems to solve anyway.
My issues was that my main folder which contained the binaries had a space in the name.
And ocl has issues with those.

I removed the space and it built smoothly.

I did NOT expect this.


Pages 5.2: How to insert date field in other language than system default? My system language is American English. When I insert a date field in Pages (5.2) it follows this format, even though I've set the spelling and grammar language to Dutch. Is it possible to insert a date field in Dutch?

Make sure your region is set to dutch in system-preferences, the language can be set to american but the region setting takes care of the date-format
like in this picture:


Is there a way to put images in cells in tables in iOS Numbers? 3.2 Is there a way to put images in cells in tables in Numbers iOS version 3.2? I've looked at the Apple help and it only shows help for on the Mac and putting an image for a cell background.

I'm using an iPad Air 2.

Yes, this can be done with Copy and Paste.  It is not as simple as dragging or inserting into the cell, but it has the desired result.

Navigate to the desired image and save image to Photos if not already there.
In Numbers, tap the plus icon to add an image
Once the image is on the canvas, long press it to bring up the Copy dialog and then copy to the clipboard
Select the desired cell(s), long press and tap Paste or paste from the ⚡ Cell button
Delete the image from the canvas

The cell can be resized as needed and the image will adjust.  Other content can be added over the image.

Steps
Add image from Photos:

Long press to Copy to Clipboard:

Paste into cell(s)

OR:

Add text, formulas etc as normally


Photo app stuck on "restoring..." after iOS upgrade On my iPhone 4, after I updated the software to iOS 5 beta 6 by restoring it and importing a backup of my data, the Photo app is stuck with a spinning wheel and the "restoring" message:

Everything is working correctly otherwise, all my albums, events, faces and places have been synced to the phone and the photos are showing without problems.

I'm wondering what the "restoring" message means, it's stuck on "0 of 444" since yesterday.

It's having issues reading the database cache for the Photos app I think. Unfortunately the only good way to fix it that I know of is to do a full reset restore run again (I've had to do a few too many of those recently so I know that pain).


Reformatted Windows HDD shows up twice in Disk Utility Had a 1TB hard drive in a Windows laptop that I replaced with an SSD. I've put the old hard drive in a USB enclosure so I can use it as an external drive.
I plugged it into my Mac and opened disk utility where I saw two new mounted drives:
WINDOWS
RECOVERY

I clicked on the WINDOWS drive (981.9GB) and erased it to the ExFat format.
However, the RECOVERY drive is still there (16.85GB).
I've tried unplugging it, using the MacOS format, etc. but they still show up as separate drives.
How can I merge these into one external hard drive?

They aren’t two separate drives, they are two different partitions on the same drive.  You need to repartition the drive so that there’s only one partition.
If you issue the command:
% diskutil partitionDisk /dev/diskX 1 GPT JHFS+ “New Name” 100%

Will wipe the entire drive with a single partition using a GPT partition scheme and format it with the Journaled HSF+ (macOS) format.
If you issue the command diskutil partitionDisk without any arguments, you will get the following help info:
diskutil partitionDisk MountPoint|DiskIdentifier|DeviceNode
        [numberOfPartitions] [APM[Format]|MBR[Format]|GPT[Format]]
        [part1Format part1Name part1Size part2Format part2Name part2Size
         part3Format part3Name part3Size ...]


iterm3 reverse minimal theme compact style When my term updated to its latest version (Build 3.3.0beta1), it removed the titlebar from the window.

Apparently iTerm's theme is now: minimal. And the default profile window type is: compact

But I have no way of reversing this. How can I get back my titlebar, with the red green and yellow buttons?

====> EDIT

These are what my theme and default profile window settings look like.

The settings can be changed in Preferences (Cmd-,).


iTerm spits out text every time I start a new session - why, and how to stop it? Whenever I start a new session with iTerm, it sends sudo su and PS1="[web stage | \d \t \w]:" to the terminal window. I'm think this is something that someone set up for me in iTerm a long time ago. It's very irritating and I want it to stop. :-)

I looked all over the settings/prefs in iTerm and can't find any sign of what could be doing it, nor the string sudo su or PS1= anywhere. (And yes, Profiles > Command > Send Text at Start is empty-- that was my first thought but nothing there.)

I am 99% sure this is something from iTerm and not bash because when I launch the Terminal app, I don't get this behavior.

Where would this be stored and how can I stop it?

-- EDIT to add details:

It's not "Send Text at Start."

This is happening only in iTerm, not Terminal. Here's my iTerm Preferences/Profiles screen:

And, here's my ~/.bash_profile file:

export EC2_HOME=~/.ec2
export PATH=$PATH:/bin:/usr/bin:EC2_HOME/bin:/usr/local/bin
export EC2_PRIVATE_KEY=pk-afv_db1.pem
export EC2_CERT=cert-afv_db1.pem

And my entire ~/.bashrc file:

alias myip=ifconfig | grep 'inet ' | grep -v 127.0.0.1 |
   cut -d\   -f2
export EDITOR="/usr/local/bin/mate -w"
export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Have you tried greping your home directory?

sudo grep -R 'PS1="' ~/

Or, if you're really getting frustrated-

sudo grep -R 'PS1="' /

Maybe redirect stdout of those bad boys to files so you don't have to run them over and over to work with the results.


Keyboard shortcut to quicksave Tomb Raider II Usually, with the Aspyr Media version of Tomb Raider II on MacOS (newest version), you save game with

Fn+F5

and load game with

Fn+F6

on the Macbook Pro 2016.
However, this frustratingly overlaps with the voice control when you press

Fn

Is there a way to set a shortcut key which, when in the game, will shortcut Fn+F5 (for example, just pressing F5)? The BetterTouchTool I am using doesn't appear to be recognized within the game.

To eliminate the Fn key you would have to toggle the global control for F-Keys, in the Keyboard Control Panel


Is there a way to decline Mountain Lion updates? In particular, I receive update notifications for printer drivers where my current drivers work and I don't want to update them. I'd like to clear the updates from the store and stop receiving notifications about them.

You can hide them - right click on the listing in the App Store updates (or purchases) list. You can unhide them by logging in to your account.


Preinstalled Mountain Lion and iWork is not found for Updates My Retina Macbook Pro came with 10.8.0 preinstalled, I also have a normal boxed version of iWork '09 brought over from my old computer.

When the 10.8.1 Update was out I got the Notification box that there would be a new software to install, with the buttons "Details" and "Reboot".
I was curious so I clicked "Details" which brought me to the "Updates" pane of the Mac App Store App.

But here it said there would be no updates.

Since then there were no Updates shown there.

I was able to accept the preinstalled iLife Apps and also buy new Apps.  So the connection to the Mac App Store seems to work.

What doesn't work in addition is upgrading the bought as box iWork '09 apps.

Neither the preinstalled Mountain Lion nor iWork appears in the "Purchased" tab.

Apple Support told me to boot in Safe Mode (holding shift) but unfortunately Safe Mode hangs and doesn't boot.

I tried cleaning up a bit and removed old Startup Items and Lauchd stuff.

There was an article on the net that linked a corrupt Spotlight index to a similar failure so I tried and forced Spotlight to rebuild the index -> noch change in the behaviour.

How can I debug this situation further?  Is there any way to make Mac App Store output some diagnostic info to find the problem?

Is it known how the Mac App Store detects that there is a eligible Mountain Lion on the disk?  Any Ideas?

I'm very comfortable at the shell level, solutions using the commandline are welcome.

There is no way to make App Store output debugging info, all debugging info is that what you see in the Console logs.

App Store doesn’t “detect” that it is on Mountain Lion. Mountain Lion 10.8.0 ships with a different version of App Store that is unique to that version. In addition to this, App Store may check the SystemVersion.plist file to determine on which version it is running.

iWork and Mountain Lion don’t appear in the Purchased tab of App Store, because you did not purchase them through the App Store.

As for the App Store not detecting the 10.8.1 update, that is a problem even I have had (With Xcode, though). About 3 days after the update disappeared, it reappeared. I never found out the cause of the problem.


Is there an iOS PDF reader with support for PDF layers? I was looking for a PDF Reader application which supported PDF layers (turning them on and off).

Do any exist?

I think the DocuWorks viewer will, but does not seem to be available in the U.S. store right now for some reason.


Source a script from a URL in bash I gather this should work in bash:

source <(curl -s https://example.com/script.sh)

or

bash <(curl -s https://example.com/script.sh)

or

curl -s https://example.com/script.sh | source /dev/stdin

But it's not working for me. Downloading to a file, sourcing the file and then removing the file does work. I'm curious as to why none of the one liners are working though.

You are correct that your two first on-liners should be working according to bash process substitution semantics. In my testing (bash 3.2 on OS X 10.8.2), the second one does, while the first one does not.

In the case of your first one-liner, it looks like you may be running into one of the limitations of process substitution. Quoting the Wikipedia page on process substitution:

  Process substitution has some limitations: the “files” created are not seekable, which means the process reading or writing to the file cannot perform random access; it must read or write once from start to finish. Programs that explicitly check the type of a file before opening it may refuse to work with process substitution, because the “file” resulting from process substitution is not a regular file.

– if source is a command that has difficulties with this (at least in bash 3.2), that would explain its failure to work with process substitution.

The second one-liner possibly just looks like it fails because it executes the code in a subshell rather than sourcing it. If you are expecting it to set aliases and functions, this won’t work, as these do not carry over to the parent shell when defined in a subshell.

The third one-liner doesn’t work because source does not process stdin – only files (see bash man page).


Where is the Spotlight .app file located? I want to use some custom keybindings to access spotlight using skhd and I  need the location of the binary or .app file to do so. Where can I find it?

The bundle is located here, but opening it does not cause Spotlight to appear:
/System/Library/CoreServices/Spotlight.app


Quick way to clear Calendar notifications? For some reason, for exchange accounts, if I accept/deny calendar invitations on one computer, it would still stay as an alert on my other computers. The alert would not ask me to accept/reject, instead it would just ask me to dismiss it with an "ok" button. It's super annoying because that means I have to click "ok" for each calendar invite for each computer I have.

Is there a way to fix this or at least a quick way to dismiss all incoming event that have already been accepted?

Hold down the alt key when you have the invitations list in view.

All the OK buttons will change to Ok All and all the  Accept buttons will change to Accept All

Clicking the Ok All will clear the invitations with just the OK All.

The other buttons do not change annoyingly. As I would like Decline All


Can I change the color of my Mac OS X Terminal window depending on which server I am ssh-ed to? I'd like to have the background as black for server 'foo' but have the background be say gray  or blue for server 'bar'.

I am worried I'll run the wrong command on the wrong ec2 instance because all the pwds are /home/ubuntu! How is everyone else solving this?

you can use a script to connect to your servers, which also changes the bg color of your terminal before it connects.

http://www.macosxhints.ch/index.php?page=2&hintid=1001


Mac terminal shows 'null' for host name at the prompt I've got a new Mac and I've noticed on the terminal I get a null instead of some kind of name there before on my previous computer.

Last login: Fri Mar  9 10:14:57 on ttys000
(null):~ Macuser$

I'm pretty sure thats not normal and occasionally it does fix itself! Why is it doing this?

Have a look in your .bashrc and .bash_profile... for instance I have the line

PS1="\[\e[0;32m\]\u@monkey:\w\$ \[\e[0m\]"

before fi to set my prompt.


Copy and pasting between host and VM I have a host machine running OS X 10.9.3 and VirtualBox 4.3.12 VM running Windows 7. I want to copy and paste between the host machine and the VM. By default copy-pastes don't seem to be transferable between machines. How can I do this?

There were some similar questions but using Linux/VMWare but the solutions have been specific to the VM in use.

It's not by default. If you have installed Guest Additions, then you can do this:

Start the VM
Go to Machine > Settings in the file menu.
Go to the General tab, then Advanced.
Set the Shared Clipboard setting to Disabled, Guest to Host, Host to Guest or Bidirectional.


Ugly borders in OS X I recently switched to OS X from linux. And the thing that annoys me really much is ugly white spaces at the right and the bottom of the screen. You can see it at the picture attached. And I can't resize the window.

Does anyone have the same problem as me? I have MBP 13" 2011. Is there a way to delete these spaces out of the box or should I install some third-party software?

link to pic: http://i.imgur.com/grhQMkP.png

No you can't, that's the space that indicates that the dock is on that side. BUT, what you can do is move the dock to the left or right if really bothers you that much. You are limited to space from top to bottom, but not left to right, so you can override that little space on the sides but not at the bottom. :)

If you don't like it in the sides, you can move it to the sides, resize your window to 100% height, then move the dock back to bottom. You will see the space is gone.

Alternative: Go fullscreen mode cntrl+cmd+F


How to export the event log from the Console.app into a text file? According to tutorials, you'd export your Console.app event log by pressing the "Share" and using e.g. the Mail.app:

https://help.realmacsoftware.com/en/articles/1905631-how-to-save-console-logs-in-os-x

However, I want to export the event log to a plain text file instead of an extension app.

How can I do this?

You can send the logs as a plane text via mail.
Just press Cmd-Shift-T in Mail.app before sending e-mail (or choose Menu -> Format -> Make Plane Text).
This will clear all formatting in hole email and the recipient will receive the logs in proper format.

Cmd-A, Cmd-C in Console.app and Cmd-V in an empty text file as it was suggested by Seamus.

You can use Terminal.app and directly database were all the logs resides and even do not open Console.app

To see the logs for your app:

log show --predicate 'sender == "the_name_of_your_app"' --style compact

To see the logs for the specified time interval:

log show --predicate 'sender == "the_name_of_your_app"' --style compact --start '2020-10-07 16:55:00' --end '2020-10-07 16:59:00'

To save the logs for the specified time interval into a file to keep/send:

log show --predicate 'sender == "the_name_of_your_app"' --style compact --start '2020-10-07 16:55:00' --end '2020-10-07 16:59:00' > your_library.log

To see the logs in real time directly in Terminal:

log stream --predicate 'sender == "the_name_of_your_app"' --style compact

Press Ctrl-C to stop capturing process.


MacBook Pro doesn’t recognize new internal HDD My MBP 13” mid 2012 doesn’t recognize new HDDs (500 GB HGST 5400 rpm SATA 3.0gb or 500GB HGST 7200 rpm 6.0g) in Disk Utility, but picked up a Toshiba 500 GB. My previous HDD failed(dead). I am confused; Is it really something with the brand, or rather a compatibility issue or something else?

The MBP 13" mid 2012 has some weirdness with the internal hard drive cable, which seems to be overly sensitive to many factors, including hard drive brand. I have seen trouble before with HGST drives and that model MBP.

Assuming you successfully tested the drive another way and found it working, I would try a new internal hard drive cable. Check the cable model number on its undeside, it's either 821-1480 or 821-2049. The former seem to be less reliable than the latter, so if you need to order a new one to test, I would order the latter.


What is the best way to move lots of photos between two iPads? The business I work for currently has two iPads: One third generation and one fourth generation. They are each tied to a separate Apple ID. The third generation iPad currently has tons of photos and albums that we would like to get onto the fourth generation iPad, preferably keeping the albums intact. Many of the albums have upwards of 100 photos.

The reason we want to do this is that we would like to take one iPad to show photos to clients at different job sites, while keeping another iPad at our office for customers who come straight to our showroom. At the same time, we want to be able to keep all the other content on the iPads (apps, music, etc.) separate.

I'm a fan of PhotoSync for this. $1.99 (on the US/Canada App Stores), and can transfer between any number of devices. From their site:

  Direct transfer of photos & videos between your iOS devices (iPhone,
  iPad, iPod Touch) over Wi-Fi and Bluetooth - no computer needed! Read more.

Alternatively, DropBox or even the built-in Photo Stream may help, but the latter doesn't give you much control and you're syncing photos through the Internet  in either case: PhotoSync transfers directly over Wi-fi.


Messages not working on macbook pro I updated my macbook pro to OSX Mavericks and signed in to Messages app but it isn't working. My account is enabled but when I try sending a message it says cannot send message. Your iMessage account isn't signed in. Not sure what's causing the problem, any help?

Have you tried deleting your iCloud account (which includes your iCloud account in the messages app) and re-adding it? There might be a stale config file somewhere that just needs to be re-created. Try either removing/re-adding your entire iCloud account or just unchecking/checking the "Messages" option under your iCloud account in System Preferences.


Macbook often goes to max CPU and then hangs there My MBP 2015 15" often hangs with the same sequence of events. First the fan starts rushing up to top speed, then the screen gets some lag, then becomes unresponsive, and then the whole thing hangs in this max CPU state indefinitely until powered off (you can't even move the mouse). I'd really like to be able to log what software is running so I can start to troubleshoot. I don't have to be using any app in particular to make it hang, and I can otherwise do CPU intensive work like video editing without problems. Any ideas?

I had the exact same issue on my MBP 2017 15", using it with external screens and Mojave 10.14.6. Turned out to be a bug with NightShift (documented here). Turning off NightShift solved the problem.

Maybe this will also help you.


Why is wc -c printing spaces before the number? command:

echo "test" | wc -c

results (7 leading spaces):

"       5"

I tested this on my linux box and I don't get the space in front of the five. is this a bug or expected behavior?

This is by design. You can see how wc pads “tabs” by removing the -c so it drops the first number in alignment with where the others would be.

You can gobble up the white space if you need with another pipe, but you should plan on this if you’re scripting things on macOS and don’t drop a different wc command down. The options are endless

echo "test" | wc -c | xargs
echo "test" | wc -c | tr -d ' '
echo "test" | wc -c | sed 's/ //g'
echo $(echo "test" | wc -c)


How do you rotate inserts in Apple Mac OS preview 7? It happens that I noticed a text insert I had  pasted in an  image in Preview 7 (Sierra on MacBookAir had been rotated
I don't know how this happened but the text insert is definitely not horizontal.
So there must be a way to rotate inserts. I haven't yet found out.
Can anyone tell me?

You can rotate inserts and annotations, like text boxes, rectangles or signatures, by arbitrary angles:

Hold the Command ⌘ key and rotate the selected annotation with two fingers on a trackpad.

As far as I know this only works with trackpads and is undocumented. It works on macOS High Sierra.

This is from an apple communities question: How can I rotate the text box in Preview


Does " would like to access files in your Downloads folder" give complete access to directory, or just certain files in it? I see the following (particularly with communications apps like slack and zoom):

If I had sensitive info in Downloads, say, client data for a project I'd been working on, could these applications like Zoom or Slack upload that file to their servers (or access it in any other way), or does this permission only give these applications the ability to do the following

save files sent through that application
upload files sent by the user through the application (for example, if I wanted to send a file from Downloads to a friend)

The notification as it stands doesn't rule out the possibility that the application will be given permission to upload anything it wants from Downloads to its servers at any time it wants. I would assume it doesn't have that permission, but we know what happens when we assume..

No: the permission is for unlimited access to that folder.
There's nothing to stop an app secretly uploading all your files to some server, except that people would notice and denounce the company, and there's no commercial benefit in doing it anyway.
The Documents folder is another location that has  privileged access, but the trouble is that every app that can open and save files is likely to need access to it. If you create another user folder outside Documents, then it will be open to all user processes.
You can install something like Little Snitch, which will regularly worry you with information about all outgoing internet connections, and let you allow/deny them.


App Store email varies from Apple ID, where can this be set up on iPad Pro When setting up new iPad Pro-by default it only permits one email address to be used for Apple ID & App Store. On all my other devices, I have one email associated with my Apple ID & a different email address associated with my App Store. Because I haven’t been able to locate where one can make this distinction, in Settings (or elsewhere), I can’t access any of my previously purchased apps. Any one run into this or know how to resolve?

When setting up your iPad, there's a button on the Apple ID login page to log in with separate iCloud and iTunes Apple IDs.

If you didn't press this link, you can retroactively change your iTunes & App Stores Apple ID in Settings:

Go to Settings, tap your name at the top of the list, then choose iTunes & App Stores.
Choose the Apple ID displayed at the top, then Sign Out.
Sign in with the Apple ID you wish to use.


How do I install and format new hard drive in mid-2012 Macbook pro? My hard drive in my Macbook completely broke a few weeks ago (didn't have much on it thankfully), so I bought a new hard drive and replaced the old one.

Now I'm not too sure how to set this new hard drive up (as in putting an OS on it and formatting it correctly) - I'm not concerned with getting any of my old data back on it, I just want to set it up as a new Macbook. Similar questions I have found all seem to ask how to set it up with all the old data. How do I boot the system up (safe boot, recovery etc.)? and what do I need to do once it's booted up?

Any help is much appreciated.

This answer is more tailored to your question.

Install the new HDD.
Boot to Internet Recovery. Startup your Mac and immediately hold down the option+⌘+R key combination.
Release the keys when the Apple logo or a spinning globe appears
Use the Disk Utility application to erase the HDD. When prompted, select the "Mac OS Extended (Journaled)" format. You will also have the option to select "APFS". Some notes about APFS is given below.

The Apple File System (APFS) was introduced with High Sierra.
Many users have reported problems repartitioning their drives when APFS is in use.
Many users have report difficulties using the Boot Camp Assistant to install Windows when the APFS format is used.
You can convert to APFS later, if you wish.

Install macOS.
Restart to the newly installed macOS.

Below is a more generic answer.

Install the new drive.
Boot to Internet Recovery. Startup your Mac and immediately hold down the option+⌘+R key combination.
Release the keys when the Apple logo or a spinning globe appears
Open a Terminal window and enter the following commands.

diskutil  unmountdisk  disk0
diskutil  eraseDisk  free  none  disk0

  Note: Normally you should not have to use the diskutil commands to erase the drive. Occasionally, step 5 fails, if step 4 is skipped. If you feel lucky, you can try omitting this step.

Use the Disk Utility application to erase the drive. When prompted, select the "Mac OS Extended (Journaled)" format. If you desire encryption, then select "Mac OS Extended (Journaled, Encrypted)" format instead.
Install macOS.

  Note: If you are installing High Sierra (macOS 10.13.x) to a SSD, this drive will probably be converted use the APFS format.

Restart to the newly installed macOS.
If the installed macOS is not the current macOS, then download and install the current macOS from the Apps Store.


How to browse files on your iPhone with Bash on Mac Book? How to browse files on your iPhone with Bash inside the Terminal with iPhone connected to Mac with cable?

Thank you for your answers :)

The easiest way is to install Homebrew first, and then use this command:

brew install ifuse

to install the "ifuse" program from libimobiledevice.

It will allow you to mount and access the contents of the iPhone on your Mac.

Look at the guide here for various options to ifuse that will allow you to mount various parts of the iPhone file systems (app containers, the media partition, the whole file system, etc.).


iTunes for Windows finds less files to import than iTunes for Mac On a Windows removable disk, I have a folder called audio jukebox. Under that folder I have a folder for each artist and under each of these folders there are one or more folders each representing an album and in each of these folders are the songs in that album. Windows reports that I have 1,445 folder and 10,498 files.

When I delete all songs in iTunes and then import them into my PC, iTunes says I have 7,064 items. Then I do the same thing on my MacBook and iTunes says I have 7,114 items.

Why are they not the same on both computers?

This can happen with many other things on mac, such as your storage breakdown. The simple fix is to restart your mac and open iTunes back up again. Sometimes, macs need to "catch up".

Sources:

Apple store worker


What was the link to the iOS App Store story on selected apps from WWDC18 Scholars? I recall that there was an App Store story on selected apps from WWDC18 scholars, but I forgot to save the link before the App Store updated. Does any one still have the link to that story, and would be willing to share it here? Thanks!

Congratulations to the WWDC18 Scholarship Winners
WWDC18 Scholarships reward talented students and active members of organisations that promote science, technology, engineering or maths, with the opportunity to attend Apple's […]

https://itunes.apple.com/us/story/id1384637708


Can't run 60hz on external display with MacBook Pro 15 2019 I just bought Baseus Enjoy series Type-C to HDMI*2+PD HD intelligent HUB adapter
and it works only on 30hz port on my Samsung  u28e590ds monitor. I use MacBook Pro 15 2019. If I plug into 60hz port it recognized by MacBook but screen is black. I tried different cables - all the same. Is issue with the adapter?

Just bought USB type-c to DP adapter and it works fine. Thanks!


After logging into OSX all I see is a black screen I am currently having an issue with my mac.

Turn on the mac
The apple logo appears followed by the login screen.  There are 2 logins, one is a guest login and the other is my login.
When I choose guest I am able to login
When I choose my login it shows the apple logo briefly and then a blank screen
When I tap the touch pad the screen briefly flashes the login screen but remains black
I can hear the volume indicators and when I press buttons I can hear sounds.

I have tried restarted several times but it does the same thing. I'll need some help finding the next steps to solve this black screen.

I tried the PRAM many times and it didn't work. Thank you Reve. Your link solution was the one that worked. Dunno why your solution was down voted.

I am copy pasting the text:

In the three years of using my MacBook Air, I have never had any major problems with it. It was totally reliable, even after I accidentally spilled coffee on it. However, the update to macOS Sierra 10.12.2 ruined its streak, leaving me with a blank screen that only displayed the cursor.

I initially blamed the update for this, but after I saw no similar reports from other users I started doing some digging. As it turns out, this problem predates Sierra by a couple of years. Apple has not addressed it yet, but, don’t panic: it is pretty easy to fix it yourself.

It is not clear what exactly is causing macOS to act up after installing an update, but it rears its ugly head after powering on the Mac. You can try to reboot or reset the PRAM and SMC — the first things that Mac users can try when something isn’t working right — but that will not fix it.

So, here is what you need to do. First, you need to shut down your Mac, if it’s powered on. Pressing the power key for a couple of seconds will do the trick.

Next, you have to boot your Mac in single-user mode. That’s done by pressing the Command and S keys at the same time, right after pressing the power key. If you did it right, you should see a whole bunch of lines on the screen in what is a Terminal-like interface.

(I’ve seen someone recommend that you reset the PRAM three times before booting in the single-user mode. There is no harm in doing that. Hit the Command, Option, P and R keys at the same time, right after you power it on, and wait until you hear the startup chime for the third time before letting go. Then, quickly press the Command and S keys, to get you into the single-user mode.)

You then need to type the following commands:

/sbin/fsck -fy
/sbin/mount -uw /
rm -f /Library/Preferences/com.apple.loginwindow.plist
rm -f /var/db/.AppleUpgrade
reboot

You will have to press the Enter/Return key after each one. The fifth command restarts your Mac. It will show the login screen. That’s normal, even if you previously bypassed it. Type in your password and you’re back in business.

You may run into this problem even after macOS Sierra 10.12.2, but know that you will be able to apply this method again if that happens.


Calendar keeps losing custom event to launch a program. Is this a bug? I had a daily event set up in calendar that runs a particular program.  Recently it stopped running this (possibly after an upgrade?).  Took me a few days or weeks to notice (because it happens automatically).  I go into the event and see no alert is set.

I create a new event and add my custom alert to open a file that is a program:

and then when I click back into the event I can see that no alert is present!

Is this a new bug or am I doing something wrong?

I am on OSX El Capitan 10.11.5 and Calendar Version 8.0 (2092.3).

You are using a calendar that is connected to iCloud. Since iCloud calendars do not support file opening events, it cannot save to iCloud and then it cancels. Make a new LOCAL calendar that is not on iCloud but based on your own computer, then you can do a file based event on the computer based calendar.


How To Strip All Finder Attributes for Some Device After copying files to an NTFS and FAT Extended devices, I ended up with numerous misplaced finder attributes, due to the broken NTFS and FAT support in OSX's Finder. I.e. I get these can't be changed because they are in use errors, when trying to access any file, but non-finder apps access them fine, although say cp preserves attributes while copying, so attribute hell spreads like virus by copying.

How do I just delete all attributes at once? Instead of doing xattr -d com.apple.FinderInfo file.ext for each file? Is there some hidden folder where OSX stores metadata? Because Neither FAT or NTFS support the OSX's metadata streams.

rm ._* does the trick for FAT, which has attributes are stored in these ._ prefixed files, but doesn't work for NTFS, which embeds them into filesystem.


Recommendation for PDF "organizer" I am looking for a PDF library organizer / tool. The requirements are:

I can create "shelves" where I could sort the PDFs by topics.
I could access it both from my iPad and from my Mac or maybe even the iPhone.
If possible (not necessary), there should be an easy way to annotate it on the iPad with the pen.

I never did find quite an organizer like this. I am looking to do it for school papers that I read.

Thank you.

Have you just tried using iCloud drive on the Mac and the "Files" app on the phone/iPad, with shelves represented by sub-folders?

Apps are opened and marked in Preview on the Mac and in-app markup is allowed in Files.

All changes are synced. Elegant. Free. Baked-in using no extra apps.


Mac mini 2014 4k + 2k Monitor Configuration I'm interested in getting a Mac mini Late-2014 (specifically A1347, Macmini7,1, MGEN2LL/A), but I'm concerned by the multi-monitor specifications published by Apple.
The specs state:-

Video Support

Support for up to two displays at 2560 by 1600 pixels, both at millions of colors
Thunderbolt digital video output

Native Mini DisplayPort output
DVI output using Mini DisplayPort to DVI Adapter (sold separately)
VGA output using Mini DisplayPort to VGA Adapter (sold separately)
Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter (sold separately)

HDMI video output

Support for 1080p resolution at up to 60Hz
Support for 3840-by-2160 resolution at 30Hz
Support for 4096-by-2160 resolution at 24Hz

DVI output using HDMI to DVI Adapter (sold separately)

The thing that concerns me is up to two displays at 2560 by 1600 pixels -  the 4K resolution alone exceeds the pixel count of 2 2160x1600 monitors, which suggests to me that it might not support a second monitor at all if a 4K is connected. If the 4K already suffers a refresh rate hit, I'm concerned that a second monitor will either push it into slide-show territory, or not work at all. Obviously resolutions can be reduced, but that's a deal-breaker for me.
So, would 2014 Mac minis be able to drive both a 4K (3840x2160) monitor and a 2K (1920x1080) monitor simulataneously? Additionally, would the 4K monitor maintain 30Hz in this configuration?

It seems, from the spec you've listed, that it should support one 4K display via HDMI at 30Hz, and another display via Thunderbolt.
However, everymac.com does not list the HDMI options beyond 1080p at 60 Hz.
For a 2014 MacBook Pro with the same Intel Iris 5100, everymac does say:
This model supports a simultaneous maximum resolution up to 2560x1600 on two external displays via Thunderbolt. Alternately, it can support a single display up to 2560x1600 via Thunderbolt and a single 1080p display at up to 60 Hz, 3840x2160 at 30 Hz, or 4096x2160 at 24 Hz via HDMI.
... which tallies with the similar spec from Apple for the Mini.
I'd also draw your attention to the fact that even the 2.6 GHz i5 CPU is only a dual-core, and was considered quite 'light-purpose' at the time.


I got an image on terminal from the output of homebrew package manager I got a strange image from the output of brew like this . I'm curious about this behaviour. Is this a feature of brew or the image comes from some special character set? If a character in some character set, I think it can be employed to customise the terminal (prompt, etc.).

Thanks and Best Regards!

That would be an emoji. You can insert them anywhere by clicking Edit > Special Characters > Emoji. The beer one is under the Objects subcategory.


How to manually set the language for Auto Correct? How can I manually select the language of Auto Correct for a block of text in apps like Notes and Mail?

I want to write a text that contains both English and German sentences. I have found a solution to modifying the setting globally in this thread, but I would like to have a mixed document.

If I type an English and German sentences, the resulting spelling corrections may or may not be reasonable and the pattern (if one exists) is not obvious. To be specific, in the following snapshot the second sentence is in the wrong language while the first and the third one are correct:

How can I change the spelling language of the second sentence to English?

You can try selecting the text and then setting the correct dictionary in Edit > Spelling and Grammar > Show Spelling and Grammar.

It's not possible to actually tag text as being in a certain language in such apps.  You are at the mercy of whatever algorithm Apple is using to implement its concept of "automatic by language", which I think few users find very useful.


How to read Google Play Magazines on iPad iOS 8? I'm a long time Android user and have several magazine subscriptions on Google Play Newsstand.

I have a new iPad and installed the Google Play Newsstand App, expecting to be able to read my magazines. But to my dismay, the iOS app does not support "magazines"!!?

The only way I've found so far to read the magazines is via the Google Play website in the Chrome browser (as I would do on my desktop PC), however, the experience on iOS is not good (and inconvenient)! (The text is too small and "zoom" does not work properly, full screen mode does not work, does not remember page, "breaks" if left open in a tab for a period of time (maybe the "session" closes?), etc.)

So, is there a better way to read my Google Play Magazines on iPad iOS 8?

Recent update to the Google Play Newsstand App (Version 3.2 - 14 July 2015) has added "Magazine support"!

The experience is pretty much identical to the Android version.


Time Machine: Enable encryption on a locally connected disk without deleting the existing content of said disk? I have an external FireWire-disk directly connected to a computer for backups using Time Machine. So far, these backups have been unencrypted but now I want to start encrypting my backups (the current backup history should be left as is) but when I try to do that, after entering a password, TM displays a pretty scary dialog (my translation) "Are you sure you want to erase the volume 'Backup' that is currently used for backups? All information on the disk will be deleted and this can not be undone. If you want to enable encryption and use the disk for Time Machine it must first be erased".

Why is that? I thought TM used disk images for encrypted backups, why not just create one of them and ignore the rest of the content of this disk? Is there a way around this? I have tried renaming the Backups.backupdb-folder but it didn't change anything.

According to Apple's support documentation, you need to remove the disk and re-add it as an encrypted disk:

Choose Apple menu > System Preferences, then click Time Machine.
Click Select Disk or Add or Remove Backup Disk (if you have multiple backup disks).
Select your backup disk, then click Remove Disk.
Set up the disk again as an encrypted backup disk.


MacBook Pro keeps freezing, could Google Update be the cause? Last Dec (2012) my MacBook Pro (OS X Lion) started freezing, say 3 or 4 times a session. I ran both the Apple hardware diagnostic DVD (ran for hours, no problems),
and I ran a disk scan, no problems found.

The kernel.log message turns up these messages, at every single crash:

Dec 13 07:29:27 Gord-Waits-MacBook-Pro kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=809[GoogleSoftwareUp] clearing CS_VALID
Dec 13 07:41:17 Gord-Waits-MacBook-Pro kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=839[ksadmin] clearing CS_VALID
Dec 13 07:41:18 Gord-Waits-MacBook-Pro kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=840[ksadmin] clearing CS_VALID

If you google for GoogleSoftwareUp you find a number of internet posts with the same problem. I found one page that suggested I turn off the update by issuing this command:

defaults write com.google.Keystone.Agent checkInterval 0

which is supposed to disable auto google updates completely.

That drastically reduced the crashes, but I still get a crash about once or twice a week, with the same Google Update related messages.

Anyone have any new ideas?

I suppose I should uninstall Chrome altogether next..

These misbehaviours seem to come from a Google software update agent.

If this command:

launchctl list | grep google

tells:

-       0       com.google.keystone.user.agent

Then you may temporarily stop this agent with:

cd ~/Library/LaunchAgents
launchctl unload -S aqua com.google.keystone.agent.plist

On the system (where I do have regular crashes since the installation
of this agent: Snow Leopard) I noticed that this plist is starting an executable located here:

~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent

which is a universal binary dating from May 2012:

file GoogleSoftwareUpdateAgent
GoogleSoftwareUpdateAgent: Mach-O universal binary with 2 architectures
GoogleSoftwareUpdateAgent (for architecture i386):      Mach-O executable i386
GoogleSoftwareUpdateAgent (for architecture ppc):       Mach-O executable ppc

Hence I'm tempted to conclude that this agent is using obsolete code
and should be removed.

I removed this agent so as not to see it again on my next session with:

cd ~/Library/LaunchAgents
chmod 0 com.google.keystone.agent.plist

Tested with a new session. I have no more
CODE SIGNING: cs_invalid_page(0x1000):[…]


rMBP early 2013 15'' fan noise with 4K display? I own a MacBook Pro with Retina display early 2013 with Intel HD4000 + GT 650M 1 GB.
I'm looking for a high pixel display, and narrowed it down to two options:
21:9 34″ LG 3440x1440 or 28″ 4K display.

I'm currently using my MacBook Pro with 24″ 1920x1200 as a secondary display for work with Ps, Ai and Ae, and Mac is beautifully quiet even with 8 virtual desktops, Ps, Ai, Safari with ~30 tabs, which I love most about Macs—I start to hear the fans when using Ae and rendering/saving to RAM which of course is understandable.

Is my MacBook going to be quiet with 4K display with at least browsing internet through Safari? It's ok to hear fans when I do some work, but I would hate it if the idle Mac connected to the external display would buzz like a vacuum cleaner!

I have the same machine and the fans do run when trying to display 4k... it's a pain but it appears that whenever the dedicated graphics card comes online it immediately tries to cool the machine... I'm also running OSX Yosemite if that helps.


How do I view inline images in w3m? I am using a Mac (El Capitan), and trying to use w3m. But I don't see images when browsing pages.

  My question is: I want to view inline images in w3m, but don't find a way to do so.

I have been told that w3m can display inline images, and seen some video examples. But all the tutorials I found use Linux or the like, and I can't seem to make w3m display inline images.

I opened w3m in a terminal (either xterm or iterm2), and pressed o and set the display inline image option to yes, and re-launches w3m, but nothing happens.

Some say that one should install w3m-img, but I cannot find a package named as such. Others say that one should enable frame buffer; however, I don't know how to do that either.

Any help or reference is sincerely appreciated.

P.S.
In item2 I can display images on the terminal, but, when using w3m, still no images appear.

Things you need to make this happen on macos:

1. Terminal emulator that supports sixel

iTerm2 recently added sixel support for viewing inline images. You'l need iterm 3.3 or later, which at time of writing is in beta, available in the test releases section of the downloads page.

2. Utility for converting images to sixel format

I used img2sixel.

  git clone https://github.com/saitoha/libsixel # Download the source code
  pushd libsixel # switch to the directory containing the source
  ./configure # This generates compilation settings for your OS
  make # Compile the program
  export SIXEL_DIR=${PWD} # Store current directory for reference later

  # Test it
  ./converters/img2sixel images/snake.png #should display in your terminal :)

3. w3m build with sixel support

Follow the sixel readme in tats/w3m

  popd # Don't clone w3m within the img2sixel dir
  git clone https://github.com/tats/w3m
  pushd w3m
  ./configure --enable-image
  make

  # Test it
  W3M_IMG2SIXEL="${SIXEL_DIR}/converters/img2sixel" ./w3m -sixel -o display_image=1 google.com

4. Install

If the above test worked, then the compiled img2sixel and w3m binaries can be copied into a dir referenced by $PATH, eg /usr/local/bin so you don't have to reference them explicitly each time you start w3m.


OSX Network: "could not save because write access was not granted" We have a really basic network of Macs here in our studio. We keep all our files on a machine running Leopard server, but we're all on Lion.

The problem we're having is every single time we open a file and then try to save it, we get the error

Could not save <FILENAME> because write access was not granted.

The easy work around is to do a save as. The weird thing is if you simply close the file without doing a save as, it disappears from the folder it was in.

I didn't set up our server, but I know we tried to enable all the permissions we could for every user. Thanks for your help.

There are Apple-created bugs in OS X 10.5 "Leopard" client & server when copying files to/from AFP shared volumes.

See more detail in this answer:

No right to open file once copied on the desktop


Swiping trackpad no longer wakes Macbook Pro from sleep in OS X Lion Since upgrading my Late 2010 MacBook Pro to OS X Lion, I noticed that swiping my finger across the trackpad no longer wakes it from sleep mode. Clicking the trackpad or pressing a key on the keyboard does still wake it up as expected.

I can't seem to find any related options in System Preferences, so is there another way to re-enable this feature?

No, I'm afraid Apple has removed this functionality from OS X Lion.  Clicking the trackpad or pressing a key on the keyboard is now the only way to wake your Mac from sleep.


I'm suffering from the excessive CPU use from kernel_task My mac recently has gone wild with kernel_task. It slows down the computer, the fans blow wildly for around ten minutes after startup (shut down, restart or sleep). I did an EtreCheck scan and got these results and don't know what to think of them. Any help?

 Hardware Information:
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2 cores
4 GB RAM

 Video Information:
Intel HD Graphics 4000 - VRAM: 1024 MB

Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0
AirPlay: Version: 1.9
AppleAVBAudio: Version: 2.0.0
iSightAudio: Version: 7.7.3

 Startup Items:
FanControlDaemon - Path: /Library/StartupItems/FanControlDaemon

 System Software:
OS X 10.9 (13A603) - Uptime: 4 days 15:12:46

Disk Information:
APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
    EFI (disk0s1) <not mounted>: 209.7 MB
    Macintosh HD (disk0s2) /: 499.25 GB (398.85 GB free)
    Recovery HD (disk0s3) <not mounted>: 650 MB

MATSHITADVD-R   UJ-8A8

   USB Information:

Apple Inc. BRCM20702 Hub
    Apple Inc. Bluetooth USB Host Controller

Apple Computer, Inc. IR Receiver

Apple Inc. Apple Internal Keyboard / Trackpad

  FireWire Information:

  Thunderbolt Information:
Apple Inc. thunderbolt_bus

 Kernel Extensions:

 Problem System Launch Daemons:

 Problem System Launch Agents:

 Launch Daemons:
[loaded]    com.adobe.fpsaud.plist
[loaded]    com.adobe.SwitchBoard.plist

 Launch Agents:
[not loaded]    com.adobe.AAM.Updater-1.0.plist
[loaded]    com.amazon.sendtokindle.launcher.plist

 User Launch Agents:
[loaded]    com.google.keystone.agent.plist

 User Login Items:
iTunesHelper
gfxCardStatus
uTorrent
Google Drive
CrossOver CD Helper
Plex Media Server

 3rd Party Preference Panes:
Fan Control
Flash Player

 Internet Plug-ins:
AdobePDFViewer.plugin
Default Browser.plugin
Flash Player.plugin
FlashPlayer-10.6.plugin
QuickTime Plugin.plugin

 User Internet Plug-ins:

 Bad Fonts:
None

 Time Machine:
Time Machine not configured!

  Top Processes by CPU:
     2% hidd
     2% Safari
     2% WindowServer
     2% com.apple.WebKit.WebContent
     1% EtreCheck
     1% fontd
     1% Activity Monitor
     0% sysmond
     0% ps
     0% com.apple.WebKit.Networking

   Top Processes by Memory:
152 MB      com.apple.WebKit.WebContent
143 MB      Safari
106 MB      com.apple.IconServicesAgent
66 MB       WindowServer
61 MB       CalendarAgent
57 MB       SystemUIServer
57 MB       com.apple.internetaccounts
57 MB       Dock
53 MB       mds_stores
49 MB       com.apple.dock.extra

  Virtual Memory Statistics:
1.03 GB     Free RAM
2.01 GB     Active RAM
409 MB      Inactive RAM
576 MB      Wired RAM
327 MB      Page-ins
0 B         Page-outs

If you can I would recommend setting up Time Machine on your system. If/once you have a backup of your files then my suggestion would be to use Onyx http://www.titanium.free.fr/ for your OS to clear out some caches, logs, and day to day junk that piles up.

Getting rid of logs, caches, and Spotlight indexes can help your system repair itself.

Once Onyx has run its course and the system has rebooted wait for spotlight to rebuild and see if kernel task still is eating up your CPU. If it does then I would recommend reinstalling the OS. (That's why I like making sure you have a backup of your files before hand)


How can I keep copies of my iCloud documents in Dropbox? More and more of my favorite apps are beginning to include support for document syncing via iCloud.

I like the idea of using iCloud to store my documents, but for several reasons I'm not ready to switch over completely from Dropbox.

Is there some kind of an iCloud-Dropbox bridge or other way of syncing documents between iCloud and either Dropbox directly or the local filesystem of my Mac? Ideally it would work both ways, pulling from iCloud and pushing into it.

I am not absolutely certain, but I believe this is impossible.

For one thing, there isn't iCloud support for simply syncing files. Apps are expected to keep their synced files in their own folders (and are restricted to accessing this folder alone). This means that there's no way to have an iCloud document accessible my multiple apps.

For another thing, even if you were willing to concede and only sync, say, Pages documents with iCloud and Dropbox (hypothetically), Pages for iOS documents are very different from Pages for Mac documents. Here are two screenshots, one of the inside of a Mac Pages document and one of an iOS Pages document, respectively:

Post script: hypothetically, though, if you could figure something out, it would probably involve somehow linking ~/Library/Mobile Documents with Dropbox.


Remove SD card from iMac CD drive I stupidly inserted my SD card today into the CD drive of my iMac. I didn't see where I was putting it in. I can't even feel the SD card by using a piece of paper in the drive.

How do I get the SD card out as I'd rather not have to pay Apple for fixing this.

You can:

Get a piece of card / paper
Cut it out into an L-Shape and fold the _ of the L in half
Get somebody else to hold the computer up so that the CD drive is facing down
Put the piece of paper into the CD drive from the top and slowly, bring it down
When you reach the bottom of the drive, pull the paper out, gently and slowly.

The SD card should come out. You may have to do this a few times before it works - but it's better to try a few times than it is to pay Apple to fix this.


how to eject a DVD from a MacBook? On an older Macbook from 2008 the DVD is stuck in the tray.  Unfortunately, GRUB isn't booting properly so there's no OS.

How can I eject the disk?  It's a slot loaded disk, so no button or tray.

ok, there's an eject button:

I held that down at boot.  Still get the grub error, but at least the DVD's ejected.


What is the fastest way to unlock iPhone X to the homescreen? (rather than double tap, Face ID, swipe up) Needless to say every 0.1 second counts, I want to stay in the flow as much as possible.

Current method of unlocking iPhone X pisses me off is really annoying - it requires 3 independent interactions.

Related: Is there a way to unlock to Home screen without swiping up?

You can raise the phone or press the side-button and then swipe up. You do not have to wait for Face ID to complete in between.

This is much faster compared to double-tap, wait for Face ID and swipe.

There's no way currently to access the home screen faster, for example without having to swipe up.


safari Version 10.0.3 (12602.4.8) and Os 10.12.3 hotmail will not allow login since an up date safari Version 10.0.3 (12602.4.8) and Os 10.12.3 hotmail will not allow login due password fail or allow password reset however it works fine in Firefox and thunderbird .. on the same imac so the fault is 100% safari any ideas ??

found the problem java was not updated I needed to uninstall java then install the latest version it all works fine !!!!

more info :-

https://java.com/en/download/help/mac_uninstall_java.xml

https://www.java.com/en/download/help/mac_java_update.xml


Refunded apps can be redownloaded Until recently apps that have been refunded couldn't be redownloaded from the App Store and I think they couldn't even be bought again.

However, I recently noticed that these apps now show the cloud symbol for being downloaded again free of charge like any other app that has been bought.

Is this just a problem with my Apple ID or is it a general problem? Also, if it is a bug, has it already been reported? (I don't have access to the developer forums.)

You can always submit feedback to apple.com/feedback, you don't need a dev account.


How to run a one-liner shell command using launchd? Below is an example of what I'm trying to do:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Label</key>
        <string>fooLabel</string>
        <key>Something</key>
        <string>/bin/bash foo -arg 1 -arg 2 &</string>
</dict>
</plist>

The plist was added to /Library/LaunchDaemons so it should run at boot for all users, right? The appropriate file permissions were set.

The script needs to run as a background process and also requires network connectivity. How can I make sure the plist doesnt launch until internet access is established?

You want to include this check for network state:

<dict>
  <key>NetworkState</key>
  <true/>
</dict>

Also - you probably want to pass in your program args correctly:

<key>ProgramArguments</key>
<array>
    <string>/usr/local/bin/binaryname</string>
    <string>arg1</string>
    <string>arg2</string>
</array>


I am not able to change my root password on Mac Ok so I need adb for a problem in my android phone. And for that I need my root password. So I tried to change it since I was not aware of it being a thing in the first place. I followed this tutorial https://www.youtube.com/watch?v=NfX5I_mnnYc. But I am not able to change it successfully since it tells me that my password is wrong every time. I am not sure what I am doing wrong but some help would be appreciated.

There is no root user on macOS. You can just use sudo and your admin account password for adb — no need to change any passwords. It’s also very non-typical to run apps as root, so you might need to check with the app maker if you’re considering trying that to verify you are installing the app properly in the first place or don’t have a different error to solve than permissions.

You could have a problem if your Mac account has no password, so set one in the users pane of system preferences.

You can install most command line tools without root, Android sdk tools, too: https://stackoverflow.com/questions/2677431/where-to-install-android-sdk-on-mac-os-x


AppleScript – How can I _get_ UI elements' names, attributes, properties, classes programmatically without "guessing" via AccessibilityInspector? When I started to search for an AppleScript's generic way to "click onto Safari's context menu" of a selected item, there were a lot of questions on "how-to" on several levels of nomenclature.

How can I,  without having to use Accessibility Inspector,  investigate what "categories" of AppleScript UI elements an application is offering and what additional details AppleScript knows about them?

This is a "study" –an attempt– to find pragmatic ways to identify and "use" AS's UI elements:

Code below works in principle but must be adapted to individ. case (e.g.: find second image).
I am not an IT professional so I apologize for a distinct lack of "on error" code – Sorry!
… nor is this meant to be a "Comprehensive Guide" on AppleScript, rather a "Travel Journal".

(BTW: AirBook, i7-3740QM, 8GB. Repeat-loops on "entire contents" may take 70+ sec's.
System: MacOS X High Sierra 10.13.6, Applescript 2.7. Commands may vary with versions.)

I started my search here at Ask Different, my below "results" mostly apply to thread:
How to know the name of UI elements using Accessibility inspector (or any other tool)

  1) How many˜˜ UI elements are there in a "Ask Different" window? …

"Frame":    tell application "System Events" to tell process "Safari"
                set frontmost to true
                set i to 0
Start:          set listItems to (entire contents of window 1 as list)
Next:           repeat with thisItem in listItems
                    set i to i + 1
                end repeat
            end tell
"Result" in
ScriptEditor:   951                -- display dialog ("UIElems:" & i)
               ¯¯¯¯¯

  How many˜˜ elements are there in which different classes? …

Classes:    if (class of item i of listItems is static text) then
                set classCount to classCount +1
            end if
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Results" in ScriptEditor:
static text (376), group˜˜ (337), UI element (166), button (51),
radio button (12), menu button (6), image (2)
(1 inst. each:) toolbar, scroll area, scroll bar, text area, text field,
tab, checkbox, splitter group, splitter

(˜˜ The "static text" you are just now reading is at the end of this "upper" hierarchy:
Group> WebArea> ScrollArea> Group> Group> TabGroup> SplitterGroup> Window
Several levels contain ≈400 real elements: every paragraph & bullet point is a StaticText !)
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  2) How to identify e.g. those 2 images within 951 UI elements & what to do:

  (From here on only differing code-parts, e.g. "Next" are posted; _/¯ = line break.)

Next:       set imgNums to {}
            repeat with thisItem in listItems
                set i to i + 1
Then:           if (class of item i of listItems is image) then
                    set imgNums to imgNums & i
            end repeat
            return imgNums    _/¯    end tell
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" in
ScriptEditor:   {111, 255}     (≈ 70 sec.! Searching 951 items is tedious…)
                ¯¯¯¯¯¯¯¯¯¯

  … or just "context" the first …      (≈ 7 sec.!)

Next:           if (class of item i of listItems is image) then exit repeat
            end repeat
Then:       tell thisItem to perform action "AXShowMenu"    _/¯    end tell

≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  3) How to get at AppleScript's "verbal description" of a UI element?

Next:       repeat with thisItem in listItems    _/¯    set i to i + 1
Then:           if (class of item i of listItems is image) then
                    return (item i of listItems as list)
                    exit repeat
                end if    _/¯    end repeat    _/¯    end tell
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for image 1 in ScriptEditor:
image 1 of group 15 of group 6 of UI element 1 of scroll area 1 ¬
of group 1 of group 1 of tab group 1 of splitter group 1 of window ¬
"applescript - How to know the name of UI elements using Accessibility ¬
inspector (or any other tool) - Ask Different" of application process ¬
"Safari" of application "System Events"
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
[Last three lines may be shortened to "window 1" – it's still in front …]

– which is this image …  … of the above mentioned thread.
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  4) Which attributes are possible for an element, which are factual properties?

Then:           if (class of item i of listItems is image) then ¬
                return (name of attributes of thisItem as list)
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for "attributes" in ScriptEditor:
"AXFocused", "AXAccessKey", "AXTitle", "AXElementBusy", "AXPosition", ¬
"AXLinkedUIElements", "AXSelected", "AXLanguage", "AXStartTextMarker", ¬
"AXEnabled", "AXEditableAncestor", "AXHighestEditableAncestor", ¬
"AXVisited", "AXDOMIdentifier", "AXHelp", "AXURL", "AXChildren", "AXRole", ¬
"AXParent", "AXSelectedTextMarkerRange", "AXTopLevelUIElement", ¬
"AXDOMClassList", "AXSubrole", "AXDescription", "AXFocusableAncestor", ¬
"AXValue", "AXBlockQuoteLevel", "AXRoleDescription", "AXSize", "AXWindow", ¬
"AXEndTextMarker", "AXFrame"

  Which are the factual properties of "image 1"?

Next:           if (class of item i of listItems is image) then ¬
                return (properties of thisItem as list)
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for "properties" in ScriptEditor:
missing value, m.v, {382, 790}, image, "enter image description here", ¬
"Bild", false, "", {241, 118}, "", {}, true, m.v., "AXImage", "", m.v., ¬
false, m.v., "enter image description here"

  Obviously factual properties are not corresponding directly to attributes (19 to 32).

  But some attributes actually can return values if asked directly:

Then:       end repeat
            return value of attribute "AXFrame" of thisItem  _/¯  end tell
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for "AXFrame" in ScriptEditor:   {382, 790, 623, 908}

  Which property is assigned to which attribute? (For exact "AX…" name, see appendix!)
  ... easy solution, found on Apple's developer pages:

Next:       if (class of item i of listItems is image) then
                tell item i of listItems to properties
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for "Bild" in ScriptEditor:
minimum value:missing value, orientation:m. v., position:{382, 790}, ¬
class:image, accessibility description:"enter image description here", ¬
role description:"Bild", focused:false, title:"", size:{241, 118}, ¬
help:"", entire contents:{}, enabled:true, maximum value:m. v., ¬
role:"AXImage", value:"", subrole:m. v., selected:false, name:m. v., ¬
description:"enter image description here"

Well, apparently Apple's own simple command "properties" also returns terms that are actually higher level, like "class:image" and "entire contents:{}".
If you are interested in learning which properties are assigned to which actual attributes try the "appendix solution" (e.g.> "AXFrame:{382, 790, 623, 908}").
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  Which "actions" belong to an element (AXPress, AXShowMenu…) ?

  I DuckDuckGo[ogle]'d (DD'went?) and found a list of "AXActionConstants" on Apple's site:

     "AXShowMenu"      "AXPress"      "AXCancel"      "AXConfirm"

     "AXDecrement"      "AXIncrement"      "AXShowAlternateUI"      "AXShowDefaultUI"

     "AXPick"       Choose a UIElement, like menu item

     "AXRaise"    Cause a window to become as frontmost as possible

     "AXZoomWindow"     Zoom a window to "desktop dimensions" but NOT to "fullscreen".

       NEW! … found action "AXZoomWindow" through UIElementInspector°° © Apple Inc. 2010

.

  How are menu items addressed best?

  (I will soon add my view/findings on these remaining issues.)

≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  How "different" are classes –and UI elements– in various apps?

"TextEdit" is an example for minimalistic "functions" of an application window. (Be aware that
its tools windows (Fonts etc.) have UI elements of their own, many more than the main app!)
Its top "bar" consists of 3 coloured buttons, an image representing the document, its title as static text and a tiny down-arrow, a menu button.
Apart from these there are (potentially) 2 scroll areas (right &
bottom) with scroll bars, also value indicators (their size), and
last not least its "contents", a text area.

Classes of window 1 of TextEdit / Finder / iTunes:
set classNum to classNum & (class of item i of listItems)
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
"Result" for "TextEdit" (16):
button (7), scroll bar (2), scroll area, text area, value indicator,
menu button, image, static text
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
"Result" for "Finder" window in list view with left area with
"devices" etc. , 11 files (208):
UI element (49), static text (49), image (27), row (26), button (19),
text field (12), group (6), radio button (4), column (4), ...
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
"Result" for "iTunes" (26):
button (12), radio button (3), static text (3), pop up button (2),
radio group (2), slider, value indicator, scroll area, text field

"Finder" in list view shows icons & tools (= images), files have names, date etc. (static text), tools are also buttons, file names are also text fields (rename).
"iTunes" (with no TV items "installed") has got 2 pop up buttons (1: music, movies, TV / 2: next, history, song text) plus several sorts of navigation buttons.
All of these applications, though, also have hundreds of menu items: menus, sub-menus, sub-sub-…menus (TextEdit ≈ 350, Finder ≈ 430).

≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
    A P P E N D I X
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈

  Older code to get at "assignations" – but returns exact name! ... THAT took some testing:*

Next:       if (class of item i of listItems is image) then
                repeat with name in (attributes of thisItem as list)
                    try
                        if value of name is "Bild" then exit repeat
                    end try
                end repeat    _/¯    exit repeat    _/¯    end if
            try
                i & k & item k of (name of attributes of thisItem as list)
            end try
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
"Result" for "Bild" in ScriptEditor:    {111, 28, "AXRoleDescription"}
 (Incl.: # of UI element, # of attribute, name of attribute)
¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯
 ({382, 790} => AXPosition, {241, 118} => AXSize, "AXImage" => AXRole …)

  The try-block is necessary since some value-less attributes otherwise cause errors.
  This search on sample page took ≈ 9s. (#111) on THIS page ≈ 135s. (#767) !
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈


iPhone 5s with question on calendar I started a new calendar. Can anyone get in and see my appointments? This is my private calendar to make my appointments. I am starting new job I want to make sure that old boss can't see anything.

If the old boss doesn't have your AppleID & password & you don't explicitly share the calendar, no-one can see it.

You could always change your password if you are in the slightest doubt over that & also sign in to https://www.icloud.com/#settings select Advanced/Data & Security, then Sign out of all browsers.


Are there any alternative Windows audio drivers for the MacBook Pro 13 Mid 2012 to enable the subwoofer? I have Windows 7 X64 installed onto my MacBook Pro 13 Mid 2012; I installed the OS using Boot Camp Assistant from within macOS, and installed the latest copy of the Boot Camp drivers (5.1.5621). Whilst all devices are working as expected, I've noticed that unlike in macOS, any audio that I play back through my speakers from within Windows sounds "tinny" and has no bass. My assumption is that only the left/right speakers are having audio sent to them, and the subwoofer is being left out of the mix - resulting in the somewhat flat sound. Does anybody know of a driver that I could use to replace the one included in Apple's Boot Camp driver set to enable this functionality? This version of the MacBook Pro appears to be using a Cirrus audio codec.

Thanks.

I know this is a rather old question, but by any chance have you found a fix? I wish I could provide more help... but I'm battling with this right now. A lot of other people resort to playing with the "enhancements" to increase volume, but that obviously does nothing to fix how terribly thin the speakers sound when using windows 10.
I wonder if apple does some specific equalizing and attenuation on four drivers to make them sound more full in the macbook enclosure.


Upgrading to Bluetooth 4.0 internally iMac 2011 21.5 (A1311) Has anyone successfully upgraded the OEM internal Bluetooth2.0 to Bluetooth 4.0?

I want to do the upgrade to enable AirDrop with my iPad Pro and iPhone X.

This site OSXWIFI claims it can be done without any soldering or cutting of cables...simply plug'n'play.  It does seem a little pricey though.

Any thoughts?

Plug in an external USB adapter. Much easier and less expensive, even if you’re already in the Mac to repair things.

I have no reason to doubt that part would work since the OS and software all support this and it’s about the hardware receiver that needs swapping whether you do it internally or externally. This works.


Is there a way to pipe the `hdiutil create` into a raw stream without needing to store it first? I would like to do something like
hdiutil create dest_file.dmg -srcdevice /dev/disk3 | curl -TX - PUT \
    -H "Authorization: Token" \
    --output /dev/null \
    "https://uploadlink.com"

so that I do not need to store dest_file.dmg first in order to upload (as I don't have enough diskspace for this). Is there an option to stream the file and upload using hdiutil create?

It doesn't immediately seem possible, no.
The hdiutil tool itself has no option to write to stdout.
It cannot be tricked by using /dev/fd/1 as the output file either.
Creating a named pipe using the mkfifo command doesn't work, as the hdiutil checks for the existence of the file before starting.
In this case it is possible easier for you to simply stream over the raw disk contents, and then convert it to a dmg on the receiving end (depending on which utilities you have available there). In your case it is a simple dmg file, so converting it is just a matter of adding a small footer structure to the end of the file after transferring it.
You could transfer the raw data using a command like:
dd if=/dev/rdisk3 bs=1m | curl -TX - PUT -H "Authorization: Token" --output /dev/null "https://uploadlink.com"


Trying to burn a CD: "hdiutil: imageinfo failed - image not recognized" Using the Application Burn, I saved some music-CD's as image-file to the desktop as .iso, along with the right .isoinfo. Now I want to burn those images to empty CD's, but I get the following error when opening the image file:

hdiutil: imageinfo failed - image not recognized

This error is not directly related to Burn, because it gives this error when I try to open the image with DiskImageMounter (default on Mac) or when I do hdiutil imageinfo image.iso in the Terminal.

I have no idea why this is happening, and Googling didn't provide me with a solution. If someone knows how I can fix this it would be great.

I am running OS X El Capitan (10.11) on a Late 2011 15" MacBook Pro. The images come from several CD's, so it is not the case for one specific CD.

Thanks in advance!

EDIT //
I now ran the command in verbose, this is the output:

hdiutil imageinfo -verbose image.iso
hdiutil: imageinfo: processing "image.iso"
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CUDIFEncoding
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CSegmentedNDIFEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CSegmentedUDIFEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CSegmentedUDIFRawEncoding
DIDiskImageInstantiatorProbe: interface  0, score    -1000, CUDIFDiskImage
DIDiskImageInstantiatorProbe: interface  1, score        0, CSparseBundleDiskImage
DIDiskImageInstantiatorProbe: interface  2, score        0, CSparseDiskImage
CRawDiskImage: data fork length 0x00000000274E2DC0 (659434944) not a multiple of 512.
DIDiskImageInstantiatorProbe: interface  3, score     -100, CRawDiskImage
DIDiskImageInstantiatorProbe: interface  4, score        0, CDARTDiskImage
DIDiskImageInstantiatorProbe: interface  5, score        0, CDiskCopy42DiskImage
DIDiskImageInstantiatorProbe: interface  6, score        0, CNDIFDiskImage
DIDiskImageInstantiatorProbe: interface  8, score     -100, CShadowedDiskImage
DIDiskImageInstantiatorProbe: interface  9, score    -1000, CCFPlugInDiskImage
DIDiskImageInstantiatorProbe: interface 10, score     -100, CWrappedDiskImage
DIDiskImageNewWithBackingStore: probe fails to find appropriate CDiskImage class.
hdiutil: imageinfo: result: 110
hdiutil: imageinfo failed - image not recognized

The Image File created by Burn.app is a RAW Image and does not contain a recognizable filesystem that OS X understands and why hdiutil fails. It's also why an "Audio CD.isoInfo" file needs to be created, so the Burn.app can burn the image it created back to optical media (CD).

Since you created the Audio CD Image with the Burn.app then why don't you just use the Burn.app to burn the Audio CD Image to optical media (CD)?


Does OS X have a setting that will let me apply a Gaussian Blur to the monitor or a specific window? I've seen apps like Isolator which allow one to focus or concentrate on the frontmost window by blurring out the others; I'm looking to do the opposite: blur out the main window (or the entire monitor) and be able to easily toggle it on or off.

My goal: using this with digital art software such as Photoshop or Illustrator, to create the "squint" effect one does to get a different perspective on how your artwork is progressing. I'd like to be able to toggle this on so I can work in "squint" mode for a bit, then toggle it off. Would be great to be able to easily set the blur level as well.

Hoping it can be accessed and toggled via Core Image and AppleScript or similar.

Warning: this is a workaround.

Terminal.app lets you set the exact settings of its window. If you set them correctly, you can get a transparent window with a gaussian blur. If you simply leave a window open in the background in Terminal while doing your work, then bring up Terminal when you want to, this should work great. You can even make the text transparent if you want.