can new Macbook of apple supports simultaneous charging & data transfer through usb type C port? does macbook has capability to handle both charging of laptop & data transfer simultaneously. i have the hub which has three type c connectors 1.) dedicated charger port connected to charger 2.)downstream port of that hub is used for data transfer 3) Type C port which can be connected to Macbook.

i will take care of all CC signals & D+,D- and other signals. I want to know whether apple permits both simultaneous charging & data transfer.

I'm not exactly sure what you intend to do, but at the most basic level the answer to your question is yes.

The Thunderbolt 3 (USB-C) ports on the 2016 and 2017 MacBook Pros can simultaneously support charging and data transfer. However, this will be dependent on the cables/adapters/hubs/docks etc being used. If they support/allow both charging and data transfer then you should have no problems.

In summary, the Thunderbolt 3 (USB-C) ports support each of the following:

Charging
DisplayPort
Thunderbolt (up to 40 Gbps)
USB 3.1 Gen 2 (up to 10 Gbps)

[UPDATE]

If you're after independent verification that multiple features are supported simultaneously, then refer to Using USB-C and Thunderbolt 3 (USB-C) ports and adapters on your Mac notebook. You'll notice, for example, that under the heading USB-C Digital AV Multiport Adapter it states:

  The USB-C Digital AV Multiport Adapter allows you to simultaneously:

  Charge your Mac.
  Connect to other standard USB (USB-A) devices or hubs.
  Connect your Mac to external HDMI video devices such as a TV, projector, or display.

NOTE: Bold emphasis mine.

Now, as I mentioned previously, a lot gets down to what is supported by the individual cable, adapter, etc. For example, even about its USB-C Digital AV Multiport Adapter, Apple says that:

The USB-A port on the adapter supports data transfer at up to 5 Gbps (USB 3.1 Gen 1) and can be used to connect standard USB devices or hubs.
The USB-C port on the adapter charges your computer, but it doesn't transfer data.

Note how the USB-A port on this adapter only supports speeds of up to 5 Gbps, while the MBP supports USB speeds up to 10 Gbps. Also note how USB-C port on this particular adapter is limited to only charging. However, the USB-C port on the MBP is not limited in this way, because the USB-C Digital AV Multiport Adapter connects to it and then provides simultaneous functionality to all three of its ports for charging, USB-A devices and HDMI devices.

Now, depending on your specific model of MacBook Pro (you don't specify), the data transfer speeds may vary depending on the port used. More specifically:

  Thunderbolt 3 data speeds per MacBook Pro port

  MacBook Pro models introduced in 2016 vary slightly in the data speeds
  they provide to each Thunderbolt 3 port:

  MacBook Pro (15-inch, 2016) delivers full Thunderbolt 3 performance on all four ports.
  MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) supports Thunderbolt 3 at full performance using the two left-hand ports. The
  two right-hand ports deliver Thunderbolt 3 functionality, but have
  reduced PCI Express bandwidth.
  Always plug higher-performance devices into the left-hand ports on MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) for maximum data
  throughput.
  MacBook Pro (13-inch, 2016, Two Thunderbolt 3 Ports) delivers full Thunderbolt 3 performance on both ports.

  About USB speed

  For USB devices, all 2016 MacBook Pro models deliver USB 3.1 Gen 2 (10
  Gbps) performance on all Thunderbolt 3 ports.

  Use a USB-C to USB adapter to connect a USB-A device or cable to a
  Thunderbolt 3 port on your MacBook Pro. Use a USB 3.1 (USB-C to USB-C)
  cable to connect a USB-C device.

Source: Connect with Thunderbolt 3 on your new MacBook Pro


How do you change the behavior of the power button in Lion? On my Macbook Pro, whenever you press the power button it goes into sleep mode. How do I change this to do nothing?

You can control whether pressing the power button should put your mac to sleep or present a dialog with options (sleep/restart/shut-down) using the pmset command. The following:

sudo pmset powerbutton 1

will put it to sleep right away (presumably your current setting) and changing 1 to 0 will present you with the dialog.

Pay attention to the fact that it's not a per-user setting, and changes the behaviour for all users. Something to keep in mind if you share the device with others. From the man page (explore it for other options):

  All changes made through pmset are saved in a persistent preferences file (per-system, not per-user) at
       /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist


Macbook Air mid 2013 not charging I have a macbook air mid 2013 model. It worked with no problem till now. Today when I opened the macbook it shows no charge symbol(I mean when you press power button it shows a battery icon in a black screen like iPhone does when its battery is drained).

I connected the charger but there is no led light(green or amber). It is not detecting the charger . I checked the same charger in another macbook.The charger works perfectly.

I tried doing SMC and PRAM reset. Since there is no power in the machine nothing happens. Please help.

The OS is Mavericks.

I got the macbook in London and I am in India now. Will the Apple warranty work internationally?.

Finally, I gave it to the Apple authorised repair centre. They told me IO chip and wire had to be replaced. Since it was in warranty it got it repaired for free.


Use specified quantifier in grep to retrieve satisfied vocabulary I try to grab words from a file:

$ grep -o '\*\*[^*]*\*\*' Principles_20_LifePrinciples.md | grep -v -e "Origin" -e "Etymology"
**circumstance**
**case**
**condition**
**Anxiety**
**anxiety**
**the state of feeling nervous or worried that sth bad is going to happen**
**a worry or fear about sth**
**a strong feeling of wanting to do sth or of wanting sth to happen**

The result I intend is to get only words:

**circumstance**
**case**
**condition**
**Anxiety**
**anxiety**

Refactored code with specified quantifier {,20}:

$ grep -E -o '\*\*[^*]{,20}\*\*' Principles_20_LifePrinciples.md

Unfortunately, it returns nothing.

How to solve such a problem?

Without seeing the full text of the file, wouldn't:

grep -o '\*\*[a-zA-Z]*\*\*' file

work?


Very long login times in Mac OS X I am experiencing an issue with OS X 10.8.3, where it takes a very long time to login. It seems like it has something to do with which network I am connected to.

Explanation of the issue:

I get home from the office and wake my MacBook Air up from sleep
I login with my regular account (in these groups: Admin, Managed, Mobile)
It can anywhere 15 seconds and several minutes before I get logged in

While I'm at the office, it takes less than 1 second to login; it's pretty much instantaneous. The interesting thing is that, it seems like it only occurs the first time I login from home, or subsequent times if the computer has been sleeping for a longer period of time.

It seems like it's somehow related to which wired/wireless network I am connected to; as if it's trying to authenticate with something before logging me in. I've tried many different things (turning on/off wireless, VPN, changing user groups, etc.) but I haven't been able to determine the source of the problem.

Has anyone here experienced something similar?

Many thanks in advance,

– Leif

You mention it is/was a work account. Also that it is a managed account. Would you happen to be connecting up to an Active Directory or other directory account? If so, your directory server could be specifying that your account try and connect up with a network share on login. If your connection is wireless or something that passes login credentials in order to authenticate to the network, this may well create significant lag on login.

To test, fire up Terminal and enter:

dsconfigad -show

If the "Mount home as sharepoint" value is set to Enabled, your account is likely trying to connect to a share on login. To prevent this, simple run the following command:

dsconfigad -sharepoint disable

Note: this is all assume Active Directory connection, being one of the more popular enterprise/work domain services.


Can't add some shortcuts folders to the dock Very strange situation I have two folders that I can't add to the dock in macosSierra, I can add all the other folders correctly.

I check the library\Preferences\com.apple.dock.plist but they aren't too.

I don't now where can I check to solve this problem, the preferences of this folders are the same to the others.

Any ideas?

Operating systems can sometimes do strange things. One of the things I've seen with macOS when it comes to the Dock is that it can sort of glitch when you've been adding lots of items. This seems to happen moreso with folders (especially if you've added one, removed it, and then tried to add it back again).

What always resolves this glitch when I see it, is a simple reboot of the Mac. After rebooting, it accepts the folder. So I'd try restarting your Mac and seeing if that's what the problem is in this case.


Why do I have to Force Quit finder to see my new screenshot files? On my mac mini (OS X 10.9.5), I have to Force Quit Finder in order to see the screenshot jpgs in my /screenshots folder I literally just took a millisecond ago.  Even if I wait a few minutes, I won't see the screenshot jpgs  in my folder until I Force Quit.

Why is this?

UPDATE: After waiting a couple hours without Force Quit, I now see the screenshot jpgs.

Why can't I see the screenshot jpgs instantly like I do on other macs?

UPDATE #2: Updating to Yosemite has solved this issue.

Try this I found on StackOverflow Automator Command to Refresh ALL Finder Windows
Make it into an applescript application.

btw, you don't need to force-quit the finder, you can relaunch it gracefully if you Opt/right click or Ctrl/Opt/left click on the icon in the dock.

tell application "Finder"
    set theWindows to every window
    repeat with i from 1 to number of items in theWindows
        set this_item to item i of theWindows
        set theView to current view of this_item
        if theView is list view then
            set current view of this_item to icon view
        else
            set current view of this_item to list view

        end if
        set current view of this_item to theView
    end repeat
end tell


Can I install OS X 10.10 on a MBP Mid-2015 I buy today? I am planning on buying a MacBook Pro 15" Mid-2015 (not a used one, but a new one directly from Apple). For reasons of running legacy software I would like to install Mac OS X 10.10 on it. When it came out, this MBP was delivered with Mac OS X 10.10.3.

Now, I also know that you can't usually downgrade a system that you newly buy (say downgrade a Late-2016 MBP to OS X 10.10), as it was never available with such an old OS X in the first place.

However, since the Mid-2015 MBP was in fact available with OS X 10.10, I am now wondering: Could I downgrade to OS X 10.10 when I newly buy such a machine today?

Interesting question.

Originally these models shipped with macOS Yosemite 10.10.3. However, my understanding is that current models ship with macOS El Capitan 10.11.2.1

Typically this would mean you can’t install a version of macOS earlier than the version it actually ships with and I suspect that would still be the case here.

However, I don’t recall seeing any firmware updates for this model, so it may be possible to do what you want manually (i.e. you wouldn’t be able to do it from Recovery Mode, you’d have to try booting from an external installer or try using Target Disk Mode).

My inclination would be to say it isn’t going to be possible, but in this rare case it may be.

Hopefully someone else who has tried this can chime in here and give you a more definitive answer. You could also contact Apple and see what they say.

1. Last time I checked (admittedly a few months ago - early this year so well after macOS High Sierra was released) these models were still shipping with 10.11.2. However, I am based in Australia and it could be just a case of how fast production batches are selling. I will check again in a couple of hours and update this answer as soon as I can.

[UPDATE]

I've just had confirmation that models being manufactured now ship directly from the factory with macOS High Sierra installed. My guess is getting one with El Capitan pre-installed is going to be a remote possibility at best, and even then that'd be based on whether your location has older stock.

So, installing an older version of macOS depends entirely on whether there's been a firmware update on that model. Unfortunately, some years back Apple started automatically including firmware updates (if/when required) within macOS updates/upgrades and I'm not aware of any current consolidated list of these updates, so it's not easy to check which devices had firmware updates and what those updates meant. Previously you could refer to this page.

In other words the only way to find out with 100% certainty is to try it, but I'd err on the side of caution and assume this won't be possible. I suppose you could ask Apple if you could return it within the return period on the basis that you can't install Yosemite, but they're likely to tell you up front that it's not going to be possible.

The only way to be 100% sure would be to purchase one of the original ones that hasn't been updated beyond Yosemite, although I suspect that won't be easy to find. You'd also be 99+% sure if you bought an original one that shipped with Yosemite but has since been upgraded. However, if you purchased one brand new today that ships with High Sierra, your odds drop to less than 50/50 in my opinion.


Reformat old windows hard drive for use externally I have an old 100 GB hard drive from a windows laptop that I would like to make use of as a portable, external hard drive. I ordered a cheap case on Amazon and it works fine. However, the disk is still unreadable by my iMac. How do I reformat the hard drive (in Disk Utility?) so that I can use it to just store files for me?

When I plugged my hard drive into my computer, a message came up saying that it was unreadable by this operating system. I opened up Disk Utility and I can view it there.

The main essence of my question is what can I do from an application like Disk Utility that will enable me to use the hard drive for file storage on my mac.

Details on the hard drive:

Case connects to SATA which is an adapter to a USB cable.
Connected through USB 2.0 to built in USB port on my iMac 10.8.2

Have you opened Disk Utility and tried to format it already? Sometimes a drive will not appear on the desktop, but will appear in Disk Utility.

I've had windows drives show up sometimes, and not other times. What you could do to make it more likely to show up is go to an available (hopefully not too difficult) windows machine and reformat the drive as a FAT/MS-DOS drive (don't do quick-format). This should be easier for the mac to see.

Once you can see the blank FAT formatted drive, open Disk Utility and then select it on the left sidebar and erase it again as a "Mac OS Extended (Journaled)" (HFS+) format.

There are other methods like using an emulation environment like Parallels Desktop (IMHO bad SW company), VMWare Fusion (my choice), or VirtualBox (free) (all of these require a windows install disc); or you could even try using programs like MacFuse or NTFS-3G, Tuxera, etc., to mount windows (NTFS) drives directly in the Finder. But unless a mac you can find has one of these solutions, it's probably not worth it to go through the trouble just to erase one drive.

Lastly, I've also had some external USB enclosures not show up on some versions of OS X! So the cheapy enclosure you got just might not work with your installation anyway?

Details that might be helpful for potential helpers:
HD interface PATA/ATA/IDE or SATA?
OS X Version?
iMac model year or identifier?
Enclosure is assumed to be USB 2.0 high speed plugged into built-in port on iMac. Correct if wrong.


Safari: swap alt modifier with cmd I use Firefox and Chrome as my main navigators, but I use sometimes Safari to test some developments.

On Firefox and Chrome, typing an URL in the address bar and then pressing Alt + Return makes a new tab to be opened.

On Safari, typing an URL in the address bar and then pressing Alt + Return makes the target address saved to a file (which annoys me because it makes an unuseful file in my Download folder).

To open a new tab after typing the address, I have to use the Cmd + Return.

I wonder if it is possible to swap cmd and alt key only for Safari (not other apps) and how to do this, or at least make Safari open a new tab when I press Alt+Return in the address bar.

One last thing: I am on Mavericks

Any idea ?

You can use Karabiner with a private.xml such as this:

<?xml version="1.0"?>
<root>
  <appdef>
    <appname>SAFARI</appname>
    <equal>com.apple.Safari</equal>
  </appdef>
  <item>
    <name>Swap ⌥↩ and ⌘↩</name>
    <identifier>SwapAltEnterAndCmdEnter</identifier>
    <only>SAFARI</only>
    <autogen>
      __KeyToKey__
      KeyCode::RETURN, VK_COMMAND | ModifierFlag::NONE,
      KeyCode::RETURN, ModifierFlag::OPTION_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::RETURN, VK_OPTION | ModifierFlag::NONE,
      KeyCode::RETURN, ModifierFlag::COMMAND_L
    </autogen>
  </item>
</root>

You can find the manual here to know how to edit the private.xml file and update your configuration.

You have to check the small checkbox of the newly defined rule to make it work.


Where do iPhone voice memos sync to on my Mac? Is iTunes configured to sync voice memos from my iPhone? If so, where can I find them?

You'll find Voice Memos in

/Users/yourname/Music/iTunes/Voice Memos


Why don't older Macbooks support multi-touch? Why don't older Macbooks (Macbooks with a physical button on them, I think up until 2008) support multi-touch when upgraded to an operating system that supports it?

They are able to distinguish two fingers opposed to one for scrolling and secondary click along with also being able to identify more than 2 fingers. Is there a hardware limitation of some sort, or is it just restricted for some other reason?

Hardware limitations.  Note that Mountain Lion's supported models are for at least partially multitouch-capable trackpads; ML doesn't require you to use, say, a 4-finger swipe.

I haven't used any of my Magic Trackpads with 10.8 yet, but it should be fine.


Can't email Numbers 3.0 or Pages 5.0 documents via Google Mail (Gmail) When I try to email a Numbers 3.0 or Pages 5.0 document via Google Mail, I receive the following error.

It appears that with the new version of Numbers, Apple changed from using files to using folders that appear as files. Gmail will not allow folders to be emailed.

Google Groups Forum: Can't send an email with Apple .PAGES attachment document.


What is website data? When in Settings under Safari>Advanced I see website data. What is this?

Also, what does a hard reset (holding sleep/wake and home button) do?

Website data
When clearing website data, Safari removes cookies, Flash plug-in data, and information from databases, local storage, and the application cache.
Hard Reset
I don't know what the hard reset does exactly. I only know that it does not remove your stored media. This kind of reset is necessary, when neither the display nor the side buttons response normally and the only other option to shut down the device would be removing the battery.


Can I make a bootable drive for mid 2010 MBP with a Windows computer? I have a mid 2010 Macbook Pro running Yosemite that I foolishly did a reset on while it was connected to an external monitor that was designated as default in settings And connected to a USB keyboard and mouse. Now I have the white screen of death on startup.

I have tried all keyboard combos to try to boot into safe mode, single user, reset PRAM, etc and none work. Yes, I know, I mucked up.

My question is; I have a working windows based desktop and is there any way for me to create a bootable image on an external drive (either USB or an external HD) so that I can at least get into some type of diagnostic on the MBP?

Thanks in advance.

Have you tried Command+R when booting to access your recovery partition (if Yosemite created one during installation)? That would be your easy get-out-of-jail-free card.

Otherwise you're looking at seeking the help of some kindly Mac owner who has disc images of the original install discs (or a retail Snow Leopard disc). If you put some contact details in your profile I have a friend who may be able to point you in the right direction. Once you have a disc image you can burn a disc off with any Windows disc-authoring software supporting .ISO files, which is pretty much most of them.


How do you run a script after a network interface comes up? Is there a way to run a script every time a network interface finishes coming up? Or, is there an equivilent answer to this Debian question on OSX?

The following works on Mac OS X 10.11.3 (El Capitan)

Create a file: networkchange.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" \
  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>networkchange</string>
  <key>LowPriorityIO</key>
  <true/>
  <key>ProgramArguments</key>
  <array>
    <string>/Users/Shared/bin/networkchange.sh</string>
  </array>
  <key>WatchPaths</key>
  <array>
    <string>/etc/resolv.conf</string>
    <string>/var/run/resolv.conf</string>
    <string>/private/var/run/resolv.conf</string>
  </array>
  <key>RunAtLoad</key>
  <true/>
</dict>
</plist>

Then, register by running the following commands in Terminal:

launchctl load networkchange.plist
launchctl start networkchange

Note that the script is run by the user registering the plist.


Reformat Time Machine backup drive back to an ordinary external hard drive I have a WDC Passport external drive which I used as a time machine backup. However, I do not want to use it as Time Machine backup anymore, I just want to use it as a regular external hard drive.

How can I do this? Whenever I run the Disk Utility App, I can't seem to find a way to reformat the external drive back to FAT32.

This process involves a few steps within the built-in Disk Utility program, particularly when your partition is encrypted.

Before we begin, note that you should see hierarchy of disks/volumes in Disk Utility. At the highest level, you should see a logical volume group representing your external drive, with at least one Time Machine partition nested underneath it. These two items could both have identical names, e.g., "Time Machine," but they represent different things.

Also, beware that following these steps will delete everything on your external drive.

In Disk Utility, "unmount" (don't "eject") the Time Machine partition.

Erase the Time Machine partition.

Erase the logical volume group, i.e., the higher-level item that contains the partition.


How to convert a drive from the GPT format to the hybrid GPT/MBR format when using High Sierra (macOS 10.13.2) Previous versons of OS X and macOS automatically converted pure GPT drives to hybrid GPT/MBR format when the 2nd, 3rd, and/or 4th GPT partitions were formatted "MS DOS (FAT)" by the Disk Utility application or the diskutil command. I am not sure when this changed, but this no longer happens under High Sierra (macOS 10.13.2).

My Mac needs the hybrid format in order to BIOS boot the installed Windows operating system.

What is a procedure to manually convert the drive back to the hybrid format?

Below is the output from the command diskutil list disk0.

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         249.5 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                200.0 GB   disk0s3
   4:       Microsoft Basic Data COMMON                  50.0 GB    disk0s4
   5:                  Apple_HFS Refind                  200.0 MB   disk0s5

The BOOTCAMP volume is NTFS formatted and the COMMON volume is FAT32 formatted.

  Note: The next two commands were executed after starting up from macOS Recovery.

Below is the output from the command gpt -r show /dev/disk0.

      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  487304680      2  GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
  487714320        496
  487714816  390623232      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  878338048       2048
  878340096   97654784      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  975994880        696
  975995576     390616      5  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  976386192     176315
  976562507         32         Sec GPT table
  976562539          1         Sec GPT header

Below is the output from the command fdisk /dev/disk0.

Disk: /dev/disk0    geometry: 60788/255/63 [976562540 sectors]
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 -  976562539] <Unknown ID>
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused

Here, I assume you are using High Sierra (macOS 10.13.2).

To update the MBR partition table, a mapping of the partition types needs to be known. Below is a table of some commonly found types.

  Note: The mapping is not one-to-one.

            Partition Type              MBR ID              UEFI GUID
--------------------------------------  ------  ------------------------------------
Apple Mac OS Extended (HFS+ or JHFS+)     AF    48465300-0000-11AA-AA11-00306543ECAC
Apple Boot (Recovery HD)                  AB    426F6F74-0000-11AA-AA11-00306543ECAC
Apple Core Storage                        AC    53746F72-6167-11AA-AA11-00306543ECAC
Apple File System (APFS)                  AF    7C3457EF-0000-11AA-AA11-00306543ECAC
Extensible Firmware Interface (EFI)       EE    C12A7328-F81F-11D2-BA4B-00A0C93EC93B
Linux Filesystem Data                     83    0FC63DAF-8483-4772-8E79-3D69D8477DE4
Linux Swap                                82    0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
Linux Logical Volume Manager (LVM)        8E    E6D6D379-F507-44C2-A23C-238F2A3DF928
Microsoft File Attribute Table (FAT32)    0C    EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
Microsoft Windows NT (NTFS) or ExFAT      07    EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
Microsoft Windows Recovery Environment    27    DE94BBA4-06D1-4D40-A16A-BFD50179D6AC

Here are the methods involving in editing the MBR table to create a hybrid partitioning scheme.

Method 1: Use the Third Party Tool gdisk

While booted to macOS, download and install gdisk.

  Note: If you get the popup shown below, then will need to run the Terminal application command shown below before trying to install gdisk.

xattr -d com.apple.quarantine ~/Downloads/gdisk-1.0.4.pkg

  Note: The Terminal application can be found under "Utilities" on the menu bar.

Disable SIP and then boot back to macOS. This will allow you to use the commands gpt, gdisk and fdisk. You also can execute gpt, gdisk and fdisk from macOS Recovery, but this may require you to precede the gdisk command with a path.
The command given below can be used to partially display the information contained in GPT stored on disk0. You will need this information verify the changes made to the MBR table. (See the above question for the output from this command.)

gpt -r show /dev/disk0

Enter the command given below.

sudo gdisk /dev/disk0

Enter the input given below. This input is correct for the drive used as an example in this answer. Your actual input may vary from what is shown.

  Note: The control+C key can be pressed at anytime to terminate the gdisk command without saving any changes.

r
h
2 3 4
y
af
n
07
y
07
n
w
y

  Note: If you encounter the question shown below, enter the answer n.

Unused partition space(s) found. Use one to protect more partitions? (Y/N):

Below is an example of the output after entering the command and the above input.

GPT fdisk (gdisk) version 1.0.4

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): r

Recovery/transformation command (? for help): h

WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.

Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 2 3 4
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

Creating entry for GPT partition #2 (MBR partition #2)
Enter an MBR hex code (default AF): af
Set the bootable flag? (Y/N): n

Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default 07): 07
Set the bootable flag? (Y/N): y

Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 07): 07
Set the bootable flag? (Y/N): n

Recovery/transformation command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk4.
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.

As the above message suggests, it would be a good idea to restart the Mac.
Enter the command given below to verify the changes.

sudo fdisk /dev/disk0

Below is an example of the output after entering the command. Except for the start value of partition 1, the remaining start and size values should match the output from the gpt -r show /dev/disk0 command.

Disk: /dev/disk4    geometry: 60788/255/63 [976562540 sectors]
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>
 2: AF   25 127  15 - 1023 254  63 [    409640 -  487304680] HFS+
*3: 07 1023 254  63 - 1023 254  63 [ 487714816 -  390623232] HPFS/QNX/AUX
 4: 07 1023 254  63 - 1023 254  63 [ 878340096 -   97654784] HPFS/QNX/AUX

  Note: The descriptions <Unknown ID>, Xenix BBT and HPFS/QNX/AUX are either wrong and/or outdated.

If desired, enable SIP.

Method 2: Use No Third Party Tools

Unless you disable System Integrity Protection (SIP), the solution given below requires booting to macOS Recovery via the internet, built-in recovery or an USB flash drive macOS installer. Once booted to macOS Recovery, open a Terminal application window.

  Note: The Terminal application can be found under "Utilities" on the menu bar.

The command given below can be used to partially display the information contained in GPT stored on disk0. You will need this information when editing the MBR table. (See the above question for the output from this command.)

gpt -r show /dev/disk0

The interactive command to edit the MBR partition table is given below. All changes will be not be entered in CHS mode.

fdisk -e /dev/disk0

Entering this command produced the following output

fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1>

  Note: The control+C key can be pressed at anytime to terminate the fdisk command without saving any changes.

The only entry, in the initial MBR table, defines a "Protective Partition". This partition needs to be truncated to the end of the first partition in the GPT with the GUID of C12A7328-F81F-11D2-BA4B-00A0C93EC93B. This means the start value should remain 1, but the size value should be reduced to the value start + size - 1. The values use in this equation should be taken from GPT. Below is the resulting output from using the edit command to reduce the size of the first MBR partition.

fdisk: 1> edit 1
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 -  976562539] <Unknown ID>
Partition id ('0' to disable)  [0 - FF]: [EE] (? for help) EE
Do you wish to edit in CHS mode? [n] N
Partition offset [0 - 976562540]: [63] 1
Partition size [1 - 976562539]: [976562539] 409639
fdisk:*1>

Next, enter the correct values for partition 2. The command is enter and the id is AF. The start and size values are the same as shown in the GPT. Doing so, results in what is shown below.

fdisk:*1> edit 2
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) AF
Do you wish to edit in CHS mode? [n] N
Partition offset [0 - 976562540]: [409640] 409640
Partition size [1 - 976152900]: [976152900] 487304680
fdisk:*1>

Repeat the previous step to update partitions 3 and 4. This is shown below. The id for partition 3 is 07 and for partition 4 is 0C.

fdisk:*1> edit 3
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) 07
Do you wish to edit in CHS mode? [n] N
Partition offset [0 - 976562540]: [487714320] 487714816
Partition size [1 - 488847724]: [488847724] 390623232
fdisk:*1> edit 4
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) 0C
Do you wish to edit in CHS mode? [n] N
Partition offset [0 - 976562540]: [878338048] 878340096
Partition size [1 - 98222444]: [98222444] 97654784
fdisk:*1>

The next command flags the third partition as bootable. This partition was chosen because this is where the Windows resides.

fdisk:*1> flag 3
Partition 3 marked active.
fdisk:*1>

The next command to enter is print. This command displays what the updated MBR table would look like. The result is shown below. You can use the output to verify your changes. Except for the start value of partition 1, the remaining start and size values should match the output from the gpt -r show /dev/disk0 command.

fdisk:*1> print
Disk: /dev/disk0    geometry: 60788/255/63 [976562540 sectors]
Offset: 0   Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 - 1023 254  63 [         1 -     409639] <Unknown ID>
 2: AF 1023 254  63 - 1023 254  63 [    409640 -  487304680] Xenix BBT
*3: 07 1023 254  63 - 1023 254  63 [ 487714816 -  390623232] HPFS/QNX/AUX
 4: 0C 1023 254  63 - 1023 254  63 [ 878340096 -   97654784] Win95 FAT32L
fdisk:*1>

  Note: The descriptions <Unknown ID>, Xenix BBT and HPFS/QNX/AUX are either wrong and/or outdated.

The final command quit writes the table back to the MBR, then quit fdisk. This is shown below.

fdisk:*1> quit
Writing current MBR to disk.
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] Y

As the above message suggests, it would be a good idea to restart the Mac.
If desired, enable SIP.


Hidden gems or tricks in OS X Yosemite (10.10) In addition to this question I'd like to start a new question specifically for the new OS X Yosemite.

As I'm always curious about the announced items, there are many times hidden gems or nice tricks in new OS X versions.

Please share your hidden tricks (one per answer)! Please do not add "default" tricks which are available in all previous versions.

Using currency calculator directly in Spotlight by typing in a number and a currency. Spotlight is automatically showing the most used conversions.


What is the purpose of (and criteria for inclusion in) the "Downloaded" section of the iTunes Library? I've just upgraded to iTunes 12.7, and there is a new item in the Library section of the sidebar: "Downloaded".  When I click on it, I am shown the same set of items that appear in the "Albums" section, but sorted by artist name.

As far as I am aware none of these items were downloaded from the iTunes store: most were ripped from CD with a few downloaded from other online music providers.

What is the purpose of the "Downloaded" section?  Is it an error that it is showing a lot of music that was not downloaded?

How might I see a list of music which was actually downloaded from the iTunes store?

So, as far as I can tell the "Downloaded" section of the iTunes Library is just all music stored on the local machine (i.e., which can be played without needing to stream from the ITMS / iCloud / Apple Music).

The name makes sense if you originally obtained all your music by downloading it, but for the rest of us "Offline" would be a better name for this section.


What are the benefits of earphones with the W1 chip? What are the benefits of Bluetooth ear/headphones with Apple's W1 chip, vs normal Bluetooth ear/headphones?

Are these benefits restricted to use with iPhones, or will they also apply to Macs and/or iPads?

Headphones with Apple's W1 chip will sync between all of your devices using iCloud. That means if you pair W1 headphones with your iPhone, they're instantly available on all your other devices like Macs and iPads. (This requires an iCloud account and macOS Sierra, iOS 10, or watchOS 3.)

W1 headphones are also easier to pair than their Bluetooth counterparts - simply holding the headphones in proximity of a compatible device and pressing a button will allow the headphones to be paired.

These benefits are available on some iPhones, iPads and Macs - though not all devices support them. It's worth noting that even if your device doesn't support the benefits provided by W1 headphones, you can still use them as normal Bluetooth headphones.

In addition, the W1 chip also includes a more robust bluetooth implementation that is supposed to provide a more reliable connection and better battery life. This applies when using W1 embedded headphones with non-Apple products.

According to Apple's webpage on AirPods:

  It produces extremely efficient wireless for a better connection and improved sound. And the W1 chip manages battery life so well, you can listen for 5 hours on a single charge.


iMessage out of whack... how to "reset" I had iMessage working just fine with the latest iOS8 on my iPad, iPhone & Yosemite OSX on my MBP... then after a system restart on my MBP a week+ ago iMessage is all out of whack. It works fine and as expected on my iOS devices (iPad & iPhone), but on my MBP, while I can receive & send messages, I have the following symptoms:

No one resolves to their name... only phone numbers are listed for the other person in the conversation. This includes people I've sent messages to or received.
When I sent a message, I can find the person by name & autocomplete, but when I accept the person from autocomplete, it resolves to their number.
All recipients show up as red... for instance if you hover over the name/number, usually it shows a blue selection box, but for me they are all red.

I've tried signing out & back in, but that didn't work. I don't have any contacts in iCloud as I am on a hosted Exchange (Office 365) where all my contacts are. This is how it was setup since I got my MBP 1yr ago so I know this works and it still works on my iOS devices.

Everything I've seen talks about syncing your contacts to iCloud... but I've never needed to do that in the past and even when I manually copy one contact over, that has their name, email & correct phone number, it still won't resolve them to their name, only their number.

Any ideas how to reset this as everything I'm doing isn't working :(

It's an issue with OS X & Exchange sync. As a workaround, you can use the OWA app by Microsoft to sync your contacts to iCloud:

On iOS there's an app called OWA. Within the app there's a setting within the People section for sync'ing your contacts. Basically it creates a new group in your iCloud called OWA that is a carbon copy of your contacts.

Once I turned this on and saw it sync with my laptop, I got my names resolved and showing in iMessage again!

I have documented a more complete explanation and resolution in Resolving Contacts Sync on OS X - Error SOAPWebServicesErrorDomain.


Identify Missing System Font After installing Sierra and a number of other fonts from Google Web Fonts, I now see the 'question mark' against any list items either within the actual system UI and other applications such as Chrome.

Edit:
I have already attemped two possible solutions:

Font Book for Mac: Restore standard fonts
How to Restore Default Fonts on Mac

Run sudo atsutil databases -remove, then reboot.

atsutil is the CLI for the font registration system. Resetting the database can help clear up errors like this. Also see Check mark disappeared from dropdowns.


Mac Terminal: Avoid password I‘m trying to make a siri-shortcut which let you shutdown your mac.

https://www.icloud.com/shortcuts/7c625a68308740d9b84cc0eaa9353055

The command is:

sudo shutdown -h now

But when I run this command I must enter my password can I do something to run this command without the password?

Sorry for bad english

It could be configured to make sudo skip password prompt for specific command with /etc/sudoers.

# modify /etc/sudoers with visudo
# never open it directly with an editor
sudo visudo

Append the following conf into the file,

Cmnd_Alias SHUTDOWN_NOW = /sbin/shutdown -h now
%admin ALL=(root) NOPASSWD: SHUTDOWN_NOW

Done.


Boot iOS directly into Airplane Mode My phone is switched off and I want to boot into airplane mode directly, without going online for even a split second (so quickly booting and opening control center and tapping airplane isn't an option as I'll be online for a few seconds).

How do I do this? (and no, I don't have a practical Faraday cage or somewhere with no reception available)

You can't do that. You can, however, make it so your phone does not have internet access when it boots.

Remove your iPhone's Sim Card (you can get a sim card remover on Amazon for maybe $3).
Scan for wifi and ensure no wifi is reachable in case the device is paired with a network.
Disable any hotspots (Bluetooth or wifi-based)
Boot up your phone normally, and it will have no method to connect to the internet.

Note that Bluetooth and gps will still be active since you won't be in full airplane mode, so this probably isn't suitable for a plane flight.

Optional: To ensure no pre-existing wifi or Bluetooth connections, perform a factory reset of your phone via iTunes or Apple Configurator or other tool.


Is Aperture compatible with High Sierra upgrade process? If I update the newest software version to 10.13 and apply all security patches, will it delete my Aperture program?

IF you bought Aperture from the Mac App Store, you should be able to re-download it from there from the Purchases tab, even though it’s no
  longer available for sale. (However, I never did, so I can’t confirm
  this.)

I can confirm this is possible to download on High Sierra still and that it is in the Purchases tab.

If you can't find it you may have downloaded it on a different account or it may be hidden, you can unhide purchases from the My Account link.


Does Bootcamp still result in a hybrid MBR/GPT situation? I am running Mojave still (if that matters, but could update to Catalina), and want to dual-boot Windows 10 for the odd occasion when i need to run a program that is windows only.. or debug something.. but crucially don't want to virtualise.

Not being a massively experienced macOS user (only switch this past year), i've read that bootcamp does some funky things with the partition table, resulting in a MBR/GPT hybrid? Is this still the case? Even though Windows 10 has been UEFI for ages now?

I was planning to simply do a UEFI boot from a USB drive with Windows 10 it, and go from there... will i struggle with drivers without Bootcamp, and is that partition still going to be available in something like parallels though?

Thanks in advance!

Based on the information in your question, Windows 10 UEFI boots on your model Mac. Most users use the Boot Camp Assistant to install Windows 10. You do not have to use the Boot Camp Assistant, however the easiest way to download the Windows Support Software (the drivers) is to use the Boot Camp Assistant. Once you have the Windows Support Software, you can install using a flash drive if you wish.

  You can use the Boot Camp Assistant to download the Windows Support Software without actually creating a partition and installing Windows.

You will not need hybrid partitioning to run Windows 10 on your Mac. This is true whether or not you use the Boot Camp Assistant to install.


How can I use my iPhone's contacts with the new Google Maps? The new Google Maps app seems like a good substitute for the inbuilt Maps app, as has been discussed ad nauseam. However, one drawback it exhibits over the inbuilt app is that it doesn't seem to directly integrate with your contacts - and doesn't seem to integrate with any contacts you have stored with Google Contacts/Gmail either (in my case, I sync them with my iPhone, so they are the same set). Are there any workarounds or hacks which can be used to get it do this? The best I've found so far is the obvious - to open the contacts app, copy the postcode (I am in the UK so that's typically precise enough for navigation) and paste it into Google Maps. Is there anything simpler/quicker?

You can try this app, Contacts for Google Maps.

It can create links inside your Contacts that will open the address directly in the Google Maps app.

Edit: I wrote the app.


Turned off iCloud, but still deleted my photos from all devices I got a new phone (iphone 6s) so I wanted to wipe my old one (iphone 5s), once I had signed into icloud on my new device everything was recovered, photos, contacts, apps etc. So I turned off iCloud on my old phone so it wouldn't remove everything from my new phone and laptop. However when I deleted my photos it still deleted them off all my other devices, I have now lost over 1000 photos! It didn't wipe anything else I deleted just the photos! Is there a reason for this? Or anyway I can get my photos back?!

The problem is you misunderstand how iCloud Photo Library works. It syncs your photos so that all devices match at all times. Therefore, when you told it to delete your photos on your old phone, you were telling it to delete them everywhere. You can restore them from the Recently Deleted folder on your Photos app and/or www.iCloud.com.


Can I configure Apple Mail so that it does not cache any mails from Googlemail? I'm using Apple Mail on Yosemite with my Gmail account(s). At the moment I have around 10 GB (!!) of mail database locally. Is there a way to use iMail so that it does not cache anything? It would then basically only work if there is any internet connection.

AFAIK, there is no real possibility to disable the caching on mail.

What you could do is: reduce the IMAP folder size directly in Gmail :

  Settings > Forwarding and POP/IMAP > Folder Size Limits > Limit IMAP
  folders to contain no more than this many messages = 1000


El Capitan Server using SSL on Apache - AH01276: Cannot serve directory El Capitan 10.11.4 Server

I've been accessing a php site I'm developing at http://localhost/myproject/web/
But after I turn on SSL for that route I get a 403

  You don't have permission to access /crm_tollring/web/ on this server.

In the Apache log is :

  AH01276: Cannot serve directory /Users/george/Sites/myproject/web/: No matching DirectoryIndex (index.html,index.php,/xcode/,/wiki/,default.html) found, and server-generated directory index forbidden by Options directive

So, I figure I have to remove the `Options -Indexes' directive from the apache conf for SSL... somewhere?

It seems like the configuration files for running the Apache instance is:
/Library/Server/Migrated/private/etc/apache2/

(even though configs also exist at /private/etc/apache2/)

I checked httpd-ssl.conf, but can't find it there.

Can someone can help me pinpoint the configuration for this?

This is best done not by hand editing the *.conf files, but via the Server app, under Server > Websites > Server Websites (SSL) > Edit > Edit Advanced Settings > Allow Folder Listing


Check if caps lock on in terminal Is there a way to query the system to tell if the caps lock is on or is off from the command line in terminal.app?

There is a great command line code written by Stefenk on Macscripter

Stefen's code allows you to detect for cmd, option, control, shift, and caps lock.

In his post he provides the code and a download zip of it.

You can either download it or build your own in Xcode using foundation project.

I just tested both ways in El Capitan and they both work.

The code if you want to build your own in Xcode.app is:

#import <Carbon/Carbon.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        unsigned int modifiers = GetCurrentKeyModifiers();
        if (argc == 1)
            printf("%d\n", modifiers);
        else {
            int i, result = 1;
            for (i = 1; i < argc; ++i) {
                if (0 == strcmp(argv[i], "shift"))
                    result = result && (modifiers & shiftKey);
                else if (0 == strcmp(argv[i], "option"))
                    result = result && (modifiers & optionKey);
                else if (0 == strcmp(argv[i], "cmd"))
                    result = result && (modifiers & cmdKey);
                else if (0 == strcmp(argv[i], "control"))
                    result = result && (modifiers & controlKey);
                else if (0 == strcmp(argv[i], "capslock"))
                    result = result && (modifiers & alphaLock);
            }
            printf("%d\n", result);
        }
    }
    return 0;
}

----------( update ->

If you want to compile it from Terminal.app

Put the code into a plain text file. I just used TextEdit.app and a Plain text document.

cd to the same directory as your file.  Make sure that the extension is .m ( .c will be ok also)

Then Run.

gcc  -framework Carbon CheckModKeys.m -o CheckModKeys

CheckModKeys.m is your file.

CheckModKeys  is the name of the app to be outputted.

<-)

To detect caps lock your command would look something like:

/Users/UserName/MyFolder/CheckModKeys  capslock

a 1 or 0 will be returned.

1 for on

0 for off

All credit goes to Stefen. I just remembered he posted this way back in`2009. And it still works today..


Can I disable transitions and animations system-wide? I liked the transitions (fade-in, fade-out, sliding) and animations (when switching pages, or apps) when I did not know them. Now, I´d like to disable them everywhere. Is that possible? Is there an app for that? Could an app at all do such a thing?

Good example is:

Lock the Ipad. The screen fades out.

Switch it on -- screen fades in.

Gimmicks like that annoy me meanwhile. Imagine an Ipad that boom! just shows the locking screen, and does not fade it in. I'd prefer that meanwhile.

I think your only option is to Reduce Motion, or perhaps turn off Transparency [which will speed things up but not affect transitions themselves.]

Jailbreak may give you more options, but I've never tried that.

Reduce Motion

Turning of Parallax on older devices can help improve performance, it stops motion effects in the home screen and in some other parts of the system. Switch this off in Settings>General>Accessibility>Reduce Motion. Tap to turn Reduce Motion on (green).

Transparency

Turning of transparency may help, though it the OS won't look as pretty. You can turn it off in Settings>General>Accessibility>Increase Contrast>Reduce Transparency>Switch to On.

Source: How to improve iOS 8 performance on your iPhone or iPad


How to select and move the shapes in Preview An oval shape has been added to an image in Preview.app by using Mebu bar command Tools → Annotate → Oval:

I have no means to move this oval: trying to do so only results in getting handles to resize or re-proportion it:

What is the way to select the shape so to move it? I also did not find any obvious select tool on the toolbar.

Use the keyboard shortcut Command + I to show the Inspector. It will list all the shapes added in the current editing session.
Click on the desired shape in the Inspector. This will also select the shape.

Now use the arrow  keys to move the selected shape, Up ↑, Down ↓, Left ← or Right →.
Press and hold Shift key along with the arrow key to move the shape with faster speed.
Alternatively, once the shape is selected (either by clicking on it or via Inspector), you can also hover the mouse pointer over it until the cursor turns into a white glove. Thereafter, you can click and drag to move the shape freely.


Growl does not pass on Tweets to Notification Center I've recently switched to Mountain Lion, which means that I now have Notification Center.

I'm using the Twitter app by Twitter, and on my previous system I used Growl to display tweets. Now, however, nothing is showing up. Notification center does not seem to care much for regular tweets (without mentions), and suddenly Growl doesn't show them either.

A difference with my previous setup is that I downloaded the newest version of Growl now - it has evolved out of a prefpane and is now an app. I did confirm that it worked, though, as a Colloquy (IRC) mention did show up.

In the preferences of Twitter I did set 'Tweets' to show via Growl.

While creating this question, I figured it out.

Twitter was not yet listed in the Growl preferences as an app that was outputting to Growl. Simply restarting the Twitter app fixed this. Oddly enough this wasn't necessary for Adium or Colloquy.

Works fine now! Channeling the notifications to Notification Center strips them of profile images and the Twitter program icon, so I'm sticking to Growl's defaults.


My iPad is not turning on though charged for one hour and hard reboot I followed the steps explained in the URL below, but still the ipad is not turning on, charged using power adapter (not using laptop) for more than couple of hours and tried hard restart connecting to power and laptop. Still it is neither turning on nor recognized by itunes. I am worried. :(

iPad won't turn on after a complete battery drain

If you followed those instructions for resetting, restoring or recharging the battery in your iPad then you are left with the last line.

  Eventually, you'll need to have the iPad serviced if it cannot wake from sleep due to a very low battery charge condition even when plugged into power.

We have a number of independent phone/tablet repair shops nearby. You may as well. Ask around for a reputable one and have them look at it. Yes you could take it to an Apple store, but if the independent store is good at their job it will likely be faster and cheaper there. But totally your call.


Why doesn't the keyboard appear to type name or number in Contacts? I can't add a new contact as keyboard doesn't appear in the Contacts. I have deleted email account from Settings. Also the Contacts service is on in iCloud.

I have an iPhone 4 on iOS 7.

Delete any other keyboards you're using like emoji etc then it should be fine.

I was facing the same issue and it resolved only when I deleted the keyboard.

Go to settings, general, keyboard and then look if there are any extra keyboards there.


Applescript to click green (zoom) button with Option down Based on Applescript - the activate command makes application "half-active", I wrote the following Applescript which would allow me to click the green (zoom) button at the top-left corner of an window. I want to apply the script to MacVim and others which have the green button as "AXFullScreenButton". But, running the script makes the window to FULL SCREEN rather than a "maximized" window. Can anyone tell what is wrong?

tell application "System Events"
    key down option
    click (first button whose subrole is "AXFullScreenButton") of ¬
            (first window whose subrole is "AXStandardWindow") of ¬
            (first process whose frontmost is true)
    key up option
    set frontApp to (name of first application process whose ¬
            frontmost is true) as string
end tell
tell application frontApp to activate

You can use one of the actions of the "AXFullScreenButton":

"AXZoomWindow" action to maximize.
"AXPress" action to full screen.

Use the perform action command, like this.

tell application "System Events"
    perform action "AXZoomWindow" of (first button whose subrole is "AXFullScreenButton") of (first window whose subrole is "AXStandardWindow") of (first process whose frontmost is true)
end tell


Does iTunes balance transfers when you change country? I noticed there is an option to change country in iTunes (after I signed in).

Does the iTunes account balance transfer from the current country to
new country?
Where is the currency exchange rate (to be applied)
listed? Please provide URL.

I opened my iTunes account in the US in 2009, and then moved back to Norway in 2010. After asking customer support, I learned that I needed to use up (most of) my remaining balance before I could change country, and I lost the remaining balance when doing the switch. (This was no great hardship to me. I had to use gift cards to pay when I was in the US, because my only credit cards were issued in Norway, so the balance was never very high to begin with.)

Of course, that was two and a half years ago, and procedures may have changed since then.


Hard Drive Full, can't figure out why My mac recently started to indicate that the startup disk was full. I went thru and cleaned out all the disk images and videos and other large files that I could find. Emptied trash. Emptied downloads.

If you look at the screenshot I'm having a really hard time figuring out what's in that 659GB.  Any clues?

2012 MacBookPro with 1TB SSD
macOS 10.14.3 with 4 users (me primarily, wife and two kids who rarely use it)
Virtualized with Windows7 via VMWare Extreme
iTunes is not used, no music
iMovie: cleaned library
iPhoto and Photos still installed

A suspicion: From what I've read about when Photos replaced iPhoto that used a pointers system for Photos to point at the iPhoto files from the old iPhoto library rather than creating a new duplicate library. I still use iPhoto for my photography hobby as I can color correct, edit, organize, etc. Photos was imposed on me in a software update.

Anyway, if you look below, the two outer rings are both about the same size.  The outermost ring has the same name as the item at the top of the list on the top right. The next ring has a different name and is slightly smaller. The "storage" button (screen shot above) from "About This Mac" lists a much smaller amount counted as photos (yellow).

Last is the Photos info button results (iPhoto doesnt seem to offer info about the library linked to it)

Assuming your directory is correct, you have the following folders to move off the drive or to thin out:

558 GB photos library
67 GB Windows 7 disk image and files

If you have a good backup, you should be able to simply copy those to an external drive, train them and see that all the space you expect is freed.

The virtual windows files runs great on an external - and thinning it might be tough.

Photos is a little easier to rebuild and clean up - you might need a tool like Power Photos if you don't like merging libraries or have a good strategy to move some files to a secondary library or would be willing to move the primary photos to iCloud and let photos only store thumbnails / free up or "optimize" space on your Mac.

I wouldn't do cloud first unless you are sure you archive the originals or can walk away from photos if iCloud crashes or corrupts things, though.


Can't hear WhatsApp voicenotes on my ear; only on loudspeaker Recently, out of nowhere, I lost the ability to listen to WhatsApp voice notes whenever I take the phone to my ear. When I do, I get the silent logo sign of iPhone, while in fact the phone is not silent. Also the volume is not low and is to maximum.

Whenever I take the phone away from my ear, the voice note plays normally on the loudspeaker.

Ok just open any voice message and take your phone close to ear, now press volume button to make the sound high. Actually you removed the voice totally when you was hearing the message before as some times it’s very loud and we trying sometimes to make the voice less for privacy for sourrondings.


Skype for Mac doesn't remember my password Since my password is stored in a password manager, this also involved opening up the password manager vault to get to just the Skype password and sign in.

How do I get Skype for Mac to remember my password?

By clicking Sign me in when Skype starts
If you are on the latest version of Skype, it supports sign-in using Skype Name or Microsoft account.

If you select, Sign me in when Skype starts it automatically stores the password and logs you in the next time. This worked fine for me on the latest version just now.

On version 7.17 (377), you get the option to select this option from Preferences


Some Software Manager for Mac OS X like Synaptic in Ubuntu Is there some software manager like Synpatic in Ubunut for Mac OS X....
Right now, I am using kind of old Mac OS X 10.5.8 and want to install softare on it...
Like Opera, Firefox...
I don't mind that the versions of browsers I can install on this Mac OS X system are not secure anymore... I will not use it that much... I can still use Safari...
The problem is I don't know which versions of Opera and Firefox I can install...
For example, I installed the newest Opera and now it says :

  You cannot use this version of Opera with this version of Mac OS X.

There are two main systems for unix software on OS X: MacPorts and Fink

Fink is akin to (and iirc based on) the Debian/Ubunutu apt system: it delivers pre-compiled binaries. MacPorts is related to the older BSD Ports collections: rather than pre-built binaries, it containers pointers to the original source + patches required to make that source work on your platform (and with the other apps that you've installed via ports).

There's also a newer tool called Homebrew which I've not used; but it claims to provide better interoperability with things you've installed by hand, and rely more on the native Mac libraries instead of just the installed libraries.

A quick search shows a variety of questions already talking about Macports and Fink and differences between them.

Source: https://superuser.com/a/92885/256923


Is it possible to display an indication that audio is playing in Keynote? I have a presentation in Keynote that has some audio files interleaved with the slides. In composition mode, the audio icon is viewable, no doubt to allow me to click on the item and be able to manipulate it as necessary, but in presentation mode, it disappears.

Is there a built in way to display some sort of icon where the audio file is, and illuminate it whenever the particular sample is playing? There are sometimes multiple files per slide.

I know that I can always put an icon of my own on top of it, and change it when the sample is playing, and change it back automatically whenever it's completed with transitions, but I can't figure out if there's a built in way to handle this already.

Here are 2 possible solutions:

Make the placed audio icon larger then std (53x53 pixel), then move your mouse into that larger region while in presentation playback mode. (The controller is not visible while editing your presentation.)

As with the standard-sized icon, though, this icon will not appear in presentation mode.

To access the audio playback controls while in presentation mode, just move your mouse into the region of the large icon (up to 400 pixel), and the controller will appear.

NOTE: it will require mouse controls during presentation so I prefer the second solution.

Second solution:
There is a possible way, and I think it is the ultimate way to do it:

I would create a video template with something like spinning wheel.

Then I would add your music to the video, and repeat that as many times as you like saving the video each time.

Now you will be inserting video files that are actually meant only to play sounds while showing a little inconspicuous rotating wheel for your information when that file is running.

I would recommend to leave the first and the last video frames empty so the do not show when sound is not playing

Since it is really not a video you are watching you can size it to what ever size you want.


Home Sharing songs greyed out on iPad I connected my iPad to Home Sharing from my laptop. I can play music by pressing shuffle play and pressing next, however I cannot choose which song to play because it is either greyed out (inside albums/artists/etc.) or it is regular but pressing it does nothing (Songs, playlists).

You have to fulfill 3 prerequisites:

1- WiFi has to be on

2- The power plug has to be in (Charger)

3- You must be on same network


Automating Logging Into OS X After System Restart Background

I have a bunch of OS X Yosemite Mac Minis that are used as slaves by a Jenkins master machine to run Selenium tests using Google Chrome.

These slave machines get restarted on a daily basis.

Problem

After the restart, the machines are at a login screen asking for a username and password. Running Google Chrome remotely on the machines fails until a manual login is performed.

Is there a way to automate this login?

Things I have tried

Executing a login script remotely on the Mac Mini using ssh root@<macmini-address> "bash -s" < ./login.sh where login.sh contains the following:

#!/bin/bash
osascript <<EOF
tell application "System Events"
keystroke "<replace with user>"
keystroke tab
delay 0.5
keystroke "<replace with password>"
delay 0.5
keystroke return
keystroke return
end tell
EOF

This results in the following error:

33:49: execution error: An error of type -10810 has occurred. (-10810)

Sending the above AppleScript to the Mac Mini through Apple Remote Desktop (ARD).

This works but on some occasions, ARD is not able to send the script over to some Mac Minis showing a 'Client Software Not Active' message in the ARD status column.

macOS has an automated login feature.

Choose System Preferences from the Apple menu (), then click Users & Groups.
Click the lock  , then enter account password.
If you aren't logged in as an administrator, you're asked to enter an administrator's name and password.
Click Login Options.
Choose an account from from the “Automatic login” pop-up menu, then enter the password of that account.
The account is now set up to log in automatically when your Mac starts up. You might still be asked to log in manually after logging out, switching back from another user account, or locking your screen.

Not all accounts work for automatic login. If you can't select your account, make sure FireVault is turned off and the account doesn't use an iCloud password for the login.


iPhone 4 died and need to know how to retrieve data on flashed phone My iPhone 4 completely died. I got one of my fathers old iPhone 4's and had it flashed at Cleartalk. How can I retrieve all of my data that was backed up on the icloud?

Did you open iCloud on the iPhone 4 and backup your data there? If so, it is pretty easy. Just enter your icloud on your father's old phone using the same Apple account, download data to it, things done.


Restart with the same windows and programs open I have an iMac iOS 10.11.4. When I restarted it, all the programs and windows came back as it was. I do not why, it does not happen anymore. How can I have that feature back?

This is a feature introduced back with Lion, and it is called Resume.
When you are restarting you mac there is a popup menu, that is asking you if you want to reopen windows when logging back.
If you check this box, all the programs and windows should come back as it was.


Sync keyboard shortcuts between macOS computers I have a couple of custom shortcuts defined using System preferences > Keyboard > Shortcuts and I want to sync those between my two Macs.

It seems, this is still not possible using iCloud. Are there any other ways? I thought about including them into my dotfiles, but can not find the shortcuts using the defaults command.

Since you're using dot files, if you know what shortcuts you want to create ahead of time, you can add them to all machines by adding the following defaults write commands to your setup script:

  Per App Shortcuts: defaults write com.developer.app NSUserKeyEquivalents -dict-add "Menu Item" -string
  "keyboardShortcut"

  Global Shortcuts: defaults write -g NSUserKeyEquivalents -dict-add "Menu Item" -string "keyboardShortcut"

...where com.developer.app is the application's bundle ID, and keyboardShortcut is the letters of the keys you want to include, plus the symbols @, $, ~, and ^ representing the Command, Shift, Alt, and Control keys, respectively. For example, -string "@~K" would represent the keyboard shortcut ⌘⌥K.

If you need to sync existing shortcuts, you're going to have to make a more complicated script. I imagine this would involve reading or comparing shortcuts on a source machine via:

  Per App Shortcuts: defaults read com.developer.app NSUserKeyEquivalents

  Global Shortcuts: defaults read -g NSUserKeyEquivalents

...and writing them to a target machine via:

  Per App Shortcuts: defaults write com.developer.app NSUserKeyEquivalents 'outputOfSourceMachine'

  Global Shortcuts: defaults write -g NSUserKeyEquivalents 'outputOfSourceMachine'


How can I fix broken font-rendering in Safari? On some sites (especially this one) I cannot read certain parts, there are only A's displayed.

How can I fix this?

If the problem persists even after attempting my first solution, try using this command in terminal:

mv ~/Library/Safari/Bookmarks.plist ~/Desktop;
mv ~/Library/Safari/TopSites.plist ~/Desktop;
rm ~/Library/Preferences/com.apple.Safari.plist;
rm ~/Library/Preferences/com.apple.Safari.plist.lockfile;
rm ~/Library/Preferences/com.apple.Safari.RSS.plist;
rm ~/Library/Caches/com.apple.Safari;
rm ~/Library/Caches/com.apple.safaridavclient;
rm ~/Library/Safari;
mv ~/Desktop ~/Library/Safari/Bookmarks.plist;
mv ~/Desktop ~/Library/Safari/TopSites.plist;

This will delete all of Safari's (possibly currupt/broken) caches and preferences. In a sense it's like reset Safari to a clean slate. This set of commands WILL backup your bookmarks and top sites, by moving them to your desktop temporarily, and then restore them after deleting the temporary files. YOU WILL LOSE ALL INFORMATION OTHER THAN TOPSITES AND BOOKMARKS.

Just incase, try manually backing up the ~/Library/Safari/Bookmarks.plist ~/Library/Safari/TopSites.plist files.


Find the exact Build Number of a specific Mac OS X update from the command line How do I find the System Build Number or I guess it is called just the Build Number (example 18A391 or  18G87 or 18G5033 or etc. etc.) for a specific Mac OS X updates? Not upgrade, just the regular updates. Examples: Supplemental or Security or Combo or Safari, etc. etc.
I am aware of thousands of blogs and websites that published those type of informations, but let's do a practical example:
Step #1
I download this specific dmg file (Security Update 2020-006 (Mojave)) from: https://support.apple.com/kb/DL2062?viewlocale=en_US&locale=en_US
Step #2
I mount the dmg file and I extract the pkg file.
Now, I do believe that the pkg file that I just extracted from the dmg file it is some sort of xar archive file, so my question is:
using the command line, how do I unzip the xar archive file and after I unzip the archive, what specific plist file I am looking for in order to find out the exact Build Number of this specific Security Update 2020-006 update?
Thank you

The relevant file for that specific dmg is SecUpd2020-006Mojave.pkg/PackageInfo.
After mounting the dmg, do this:
% cd /tmp
% xar -x -f /Volumes/Security\ Update\ 2020-006/SecUpd2020-006Mojave.pkg SecUpd2020-006Mojave.pkg/PackageInfo
% grep -o 'com.apple.pkg.update.*" ' SecUpd2020-006Mojave.pkg/PackageInfo | sed 's/.*\.//'

For updates that have been automatically downloaded to /Library/Updates/, the relevant file is named *.dist. For instance, in 001-48382/001-48382.English.dist there is
<key>macOSProductBuildVersion</key>
<string>17G14033</string>

and also
com.apple.pkg.SecUpd2020-005HighSierra.RecoveryHDUpdate.17G14033


Mountain Lion aggressively hibernates Recently, my MacBook Pro (mid 2012, 15 inch, 10.8.2) has started going into what seems to be hibernate mode after several hours asleep, whether it's plugged in or on battery. When I unplug it, it wakes briefly without me opening the lid (I can tell because the CD drive cycles). If I open the lid, I see it loading the hibernate file before becoming active again.

I looked at the output of pmset -g, and see the following settings that might be relevant to this problem:

lidwake              1
autopoweroff         1
autopoweroffdelay    14400
standbydelay         4200
standby              0
hibernatemode        3
acwake               0

Interestingly, "acwake" is zero, as is "standby". But "autopoweroff" is 1, and the "autopoweroffdelay" is 14400 (4 hours). Looking at the system log from last night, I see these entries:

Nov 26 22:36:28 ITHAA1STHOMAMBP kernel[0]: sleep
Nov 27 02:36:30 ITHAA1STHOMAMBP kernel[0]: Wake reason: EC.SleepTimer (SleepTimer)
Nov 27 02:36:30 ITHAA1STHOMAMBP kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
Nov 27 02:36:30 ITHAA1STHOMAMBP kernel[0]: Previous Sleep Cause: 5
...
Nov 27 02:36:51 ITHAA1STHOMAMBP kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff80de079000, 0xffffff80de0b9000
Nov 27 08:38:21 ITHAA1STHOMAMBP kernel[0]: hibernate_page_list_setall time: 491 ms
...
Nov 27 08:38:31 ITHAA1STHOMAMBP kernel[0]: sleep

I put the computer to sleep by closing the cover at 22:36. It woke itself 4 hours later at 02:36 and hibernated. At 08:38 I unplugged the power to bring the laptop to work, and it woke briefly.

What it looks like to me is that the computer is going into auto power down after 4 hours. But there are some things I don't understand:

Why did this start happening recently (within the last week, as far as I can recall, and not associated with any software update)?
Why does it wake on power change when "acwake" is 0?
Can I just set "autopoweroff" to 0?

ML 10.8.2, mid-2012 15" MBP (non-Retina).

This problem just popped up for me a couple weeks ago: leave MBP sleeping for X hours, unplug MBP, MBP lights/wakes up, enters hibernation.  Really annoying to open the lid only to have it shut down right in front of me.

My acwake was also disabled for both battery and AC.  Which means that the setting is now being ignored.

The solution appears to be (even though it's not referenced in the pmset man page):

sudo pmset -a autopoweroff 0

I should note that this does not affect acwake being ignored.  My computer still wakes up upon AC connect/disconnect, but it's not hibernating or attempting to hibernate after I've unplugged the computer and opened the lid.


Is it possible to set Firefox as the default browser in iOS? Is it possible to search something using Firefox in Spotlight search? When I choose the option "search in the internet" it always open Safari. My question is then, is it possible somehow to set Firefox as the "default" browser in iOS?

I am using iOS 9.1 in an iPad mini.

No, setting the default browser is not supported in iOS. You have an option that I do not recommend, which is jailbreaking: http://www.idownloadblog.com/2014/02/02/make-chrome-default-browser-ios/


Invalid Password El Capitan with Filevault encryption I just recently enabled Filevault on my 2011 Macbook Pro.  As long as I do not run out of battery El Capitan let's me enter my password and log into my computer.

If I run out of battery the password screen is presented after power on and it tells me my password is invalid indefinitely.  At first I reluctantly assumed user failure on my part.  But this is happening everyday now, each time I must enter my backup security key.

After entering the key sometimes it asks me to assign a new password, which I set to what I believe it was before.  Other times it just prompts me to enter my password again as if the screen saver had activated and the password works as intended.

I hope this is clear enough. It's very frustrating.  I'm guessing I might have to disable Filevault.

EDIT

I ran a test:
I entered the password several times while the machine was powered up for root privileges and on wake from sleep. No problems

I then let the battery run out and again was presented with the boot up password screen.  As usual my password was not accepted so again I used the recovery key, only this time I suspect the data on the drive was corrupted in some way as I could not get past the apple boot logo.

I just erased the drive and reinstalled for now.

I found that the problem was faulty ram after doing hardware diagnostic tests.  In order to do this you might need to boot from the Apple "ASD" images.  To find the correct one for your machine this website has a list of which ASD relates to each Mac product. http://www.dannydullin.com/apple-service-diagnostic-asd-reference-list/

After you know the "ASD 3S***" number you can then search Google to download the image files and write them to bootable storage as explained in the documentation stored inside the images.

ASD 3S108
iMac (Early 2006 17-inch)
iMac (Early 2006 20-inch)
MacBook Pro (17-inch)
Mac mini (Early 2006)
MacBook (13-inch)
iMac (Mid 2006 17-inch)
iMac (17-inch Late 2006)
iMac (17-inch Late 2006 CD)
iMac (20-inch Late 2006)
iMac (24-inch)

ASD 3S116
MacBook (13-inch Mid 2007)
MacBook Pro (15-inch Core 2 Duo)
MacBook Pro (17-inch Core 2 Duo)
MacBook (Late 2006)
MacBook Pro (15-inch 2.4/2.2GHz)
MacBook Pro (17-inch 2.4GHz)
iMac (24-inch Mid 2007)
iMac (20-inch Mid 2007)
Mac mini (Mid 2007)

ASD 3S123
iMac (20-inch Early 2008)
iMac (24-inch Early 2008)
MacBook (13-inch Early 2008)
MacBook Pro (15-inch Early 2008)
MacBook Pro (17-inch Early 2008)
Mac Pro (Early 2008)
MacBook (13-inch Late 2007)

ASD 3S132
MacBook Air (Late 2008)
MacBook (13-inch, Aluminum, Late 2008)
MacBook Pro (15-inch, Late 2008)
MacBook (13-inch, Early 2009)
MacBook Pro (17-inch, Early 2009)
iMac (20-inch, Early 2009)
iMac (24-inch, Early 2009)
Mac Mini (Early 2009)
Mac Pro (Early 2009)
iMac (20-inch, Mid 2009)
MacBook Air (Mid 2009)
MacBook (13-inch, Mid 2009)
MacBook Pro (13-inch, Mid 2009)
MacBook Pro (17-inch, Mid 2009)
MacBook Pro (15-inch, Mid 2009)
MacBook Pro (15-inch, 2.5.3GHz, Mid 2009)

ASD 3S138
MacBook (13-inch, Mid 2010)
MacBook Pro (13-inch, Mid 2010)
MacBook Pro (17-inch, Mid 2010)
MacBook Pro (15-inch, Mid 2010)
MacBook (13-inch, Late 2009)
iMac (21.5-inch, Late 2009)
iMac (27-inch, Quad Core, Late 2009)
Mac mini (Late 2009)

ASD 3S139
Mac mini (Mid 2010)

ASD 3S140
iMac (21.5-inch, Mid 2010)
iMac (27-inch, Mid 2010)

ASD 3S142
MacBook Air (13-inch, Late 2010)
MacBook Air (11-inch, Late 2010)

ASD 3S143
Mac Pro (Mid 2010)

ASD 3S144
MacBook Pro (13-inch, Early 2011)
MacBook Pro (15-inch, Early 2011)
MacBook Pro (17-inch, Early 2011)

ASD 3S145
iMac (27-inch, Mid 2011)
iMac (21.5-inch, Mid 2011)

ASD 3S146
MacBook Air (13-inch, Mid 2011)
MacBook Air (11-inch, Mid 2011)
Mac mini (Mid 2011)

ASD 3S147
iMac (21.5-inch, Late 2011)

ASD 3S148
MacBook Pro (13-inch, Late 2011)
MacBook Pro (15-inch, Late 2011)
MacBook Pro (17-inch, Late 2011)

ASD 3S150
MacBook Pro (13-inch, Mid 2012)
MacBook Pro (15-inch, Mid 2012)
MacBook Pro (Retina, Mid 2012)
MacBook Air (11-inch, Mid 2012)
MacBook Air (13-inch, Mid 2012)

ASD 3S152
iMac (27-inch, Late 2012)
iMac (21.5-inch, Late 2012)
Mac mini (Late 2012)
Mac mini Server (Late 2012)
MacBook Pro (Retina, 13-inch, Late 2012)

ASD 3S155
MacBook Pro (Retina, 15-inch, Early 2013)
MacBook Pro (Retina, 13-inch, Mid 2012)
MacBook Pro (Retina, 13-inch, Early 2013)
iMac (21.5-inch, Early 2013)
MacBook Pro (13-inch, Mid 2012)
MacBook Pro (15-inch, Mid 2012)
MacBook Pro (Retina, Mid 2012)
MacBook Air (11-inch, Mid 2012)
MacBook Air (13-inch, Mid 2012)

ASD 3S156
MacBook Air (11-inch, Mid 2013)
MacBook Air (13-inch, Mid 2013)

ASD 3S159
Mac Pro (Late 2013)

ASD 3S162
MacBook Pro (Retina, 13-inch, Late 2013)
MacBook Pro (Retina, 15-inch, Late 2013)
MacBook Pro (Retina, 13-inch, Mid 2014)
MacBook Pro (Retina, 15-inch, Mid 2014)


How do I remove Bedtime in IOS 13 Even though I have Bedtime turned off in IOS 13, it still appears in my alarms, eating up screen space at the price of all my custom alarms that I do use.

Worse, the IOS update turned on Bedtime wake up and set off the alarm hours before I needed to be up today. I’m typing this when I should still be asleep. Stinks!

Unfortunately it seems as thought for now IOS 13.1.3 does not have an option to remove once setup. There seems to be a lot of push back so this may change.

However, in the meantime you can under the bedtime tab in the clock app select the "Bedtime option and disable it, and then go back and ensure that alarms are set and reconfigure if needed.

Ultimately at this time if you have automatic backups turned on and you know when you enabled it you can erase all content and settings which will factory reset your phone and then  restore from that specific backup.


How to change keyboard shortcut for "log out"? I use a third party app for alt-tab, so when I hit alt+shift+tab+Q, the operating system doesn't recognize it as quitting the app. Instead it recognizes it as the log out keyboard command. (The native OSX alt+shift+tab+q will quit the app, however.)

I figure this could easily be resolved if I could change the keyboard shortcut.

OSX 10.7.5, Macbook Pro mid-2011.

You could try changing ⌥⇧⌘Q to ⌥⌘Q with KeyRemap4MacBook.

<?xml version="1.0"?>
<root>
<item>
<name>test</name>
<identifier>private.test</identifier>
<autogen>--KeyToKey-- KeyCode::Q, VK_OPTION | VK_SHIFT | VK_COMMAND, KeyCode::Q, VK_COMMAND | VK_OPTION</autogen>
</item>
</root>


Crontab stopped running after upgrading to mac os 10.8.5 Pls advise what needs to be done to run the crontab on mac 10.8.5.
Here is my problem.
I had a crontab running smoothly on my mac 10.6.8.  Now, after upgrading to 10.8.5, the crontab does not run anymore.
I followed the suggestion in the net and created the /private/etc/crontab file.  Do I have to enter the crontab script into this file? Or do I have to enter the crontab into the file in the default 10.8 folder /usr/lib/cron/tab/ ?  Or do I have to do both?  May be something else.

Thank you.

The crontab job I want to run is the following:
27,57   9,10,11,12,13,14,15,16,17   *   *   *  osascript -e "tell application \"System Events\" to activate" -e "tell application \"System Events\" to display alert \"Do your Stuff\"" > /dev/null 2>&1

I'm running OS X 10.8.5 and use CronniX to setup my cron job, it works just fine in OS X 10.8.5.


Is there a way to auto switch wireless networks depending on signal strength? I have a Linksys dual band router. Near the back of our house (which is where our computers are mostly located) only the G network really comes through so when I'm working in the front of our house, I like to connect to the N network for the extra speed. Unfortunately we are unable to move our router. If it is possible, I would like my Mac to automatically switch networks depending on the signal strength. Is there a way to do this?
Our Macs are running 10.8.
Thanks

Not saying this is ideal or works well. But Just to give you an idea.

You can use command line tools to write a script that checks the strength.
and then changes the network as needed.

To get the strength you can use this command line code:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I |grep -i "agrCtlRSSI:"

Look at the man pages for /usr/sbin/networksetup for changing the setup.

As an example here is a quick applescript.
It only runs once as it is only an example of use.
But in your script I would do it as a LaunchAgent
There is an app called lingon that simplifies the writing of LaunchAgents. LaunchAgents can startup apps, run scripts at specific times, regularly or when something happens.

I hope this helps

set wifi1 to "wifissid1"
set wifi2 to "wifissid2"

try
    set strength to last word of (do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I |grep -i \"agrCtlRSSI:\"") as number
    log strength
end try
set network to do shell script "/usr/sbin/networksetup -getairportnetwork en1"
log network

if strength is less than 50 then

    if network is not equal to "Current Wi-Fi Network: " & wifi1 then

        do shell script "/usr/sbin/networksetup -setairportnetwork en1 " & wifi1 & " &> /dev/null & "

    end if

else

    if network is not equal to "Current Wi-Fi Network: " & wifi2 then

        do shell script "/usr/sbin/networksetup -setairportnetwork en1 " & wifi2 & " &> /dev/null & "

    end if

end if


Restoring a new iPhone from backup fails with no error or message, why? I am trying to set up a new iPhone by restoring a backup of my old iPhone (which has a dead battery and cannot be charged because the lightning port does not work)
I selected to restore from backup on the iPhone and it shows the symbol to connect to my Mac.
I see the iPhone in the Finder and select it, and select "restore from this backup" and select the latest backup of the old phone.
I get the terms and conditions, agree to them, and click "Continue"
Then the Finder window immediately returns me to "Computer" view, the iPhone disappears from "Locations" in the left sidebar, and the phone returns to the image indicating it should be plugged in. I can unplug and plug the lightning cable back in and repeat the process but there's no change.
Unsure what to look for in the Console but a filter would help.
What's going on and how can I debug and fix this?

Performing a Mac OS X update (to 10.15.6 in this case) and then rebooting afterwards mysteriously solved this mysterious issue... I wish I had a better explanation for what happened, but I was not able to get any further information.


One Apple id on two iPhone 4 I am using one Apple ID for two iPhones which seems to be fine,however when I download an app on one iPhone it gets downloaded on the other too. even if I upgrade an app it gets upgraded on the second iPhone as well.

How is that possible and can I disable it ?

Probably automatic downloads are enabled.

You can disable them in Settings → Store as described here.


Is there a real alternative on the Mac to Ctrl+Alt+Delete (not the "force quit" dialog)? Are there any real alternatives to force quit dialog on mac?

Alternative, just a command/app that kills every running app (not process)?

Found how to accomplish what i want:

Create spark applescript command doing do shell script "sudo killall
loginwindow"
Edit /etc/sudoers to allow doing above without password
prompt: Tyilo ALL=NOPASSWD:/usr/bin/killall


iPhone 4 text being sent to home computer-want texts private-only go to text number Suddenly when I text a message on my iPhone it shows up on my wife's new apple computer. I would like messages that are sent out on my iphone to only go to the number text message is being sent to.

This is built into Messages (the application) so any texts that you send over iMessage (in blue instead of green) will be shown on your computer.

To remove the iMessages account from the Messages application open Messages on the computer you would like to remove it from.

Messages->Preferences->Accounts->iMessage

then disable the account or click the minus sign if it is available.


necessary access permissions I have just installed a ssd drive into my iMac mid 2010 formatted the drive and installed Maverick and migrated only my applications from the old system drive which is now in a dock station. all when well but I cant save an image from Photoshop or any onto the new drive, an image from the firefox....

message:
"Could not save as “Untitled-1.jpg” because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder"

Info on the new drive has sharing & permissions- System (R&W), Wheel (RO), Everyone (RO)

what do I need to do??

Reset Your Home Folder Permissions and ACLS:

1) Boot into your Recovery Partition holding down command + R at the startup chime

2) Select 'Terminal' from your Utilities Menu Bar

3) Type: resetpassword

4) From the window that appears, select your boot volume and the appropriate user account

5) Click the Reset Tab under Reset Home Folder Permissions and ACLS

6) Close the pane and quit Utilities

7) Select your boot volume when presented with choose startup disk and reboot your machine

Edit (Courtesy of @Buscar's Point):

If you don't have a Recovery Partition present, you can perform the same reset while logged in using the Terminal Command below. Triple click the line, copy it, and paste it into your prompt. Supply your password when asked:

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null

Command credit goes to Linc Davis of Apple Support Communities.


16GB RAM 1067 DDR3 not Booting on MacbookPro7,1 (13 in Mid 2010) I have a mid 2010 13in MacBook Pro (7,1) with a 2.4GHz Intel Core 2 Duo processor running OS X 10.11.3 (El Capitan). I had 4GB of RAM (2x2GB) and I read somewhere that despite Apple's stated max of 8GB RAM (2x4GB) it will actually support 16GB (2x8GB) of RAM. So I bought Crucial RAM 16GB.

I installed both sticks in both slots and booted up, but the screen stays black and no chime. The sleep light on the front stays on (no blinking) but nothing happens after several minutes.

So I tried it with one of the new 8GB sticks and one of the old 2GB sticks and that works. Boots, starts, shows 10GB RAM (8 and 2) in the profiler.

Supposing it might be that one of the new sticks was bad, I tried every permutation of old with new and both 8GB sticks are good.

I read something about the firmware possibly being an issue, but I checked and I have the latest firmware according to this: https://support.apple.com/en-us/HT201518

Any ideas on how to get both sticks of 8GB to work together for a total of 16?

Also, if I can't get both to work, are there any reasons why I shouldn't do on of the old 2GBs and one of the new 8GBs together for 10GB?

The MacBook Pro (13-inch, Mid 2010) has, 2 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM Memory Slots in which Apple says the Maximum Memory is 8 GB.

In order to utilize 16 GB you need, 2 x 8.0GB PC8500 DDR3 (1066 MHz 204 Pin) running Mac OS X 10.7.5 Lion or later and the latest EFI Boot ROM version Firmware for the model Mac you have, which should be MBP71.0039.B0E.

Assuming the link for the RAM you provided for what your purchased is actually what you purchased then therein lies the issue as it is PC3L-12800 1600 MHz and is not compatible with the MacBook Pro (13-inch, Mid 2010).

Crucial does not sell, 2 x 8.0GB PC8500 DDR3 (1066 MHz 204 Pin) SO-DIMM for the MacBook Pro (13-inch, Mid 2010) however OWC does.

See: OWC Memory 16.0GB 2 x 8.0GB PC8500 DDR3.


When I upgrade from 10.12 to 10.13 High Sierra - where do incompatible items go? Does the upgrade from macOS 10.12 Sierra to macOS 10.13 High Sierra remove any extensions, kernel extensions, Applications or settings that are known to be incompatible or disabled?

I looked briefly at /var/log/install.log and see there are over 20,000 lines of things that were logged during the migration and it looks like a lot of things were moved to /Volumes/whatever/Recovered Items but that directory is now deleted and cleaned up.

Additionally, there appears to be a runtime check of this: Sep 10 16:53:56 MacBook osinstallersetupd[514]: Retrieved package com.apple.pkg.CompatibilityUpdate (http://swcdn.apple.com/content/downloads/47/49/031-75970/fhywgjppj47p6n4udnsqtyszmwfwjt78aj/OSX_10_12_IncompatibleAppList.pkg) package that now has a 404 not found error.

Are there places to look for what was removed from a specific Mac post upgrade if there's not a more comprehensive list of things we can check before an upgrade?

Incompatible items are moved into a folder at the root of the drive when migration or upgrades happen.

https://support.apple.com/en-us/HT201861

  The software is moved to a folder named Incompatible Software, at the top level of your Mac startup disk.


How to disable Wi-Fi temporarily with timeout on iOS? Is there an app or something to disable Wi-Fi on iOS but automatically re-enable it after a specified time?

This is not possible as iOS apps are not able to control system hardware such as Wi-Fi.


Pass parameters upon invocation of Applescript I am writing an applescript to automate some iterm-related repetitive tasks.

I need to find out what is the appropriate way of accessing parameters from the script, say as in

on run {input, parameters}
    set appName to "iTerm"
    if application appName is not running then
        tell application appName to activate
    end if
    tell application "iTerm"
        tell current session of current tab of current window
            write text "cd {param1}"
        end tell
    end tell
    return input
end run

...where I should be able to perform (assuming the above is saved in myscript.scrpt) sth like

./myscript.scrpt /path/to/somewhere

and the corresponding line would execute

write text "cd /path/to/somewhere"

Your run handler looks lifted from Automator, but your desire to have it as a script invoked from the shell suggests it's designed to be run independently of Automator.

Here's an edited form of the script that you can copy and paste into a terminal (like iTerm):

(:(){ paste - << SCRIPT > "$*" && chmod +x "$*"
#!/usr/bin/env osascript

on run {input} # Don't need the parameters arguments
    # set appName to "iTerm"
    # if application appName is not running then -- Not necessary since
    #    tell application appName to activate    -- activate will open it
    # end if

    tell application "iTerm"
        activate
        tell current session of current tab of current window
            write text "cd " & quoted form of the input
        end tell
    end tell
end run
SCRIPT
} ; : /path/to/my saved script )

This combines several tasks into one, namely creating a script file into which the applescript text is saved, and then made executable.
Then to invoke:

"/path/to/my saved script" "/folder/path/parameter"

Although, if you're going to be running this from within the terminal anyway, I'm curious why you want to involve AppleScript at all.  You can just do this:

cd () { command cd "$( eval echo "${*-$HOME}" )" ; }

This re-defines cd so that doesn't need to quote the path they pass to it.  It's just an example, and you can replace cd () with whatever name for a new function you wish to create, and insert whatever commands you want inside {...}.


Can I connect the iPad 2 video out to an iMac? This is not a AirDisplay question, it's about the HDMI connection.

I don't have a TV. I use my main computer, a 27" iMac, for watching movies.

The iPad 2 has HDMI out and games can output to 1080p while using the iPad as a controller, as seen in the recent RealRacing HD announcement.

Does anybody know if it will be possible at all to use an iMac screen, and its mini display port, in place of HDMI out?

Yes you can do it using an Active HDMI to MiniDisplay port adaptor like  this  but as you can see it's not cheap