Assign monospaced font family to selected text with keyboard shortcut in mac os x

I've been looking for doing this for a very long time.

I finally managed to end up with something that really works great for me, with the help of Alfred and Highlight CLI tool.

Here is the Alfred script portion :

query="{query}"
if echo $query|grep -e "^__SHORTCUT__"
then
    echo "$query"|sed -E "s/^__SHORTCUT__//"|pbcopy
    syntax=txt
else
    osascript -e 'tell application "System Events" to keystroke "c" using {command down}'
    syntax=$query
fi

pbpaste|/usr/local/bin/highlight --syntax $syntax --font Menlo --font-size 12 --out-format=rtf|pbcopy
osascript -e 'tell application "System Events" to keystroke "v" using {command down}'

Make sure the shortcut trigger adds __SHORTCUT__ to be recognized and argument is "Selection in OSX" :

Short demo https://youtu.be/y8NJT52APRQ


There's an online LaTeX editor here: http://www.codecogs.com/latex/eqneditor.php

To express the example you gave, just enter this in the box:
_{6}^{14}\textrm{C}

The site will generate the image for you


Are dustproof screen protectors for real?

The point of these protectors is not to keep dust off the screen protector but the device. They are Scratch/Dust resistant. With all protector, they will get scratch, your device will not. That is what they are say, not that it will help your screen, but your device.


iPad mini vs iPod touch 5g for developing

I think it makes sense to go for the iPad mini. This is because you can simultaneously test both iPhone AND iPad apps. The iPad mini will run iPhone-only apps in a reduced-screen screen mode, and will run iPad apps as normal. An iPod touch will only run iPhone-specific apps.


Change ownership of all files, from one owner to another

As starter I would suggest you run the "repair permission" function in disk utility.

If the problem still persists you could run a command like:

find . -user old_user | while read file; do echo chown new_user  $file; done

note: this doesn't do anything as is now - you will need to adjust it to your needs - and make sure it does nothing bad.

update learnt some more and now I would run a command like this:

find . -user old_user -print0 | xargs -0  sudo echo chown new_user

again adjust the command before you run it!


System kexts are protected by System Integrity Protection (info)

  Originally introduced with OS X El Capitan, System Integrity Protection, usually referred to as SIP, is a security feature built into the Mac operating system that’s designed to protect most system locations, system processes, and Kernel extensions from being written to, modified, or replaced.

So you won't be able to remove this kext unless you disable SIP which is not recommended.


Is there a way to enable HiDPI scaling for external monitors on MacOS?

Use SwitchResX. It allows you to enable HiDPI mode. It also offers the possibility of "faking" a HiDPI mode by scaling (I use a fake 1080p HiDPI on my 2K thunderbolt display). No remarkable performance issues reported.


You know the old saying:  "If you have to ask...."

It could be any/all of those things.  If it was a grey screen with a flashing question mark, your chances would be very good that it was just something a hard drive and a OS reinstall would fix.

But seeing that you (or the seller) didn't mention this, it could be something more.  Then again, it could be nothing.  That's the problem with buying these things sight unseen - you are rolling the dice.

If you can get the seller to run Apple Diagnostics (hold down D  while powering on) and select "Extended Tests"  It will run through a battery of tests and then provide you with a diagnostic report.

The downside to this is that you've just shown all the cards to the seller which might now change the price.

Now, while I can't give you a definitive technical answer, I can share with you some of my personal experience:

My daughter has a 13" 2014 MacBook Air which she spilled milk on (trust me, I cried).  The logic board from Apple was costing $750+.  On eBay, used logic boards were going for $500+.  I thought I would try and get a "broken" MBA and see if I could salvage the parts.

Every single one that I purchased (a total of 5 from 5 different sellers) all had more wrong with them than was stated, but all insisted that "they didn't know what was wrong with it."  Several had more damage than they let on, and most importantly all had liquid damage but none listed this fact.  Liquid damage is very identifiable, especially when they remove the moisture indicator strips.  Thank goodness for eBay's and Paypal's buyer protection.

Would I buy non-functioning Macs in the hopes of servicing them?  Sure.  But I would get my hands on them first.


How to add "All my Files" back to Finder sidebar?

Aha, found it!

MacWorld's May 2017 Mac 911 article How to show the All My Files icon in the macOS Sidebar points out that there is a menu in preferences:

click All My Files and it's back:


You can double tap (not click) to smart zoom.


Reduce Transparency Keeps Turning Itself Off

The symptoms you describe are likely caused by the preference not getting saved to disk. This is caused by a problem with the file permissions, or if the preference file somehow got corrupted.

If this is the case, you can move the preference file (I think the relevant one is ~/Library/Preferences/com.apple.universalaccess.plist) from its location: this will cause the preference file to be recreated.

Of course this will work also for other preferences (though identifying the correct file isn't always as easy); remember to keep the file around (instead of deleting it) so you can restore it in case this fix doesn't work.


Finder sort order not alphabetical (again)

This was an easy fix... The naming scheme of my bank actually changed, from Konto_cccccccc-Auszug_20XX_NNN.PDF to Konto_cccccccc_Auszug-20XX_NNN.PDF, which is kind of invisible to the human eye. Thanks for @Tetsujin for the recommendation to eliminate typos by copying one name to another!


Launchd - Run as if you're logged in as a user using sudo

You put the plist into /Library/LaunchDaemons but edit it to say which user the script will run as

The key you need to add is UserName. For example I run a newserver as user _news

<key>UserName</key>
<string>_news</string>

Documented in Apple's launchd man page


You should be able to mount the dd image.

Transfer the file to your Mac, add .dmg as file extension and open the file

or

Transfer the file to your Mac, attach and mount it with hdiutil:

hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ~/path/to/file

and with the printed device identifier:

hdiutil mount /dev/diskXsY

Then check with tmutil destinationinfo if the now mounted backup volume is associated with the Mac. If a reassociation is necessary check the inheritbackup and associatedisk verbs in man tmutil.


How can I view the current price of an app I've previously purchased?

The best place I have found for this information is AppShopper.com. They list all of the current apps on both (iOS, Mac) app stores. They track the current price as well as the price history and update history for the app.


El Capitan: 2 displays but keep dock to Laptop display

As your monitors slightly overlap to the left, the Dock moves there.  The only way to change this, to my knowledge, is to move the dock to the bottom.

Open System Preferences
Select Dock settings
Select the Bottom radio button in the Position on screen: setting


I don't think you can do this with press and hold, but you can press:   option + "u" then "a" to get "ä". I find it quicker than pressing and holding the key.


Surface Pro to Apple thunderbolt display 27

Nope, not possible, Apple Thunderbolt Display requires a Thunderbolt port which the Surface Pro and Pre-2011 MacBooks don't have (even though mini-DisplayPort have exactly the same connector).


Tis easy: If you don't mind usig an app skip to the bottom. If you want to do it manually and distrust apps that tinker with your system, continue reading.

There are actually two ways:

1) the way I don't prefer since you may accidentally lose your original background image if you don't back it up

a) change /System/Library/CoreServices/DefaultDesktop.jpg
 - it's that simple!

2) the way I prefer since it's easy to revert to default: it may look complicated, but all it does is tell the OS to look in a different folder for the desktop picture

A “settings” file will be changed. Navigate to “/Library/Preferences/” on the hard drive where OS X is installed. There should be a file named “com.apple.loginwindow .plist”. Make a copy of the file in the same folder, and name it whatever you want: it is a backup just in case something goes wrong. Once again, administrative rights are required. After that, double-click the original file to open it.
The file should open in either a property list editor or in a text editor. If it opens in a plist editor, select “root” and click “Add Child” (or the equivalent, depending on what plist editor). Name the new child “DesktopPicture”, make it type “String”, and set its value to “/Users/Shared/Pictures/LoginBackground/DefaultDesktop.jpg”. Unless you know how to edit plist files using a text editor , I recommend downloading a property list editor (at http://www.apple.com/downloads/macosx/development_tools/plisteditpro.html)  if you don’t have one, since it makes alot of business alot easier sometimes. Don’t close the application yet.
The value of the key you just entered above is the path to where your background file will be stored. Change if you would like. Make sure the system can access the folder (meaning that it can’t be a user folder, only shared folder or some other system location). Now, save the plist file. This may require saving onto the desktop and then dragging it into the destination folder, replacing the original. Hopefully you didn’t delete your backup.
Navigate to the path/value you entered. If the folders don’t exist, create them.
Now, just move a picture into the folder with the name you specified in the path (in my case/example, it is called “DefaultDesktop.jpg”) and you’re done!
If OS X can’t use the picture, it will display a generic blue screen. If this happens, make sure the picture is named right, and that permissions (right click -> get info) are set so that “everyone” has “read & write” permission. If it still doesn’t work, and you want to switch back to default, just replace your edited com.apple.loginwindow.plist with your backup which you hopefully still have. If you deleted your backup, just ask me for the original.

Of course, to do this non-manaully in Terminal:

sudo -i
defaults write /Library/Preferences/com.apple.loginwindow \
DesktopPicture '/path/to/replacement/image/file.jpg

There are also multiple free apps out there on the web that let you do this even quicker, including Loginox, NanoCustomizer, etc. etc.

As a side note, if you're not administrator, you may be kind of out of luck.


Batch convert text to audio files, retaining file names

You didn't specify an audio format but try the following in terminal in the directory containing your text files.

for f in *.txt;do say -f "$f" -o "${f%txt}aif";done

See this answer on superuser for other solutions.


How to remap a single key in Language Input

If you are using the Bulgarian phonetic keyboard layout you can simply enable a Karabiner preset. Search for "Bulgarian" and enable "map ч to ±":


How "official" is libressl support in High Sierra?

MacOS provided openssl-0.9.8 (when the world was using 1.0.2, and contemplating 1.1 and 1.1.1) until High Sierra release. Now in MacOS 10.13.5 it's libressl-2.2.7, while the current libressl is 2.7.4.

It looks like MacOS-provided LibreSSL does not come with any engines, and it is unclear whether it's possible to even add an engine to it. That means - no openssl using keys on hardware tokens accessible via PKCS#11, no hardware RNG accessible via PKCS#11 or RDRAND, etc.
UPDATE: It also doesn't seem to have the include files required to compile your applications. So it seems that you cannot build your software against MacOS LibreSSL even if you wanted to (well, you might be able to by downloading LibreSSL-2.2.7 yourself, etc. - but I'm very sure it isn't worth the hassle).

Since I don't want to write code that runs only on Mac, I can't afford to get stuck with Apple Secure Transport or such.

Therefore my personal recommendation would be to install and work with a "real" openssl, installing it via Macports (as I did for the "production" stuff on my systems) or Brew. In that case, the package maintainers would track the updates and security fixes for you, but you maintain compatibility with your Linux code with minimal efforts.


How much faster is the flash storage on the MacBook Air than SSD?

It's still a SATA interface, just miniaturized, hence it's name mSATA.
There is a great picture at the following link that shows just how tiny an mSATA drive is compared to a regular 2.5" laptop hard drive.
Intel's SSD 310: G2 Performance in an mSATA Form Factor


When Screen Sharing, why does the remote screen continually go black?

I'd second the idea that it may be a RAM issue -- I'm noticing that it happens particularly when:

I've got huge uptime on the remote system (so... memory leaks, cruft, have accumulated)
I switch apps on the remote system (loading things in and out of RAM)

From practical standpoint, I've found that greping for the the screen sharing daemon and killing it forces the remote machine to respawn a new one that isn't blacked out... but that doesn't last for long:

ps aux | grep screensharingd

and then sudo kill XXXX once I know what what procid I'm targeting. But that's a really short term solution (buys another 15-90 seconds, usually).

The finger the I would also point is at mdutil, the spotlight indexer, which just gets out of control, especially on a system with a lot of large drives with a lot of small files. I've had best success clamping down on Spotlight (which, imho, isn't very useful) and restricting it by either marking most of my drives and directories "private".

If the remote system is tight on RAM, it may be because Spotlight is being a pig.


Cannot update Mac OS. "There was an error in Software Update preferences." Mojave

I had a similar error. I my case, I think it was caused by a borked system or Xcode update (not sure which or if something else entirely).

I was able to get everything back to normal after updating from the Terminal command line using softwareupdate. You can see all the options with

softwareupdate --help

What worked for me was just to install everything that needed to be installed, which I assume included the broken installation, using

sudo softwareupdate --install --all

After a shutdown (not reboot) per the instructions, my computer performed a solid update and all was well.


Which exact Windows 7 ISO is required for Boot Camp v6.1.0 on macOS High Sierra? Mid 2010 MBP

Steps to Install Windows 7 without Using the Boot Camp Assistant

Although a Windows 7 can be installed without using the both the Boot Camp Assistant and a Windows 7 installation DVD, the using a the DVD greatly simplifies the procedure. Since you have a working optical drive, I the steps given below will include using this drive.

  Note: According to Apple, you need a Windows 7 DVD with Service Pack 1 (SP1) included.

Create the Flash Drive with the Windows Support Software

Use the Disk Utility to erase a 8 GB or larger flash drive. For name, use WSS. For format, use MS-DOS (FAT). For scheme, use Master Boot Record.
Download the "Windows Support Software" for you Mac from the website Install Windows 7 on your Mac using Boot Camp.
Copy the "Windows Support Software" to the flash drive.
Under Safari preferences, select Advance. Make sure Show Develop menu in menu bar is checked off. See image below.

From a window opened in Safari, go to the website https://sourceforge.net/projects/gptfdisk/. While at this website, select Develop->User Agent->Microsoft Edge from the menu bar, then click the Download button on the webpage.
From the downloaded files, copy gdisk64.exe to the root folder on the flash drive.
Either close the Safari window or select Develop->User Agent->Default from the menu bar.

Install Windows 7

  Note: If during the installation of Windows, the Mac restarts back to macOS, then open the "Startup Disk" pane of the "System Preferences" application and restart back to Windows. The installation of Windows will continue from where it left off.

Use the Disk Utility application to partition the internal drive.  Add a new partition named BOOTCAMP with the format MS-DOS (FAT).

  Note: after partitioning completes, you may have to quit and then open the Disk Utility application to see the correct results.

Insert the Windows 7 DVD in the optical drive.
Insert the Windows Support Software flash drive in a USB port.
Restart the Mac and immediately hold down the option key. Release the key when the Startup Manager icons appears. Select the icon labeled Windows.
When the window below appears, select Custom (advanced).

The BOOTCAMP partition should be either 3 or 4. Remember the number, you will need this later.
Press the shift+F10 key combination to open a Command Prompt window.
Enter the command shown below. Remember the drive letter (name) for the  WSS volume.

wmic logicaldisk get name,volumename

Enter the command below to execute gdisk. If drive letter (name) for the WSS volume is not D:, then make the appropriate substitution.

D:\gdisk64 \\.\PhysicalDrive0

Change the type of partitioning to hybrid. If the BOOTCAMP partition is number 3, then enter the commands given below.

r
h
2 3
y
ff
n
07
y
n
w
y

Otherwise, if the BOOTCAMP partition is number 4, then enter the commands given below.

  Note: If macOS is using encryption, the substitute ac for af below.

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

Enter the exit command to close the Command Prompt window.
Click on the Refresh button.
Select the BOOTCAMP partition. Before clicking the Next button, you will have to format the partition by first clicking on Drive options (advanced), then clicking on the Format button.
After finishing installing Windows 7, execute the setup application on the Windows Support Software flash drive.


Grey screen after login - Blue Screen of death from CMD+R

Though I didn't experience the blue screen, this does sound a lot like the issue that I described in Boot hangs on grey screen (even when booting from USB drive with fresh OS X install) (I posted as a different user since I didn't immediately have my StackExchange credentials handy).

It seems there are an increasing number of people experiencing failure to boot due to the GPU having died. I'm in Australia and we have just (and are still in) a bit of a heat wave which may have exacerbated the problem.

Anyway, it may be worth trying the steps I outlined in the Q&A I referenced above, particularly booting into Single-User mode and moving the ATI and AMD related extensions out of the way.

HIH


Sort photo collection from iphone into folders by year, month and city/region

Answer #1  Requires script writting, exiftool, and the creation of a places database.

A partial answer would use a script and exif tool.

Exiftool can read both the exif and IPTC as well as most other metadata in an image.  Geolocation is part of the data it can read.

So if your photostream is in folder ~/PhotoStream  (I've no idea where you keep it.)

foreach photo in ~/Photostream {
  (year,month,lat,long) = exiftool {bunch of flags} photo
  foreach placename in ~/Placenames {
    # Place name has lat, long, name, radius
    # Calculate angular distance from present lat/long to each placename
    distance = sqrt((picture_lat - place_lat)^2 + (picture_long - place_long)^2)
    if (distance < place_radius) { # found one!
      if not exists directory year-month-placename {mkdir MyPics/year-month-placename
      move file year-month-placename
    }
}

The problem with general sorting for geographical data is that it is intrinsically two dimensional.  If you sort just by lat, you end up with New York City being adjacent to Rome.

The script above while not enormously difficult will take some time to get working right, mostly due to the place names.

Answer #2 Sort into folders by date, and add places manually.

I would suggest that unless your place names are fine enough grained that they change multiple times in a day.  (E.g. you have separate entries for your hotel, the temples, the coliseum...) that doing a first bin by date, then rename the resulting folders manually.

I recently went through my aperture file (15000 images) and essentially did this by hand.  Few of these pics have geolocation info.

A:  Renamed each image in the format yyyy-mm-dd hh-mm-ss.  Aperture can do this automatically.

B:  Make a batch of year folders. Made a project in each one called 'unsorted'

c:  Manually moved each year's pix into year folders/unsorted.

d: Make a batch of month projects in each year folder.

e: Move the pix from unsorted into appropriate month folder.

f: In some cases I would make a special project yyyy-mm-project_name where I had a large number of photos dealing with a single topic.

This didn't take as long as it sounds.

Much longer was going through each folder and applying keywords.  Well worth doing.


What location data will an Android phone provide to an iOS device that lacks GPS?

When you tether an iOS device, it will have a live data connection and perhaps make some better use of any Wi-Fi signals that are in range for determining location, but in general - you won't get GPS like accuracy just because an iPad or iPod is connected to a phone (android or iOS) over Wi-Fi tethering.

Just like your computer can't really gain GPS data from a Wi-Fi router, the same holds for an andriod based Wi-Fi router that happens to be a phone.

There is no reason why this data couldn't be sent to an app and a GPS server could be conceived on Android or iOS to provide streaming data, but this isn't something that comes automatically or by-design from Wi-Fi tethering.


single track on disk showing as multiple iTunes entries, how to clean it up?

Go to View → Show Duplicate Items. Then, sort the list by date added and remove the most recently added duplicates so the originals remain.

For more information on removing duplicates, see the Apple KB article:

How to find and remove duplicate items in your iTunes library


Installing git on OSX 10.8 without Xcode

Note that this is a plain copy of a previous answer of mine on superuser.com.

Here's a way to install git on Mac OS X without XCode.

Git's official web site provides an installer : http://git-scm.com/download/mac

After installing git, you also have to add its directory to your path :

echo "PATH=/usr/local/git/bin:\$PATH" >> ~/.bash_profile
source ~/.bash_profile

Adding the directory to the path will prevent Mac OS X from aksing you to install XCode each time you type git in the terminal.

Credits goes to Bobby Allen and to GoZoner's answer on SO.


The simplest way of doing it is just making it yourself. And there is a quite simple way of doing it.

Select a folder which has the Generic icon.
Do Edit / Get Info or Command+I.
Select the folder's icon, at the top of the Info Window, and copy it.

Open Preview.app
Do File / New from Clipboard or just Command+N. All of the actual icon's image sizes will appear. Select the first one as it's the biggest one.
Copy, from elsewhere, the image you want to use as overlay and paste it in the Preview document. For pasting it you'll have to click on the actual image, instead of Preview's selecting panel.
Now, either after clicking in the preview's panel or the actual image, do Edition / Copy.
Select the folder you want to change and do the Get info thing as you did before.
Select the folder's image at the top of the info window and paste the new icon by doing Edition / Paste.

This is the final result:

It's quite nasty, from a designer's point of view, but it will definitely do the trick.


.bash_profile not running with multiple commands

That sounds like a line-endings issue. Make sure your bash file is using UNIX \n instead of Windows \r\n.


Can ffmpeg merge multiple m4a files into one ~chapterized~ file?

I use mp4v2 in my open-source app to join together iTunes tracks. You can install mp4v2 using Homebrew.

To add chapters, create a text file in the following format:

00:00:00.000 Name of first chapter
00:00:23.500 Name of second chapter
00:02:40.700 Third chapter, etc

You might be able to automate the creation of the chapter file by using ffprobe (see example written in AppleScript and shell script).

For an output file called "OUTPUT.m4a", save the chapters file as "OUTPUT.chapters.txt". Then run mp4chaps -i OUTPUT.m4a in the same directory as the output file to add the chapters to it.


This is absolutely sounding like a graphics card issue (VRAM failure or part of the accelerated graphics pipelines have failed within the GPU itself). My thinking is that when you boot to recovery or safe mode, the graphics driver is operated in a very slow and limited manner (likely deactivating shader and vector processing optimizations, etc...). When that cures glitches you’ve got a very few things to consider now.

You've already installed a totally new copy of the OS so unless you didn't apply all updates to that OS - you've brought the latest drivers, no corrupt apps or add-on or user settings and proved the current OS and hardware fail to work. Excellent triage there to be sure it’s not software corruption or a preference issue.

Since Apple repairs MacBook by swapping in a new logic board - you would expect a $300 flat rate repair to fix this out of warranty but get a quote from them to be sure. Before spending money to fix, I'd probably be sure a safe mode boot confirms it's GPU related and be sure you have a good backup.

I dismiss it being the LCD or the connecting cable (but it could be either as well - even just the connecting cables are loose) since most of the time, that would cause lines no matter what was drawn and your WiFi icon curing itself on screen when the image changes makes me think the computer is generating the wrong image and the wrong image is being faithfully displayed as opposed to a good image from the GPU being corrupted by the cables and/or display.

Short term, you could increase the size of the elements to minimize the pain to see things or try using an external screen when you can.


Wanted: Apple Script for copying file name and pasting it in Spotlight Comment box Mac OS X 10.8.5

This AppleScript ask you to choose some files, after that, it set the comment of each file to the file name.

set input to choose file with prompt "Select files (to put the file name into the Spotlight Comment)" with multiple selections allowed
tell application "Finder"
    repeat with i in input
        tell item i to try
            set tName to (get name)
            set comment to tName -- this set the comment to the name of the file, and delete the existing comment
            set name to "Done_" & tName
        end try
    end repeat
end tell

If you want to append the file name to the existing comments, change the sixth line in the script to set comment to (get comment) & " " & tName -- this append the name of the file to the existing comment


How to Edit a website URL for existing App password on Safari Password manager?

Solved it.
I had the issue that a site uses a first page to get the user then uses a different url to take the pw. So the u & pw were called only by the second url.
I used ‘+’ to add the first page url, then same u & pw. When I saved it merged the two.


I am using a Mackbook Pro that I purchased in 2011 using OS X 10.8.5 and want to upgrade it to Yosemite

No, it won't - Since at least Snow Leopard, the upgrade is just done over the top of the original install. The core of the system doesn't change much these days, it's more about adding features/apps.

I'd recommend backing your work up anyway (even if you don't upgrade!) and if you have an urgent deadline, upgrade afterwards... base the time on the assumption you'll have to re-install, simply because installations can and do (fairly rarely) go wrong.


Mac OS X Mail signing messages with S/MIME certificate from startssl

You need to add this http://www.startssl.com/certs/sub.class2.client.ca.crt certificate to your OS X keychain. After that your messages will contains both of certificates.


How can I rename my files with datestamps in Aperture and keep them in order?

The solution is to avoid direct import by Aperture.  Import them onto the disk using your camera software, or by using a card reader, or if you camera is suppored as a 'device' then direct copy in Finder.

Run the command:

exiftool  -d %Y-%m-%d_%H-%M-%S '-filename<${datetimeoriginal}.${subsectimeoriginal}.%e'

This will format the filename as

2016-12-09_20-27-21.20.JPG
2016-12-25_14-29-00.70.NEF

Exiftool can be downloaded from here:

http://owl.phy.queensu.ca/~phil/exiftool/

Note that the subsecond time can be either a 2 or 3 digit number -- either centiseconds or milliseconds. My d7100 reports 2 digits, but the last one is always zero.  So internally it's using a decisecond timer.


How to add second Apple ID to my account to shop in App Store in a different country

Go to Settings-> iTunes & App Store then tap your UK Apple ID and tap "Log Out". Then just sign in with your German Apple ID. After you've downloaded the app, you should be able to switch back to the UK Apple ID in the same way without anything being affected.


AppleScript to read all notifications in the Notification Center OSX 10.10 Yosemite

I have not found a way for AppleScript to do this, but shell scripting has been effective for some people to get at the full database or log of past notifications.

Does the OS X log notifications from the Notification Center?

The format is an sqlite database, and it can be found inside this folder:
~/Library/Application Support/NotificationCenter

Assuming AppleScript is more important, you can call arbitrary shell scripts if needed from one, but other languages might be easier for database interactions / reporting.


How can I restart a currently-running application with AppleScript?

The following code example assume that the Run AppleScript action starts with an on run command without any list, e.g. {input, parameters} and consequently ends the script with end run:

on run

    (*
            This comment represents the e.g. previous 99 lines of code.
        *)

    set buttonChoice to button returned of (display alert "Do you want to replace this entry?" as critical buttons {"Start over", "No", "Yes"})
    try
        if buttonChoice is "Start over" then
            return on run
        end if
    end try

    (*
            This comment represents the rest of the code in the script.
        *)

end run

Note that I tested this in macOS Sierra 10.12 and while it does appear to start over, because if you press the "Start over" button it loops until you select another choice, I'm not sure this is the best way to implement this. I say that because I do not know the structure and coding of the rest of the script and that may make a difference along with the fact that while testing other code on each side of this, I was able to crash the app depending on what was going on if I looped more then once at this point.

So with that said, I'm offering this as something to test throughly before implementing it in the final code.

I'd suggest just allowing the user to terminate the app with a message to manually restart by pressing the key-combo to trigger the service that starts the app over implementing a loop such as this.


Software-only way to disconnect and reconnect a USB device?

if you felt bold, you could disable all of usb service and then reenable.  I believe that will do it.  will also kill keyboard etc.
kextunload IOUSBFamily.kext
kextload /System/Library/Extensions/IOUSBFamily.kext

it will take some more discovery, but i think this might be a good path.  let us know if you experiment
all usb extensions in 10.8 at least:
/System/Library/Extensions/IOUSBAttachedSCSI.kext
/System/Library/Extensions/IOUSBFamily.kext
/System/Library/Extensions/IOUSBMassStorageClass.kext


How to transfer preferences from one machine to another?

The easiest way to do this would be to use Migration Assistant.  If you transfer your settings  when you first setup your Mac, you can run the Migration Assistant to transfer the settings for you.

Directly from Apple:  OS X Mavericks: Transfer your info from a computer or disk

I went with Mavericks because it is fairly recent and the procedure is the same in Yosemite.


Is Disk Utility's "Repair Disk" a viable TRIM solution for Mac OS X Yosemite?

Did you notice that the interesting bits in the discussion seem to point to Disk Repair having performed a TRIM because Trim Enabler was installed?
User jimsander says:

  My guess is it's a result of the 3rd party TRIM enabler - just did Disk Utility --> Repair on my machine (MacBook 2008 w/ Lion + Crucial SSD) and it didn't say it did a TRIM.

It would not make much sense if Disk Repair made a TRIM happen without Trim Enabler, because what is lacking by default for non-Apple SSDs (and that Trim Enabler provides) is driver support for TRIM. Disk Repair accesses the hardrives through the same driver that the filesystem implementation uses in normal operation, so it won't do the one-time TRIM without the same driver support that would allow the filesystem implementation to trim immediately.


This window keeps popping up and wont go away.. help?

This is likely malware. Update your Apple software every week (or even every day) for a while in case Apple detects and blocks this specific app. It’s not behaving like a proper app should.

Any chance you can locate the file in finder and upload it to virus total?

“qnmqkmkrqwfq” is damaged and can’t be opened , even though i set Allow applications downloaded from: Anywhere

If you can get the finder window open, control click and show package contents and consider uploading the file to https://www.virustotal.com/gui/home/upload if you’re not comfortable using terminal to type the command file and drag the bookmark “file” into the terminal window to check if the file is deceiving you - named like a text file but actually a program.


After searching, I've found that generally, even though this is the stated timing

the best you are likely to see is every 2-3 hours for this size drive. Sometimes a backup will stall, and the software will restart, so I have a few daily backups remaining that time stamp as late as 6 am, showing there was at least a 6 hour gap.

That said, I have a second MacPro, running Yosemite, same 50GB used, and its backups are every hour, like clockwork.


Pressing Command ⌘3 in Finder changes to Columns view and selected files can be deleted by first moving them to the Trash by pressing Command ⌘Delete or by clicking Move to Trash from the File menu in Finder.

You can then empty the Trash by pressing:ShiftCommand ⌘Delete


Target Display mode is not supported under Boot Camp for any version of Windows, the best way to get that working is under a VM client suh as Parallels or VMWare


Open system preferences and see if you can unlock a pane selecting the lock.

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

That password is the one for admin access and it’s the same password needed for Xcode to install additional components and get admin control to debug and package files.


How to inherit ACL's/permissions automatically when creating new folder using Finder?

By default, Active Directory objects inherit ACEs from the security descriptor located in their parent container object. Inheritance enables the access control information defined at a container object in Active Directory to apply to the security descriptors of any subordinate objects, including other containers and their objects. This eliminates the need to apply permissions each time a child object is created.

If necessary, you can change the inherited permissions. However, as a best practice, avoid changing the default permissions or inheritance settings on Active Directory objects. For more information, see Best practices for assigning permissions on Active Directory objects and Changing inherited permissions.


Connect firewire MacMini to thunderbolt MacBook Pro

You would need a Apple Thunderbolt to FireWire Adapter.

You can find it here for $29

Please also read this.

Apple's Thunderbolt FireWire adapter can connect to Macs via both ends, but can only be used in one direction.


Send specific traffic through VPN based on the domain

You're looking for static routes and the 'route' command.  'man route' from the shell for full info, but something like route -nv add -net 66.22.138 -interface tun0 (or whatever your VPN interface is) should route traffic bound for hulu.com over the VPN.

You'll probably want to establish a default gateway so that you are assured of routing your traffic correctly.

route add default 192.168.1.1 would add a static route for your router.  Replace 192.168.1.1 with the actual IP address.

Note that these settings will not survive a reboot.  If they work for you, you'll want to put them in a launch agent file.


How do I get Automator to move a folder to Appname.app/Contents/etc

Here is some AppleScript that should help.

To select the move folder you would use

set moveFolder to POSIX path of (choose folder with prompt "Choose the folder you would like to move")

and for setting the destination folder you would write

set aFolder to POSIX path of (choose folder with prompt "Choose the Application you would like to copy items to")
set destFolder to (aFolder & "Contents/Resources/") as string

And to move the folder you would use:

do shell script (("mv " & moveFolder & space & destFolder)as string)

Hope that helps.


Touch ID Unavailable After Sleep MacBook Pro


For iPhone 4 the maximum iOS is 7

According to Apple, the oldest iPhone model to get iOS 8 will be the iPhone 4s.

To update the Apple iPhone 4 to iOS 7, iTunes version 11 must be installed on the computer prior to installing the update.


Visual Voicemail Save Greeting: The operation could not be completed. (com.apple.mobilephone error 1035.)

Voicemail needs to be activated by carrier. I too had same problem, phoned my carrier and they activated it so I was able to record my greeting. Problem solved


Disk space not freed after deleting files, unable to save things, unable to delete things, unable to update things

If you've "upgraded" to the Photo app from iPhoto or Aperture, your photos would have been imported as hard links. Basically this means that each photo is represented by both programmes and deleting from just one has no effect on the actual photo file. You'd need to delete from both.

Check to see if you have another album in your Pictures folder (or other folder if you manually placed it somewhere else) and delete the photos (hard links) there.


If a computer is under the shared header in Finder, can they access all the files on my computer?

No. Shared folders are controlled by the “Sharing” preference pane in System Preferences.


I'm not sure about what you are consider as multiple login.

Anyway, the difference between the two protocol is that: HTTPS is the standard HTTP with additional S a secure layer. This additional layer is used to perform an encrypted connection and so the link is more secure. The main motivation for HTTPS is authentication of the visited website and protection of the privacy and integrity of the exchanged data.

The difference in your intranet company is that with HTTPS you don't need to verified the login multiple time because you are already secure (the server already know you), while from the HTTP you have no encryption and so every time you must autenticate yourself.


Audio is deactivated after each reboot on Yosemite


Open the first one regularly and then use the open command with the -n option.

Open Terminal
Type open -n and drop the file into the Terminal window. The full path of the file will appear after what you've typed.
Hit enter.

The -n option opens a new instance of the application (in this case the default one, as no other is specified) even if one is already running.


Is it possible to lock the memory tray on an iMac 27" (late 2012)?

I just saw this yesterday on cultofmac.com which basically answered all my problems "Maclocks.com comes up with the only solution to fully protect your new iMac" http://www.cultofmac.com/235129/maclocks-lock-for-imac-prevents-your-ram-from-being-stolen-for-just-50/

Here is the link to the product page itself http://www.maclocks.com/imac-locks/imac-security-cable-lock.html

Thanks for bringing awareness to this issue and thanks to maclocks for solving it!


Before putting an iPhone5 into very long-term storage should I fully drain battery?

When it comes to Apple products and batteries I recommend users refer to what Apple has to say about its batteries.
However, to answer your question, I quote directly from Apple:

Store it half-charged when you store it long term.
If you want to store your device long term, two key factors will
affect the overall health of your battery: the environmental
temperature and the percentage of charge on the battery when it’s
powered down for storage. Therefore, we recommend the following:

Do not fully charge or fully discharge your device’s battery — charge it to around 50%. If you store a device when its battery is
fully discharged, the battery could fall into a deep discharge state,
which renders it incapable of holding a charge. Conversely, if you
store it fully charged for an extended period of time, the battery may
lose some capacity, leading to shorter battery life.
Power down the device to avoid additional battery use.
Place your device in a cool, moisture-free environment that’s less than 90° F (32° C).
If you plan to store your device for longer than six months, charge it to 50% every six months.

Depending on how long you store your device, it may be in a
low-battery state when you remove it from long-term storage. After
it’s removed from storage, it may require 20 minutes of charging with
the original adapter before you can use it.


How to prevent MacOS Mail autocomplete from inserting new line when accepting its suggestion?

Use SPACE to accept autocorrect suggestion.
If you like to use enter, then you can open dropdown list of suggested words with ⌥ + ESC, navigate to needed word using arrow keys and press Enter (will take cursor at the end of word).
Word you are looking for may or may not be first in list and automatically selected. If this happens to be true then of course no navigation with arrow keys is needed and enter can be pressed right away (⌥+ESC and Enter).
If you use SPACE instead of Enter then space is added between cursor and end of entered word so you can continue writing right away.


"xcode-select --install" versus retrieving the dmg from Apple's developer website

Are you sure they are installing the same version?

At the command line on both machines run cc -v - the latest version seems to be Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn).


Open Safari Push Notifications in Chrome

Unfortunately, I don't think this is possible.

Safari's push notifications are specific to Safari, and so cannot be configured to open in Chrome. It's a part of individual apps and their implementation of the push notification system.

You haven't specified which Apple OS you are using, but I can talking from my experience of iOS. I don't know if push notifications are a thing in OSX.


I've tried the Apple USB -> Lightining dongle with USB headphones. It delivers audio from some audio apps, but not the phone. Even with the phone app, I can hear the dial tones, but not the conversation. The conversation comes out from the phone's speaker.


Sync photo albmus between Mac and iPhone

There are two basic ways to do this. You can use iCloud for storing pictures and then also use it for pictures on your Mac.

The other way is when you connect your phone to your Mac with a lightning cable. Then you can go in iTunes and go to the phone setting and sync options where it will ask you what do you want to sync there would be multiple tabes pictures would be one of them. (YOU WILL HAVE TO TURN OFF ICOULD FOR THIS)

if you are on macOS Catalina then you can connect your phone go to finder. go to your phone, and change tabs to pictures and check the sync option. Then go back to the general tab and then click sync, it will take some time but you should be able to do it.

This Video from apple should help you


How to screencapture just the active display in a dual monitor setup?

Starting from macOS 10.14 you can do the following:

Press ⌘⇧5
Select the «Capture entire screen» option
Click on the required screen to take its screenshot


date add command Terminal: How to add time using `date`? (illegal time format)


SD card is read-only, all Disk Utility options grayed out

I was just going to suggest the lock switch too... but if that's not it, can you click the Partition tab and tell us how the card is currently formatted?  If I remember right, OS X can read but not write an NTFS-formatted device, but it seems unlikely that your camera would have formatted the card that way.


Press cmd-r when booting to take it into recovery mode. Here you can click on Disk Utility and choose a startup disk/partition. You might need a driver to use the wireless devices with Linux.


You could give UltraStar Deluxe a try:

  A free and open source karaoke game inspired by the Singstar™ game available on the Playstation®. It allows up to six players to sing along with music using microphones in order to score points, depending on the pitch of the voice and the rhythm of singing.

The content is somewhat limited though.

P.S. I'm thinking many usefull information could find out here


Is it possible to change the wireless card on a MacBook Pro?

Probably not, but you can use the ExpressCard slot instead

The model you mentioned (17" MacBookPro8,3 late 2011) does seem to have a separate Wifi/bluetooth assembly, but you'll probably have a very hard time finding a matching replacement in both size and connection. I didn't find a disassembled 17" model, but the card in the 15" of the same generation looks like this (4 antenna connectors and what is probably some sort of PCI Express cable).

However, since yours is a 17", it does have an ExpressCard slot, where you can stick in a Wifi card of your choosing (something like this) without even having to take the whole machine apart.

Or patch around your Linux kernel with one of the BCM4331 drivers that are out there, but I assume you've already tried that.


How can I get PDFs to open in-browser in Safari 5.1

If you install Adobe Reader when you open for the first time you will see this box, select yes.

If you already have it installed go to preferences and make sure "Display pdf in browser" is checked.


188.43.69.98 is a Russian IP and announced as owned by 'Closed Joint Stock Company TransTeleCom' and not is not an official Google IP.  It tries to disguise itself by falsifying its reverse dns pointer pretending to be 'cache.google.com' but this is a lie.

Chances are very high your system has been hijacked somehow.  Perhaps not your Mac but your internet router could be compromised.  My guess you have an ADSL connection on a TP-Link or D-Link ADSL router which are easy targets.

Log in into your router and check what the DNS servers are set to.


One way i can think of is using a Mac:

Sync your old iPhone and download your photos to iPhoto.
Activate iCloud and Photo Stream on your mac using your iCloud ID.
iPhoto now will have a Photo Stream folder.
Drag the desired photos/events to the Photo Stream folder in iPhoto.
Make sure you have Photo Stream activated on your iPhone 4S and you are using the same iCloud ID on all related devices.
iCloud on your iPhone 4S should detect via WiFi or your carrier that you have photos in your Photo Stream and will sync all devices under your iCloud ID.

I haven't managed to copy the photos to the Photo Stream Folder on the phone, so maybe it's not implemented yet, but one workaround if you don't have a Mac, is to email/message yourself the photos. Read the mail/message using your new iPhone 4S and save the photos. They will appear in the Photo Stream folder.

Hope that helps.


This is totally feasible.

I would start with an app like prompt by panic that has excellent quality, proper documentation and first rate support.

https://www.panic.com/prompt/

They say shockingly good software, and I’ve found that to be an understatement as a happy customer for years, paying for many of their products. Prompt is a 5 star app in my book, best of the best for ssh from iOS.


In OS X, Safari is updated via the normal system bundled software update process. On Lion, this is the Apple Menu, Software Update tool which can be scheduled or disabled.

On Mountain Lion, this function remains in the Apple Menu, but runs through the Mac App Store app

http://www.apple.com/softwareupdate/

In the end, both tools call softwareupdate binary that you can also run from the command line.

This differs from your Windows experience where the Apple Software Update tool runs to update all Apple software (Safari, QuickTime, iTunes, etc.) since it is not part of Microsoft's software update process.


MacBook Air Battery is not charging, no light, still be able to power up, battery condition is normal

Your issue is not normal obviously but this could be a sign that something is wrong with the hardware.

The best advice is to go to an Apple store or an Apple Authorized Service Provider and let them look at it.

The issue could be your battery, it could be the MagSafe board or it could be the logic board.

I wish I could help you more but without seeing the unit with my own eyes and taking it apart I can't say for certain what it is. I doubt it is software and therefore encourage you to reach out and find someone who is certified to open Macs.


Unable to format my memory card/SD - error -69877 couldn't open device

I had the same problem, but per this Mac Forum discussion, SanDisk Micro-SD to SD Adapters has a 'Lock" slider that is easy to miss. After unlocking the card, I was able to reformat the microSD card with no problem.


iPhone only lets one side of any earbuds work

Double check that you don't have the left/right balance pushed to one side. The slider should be set right in the middle. This is in Settings > general > accessibility > hearing.


Is there any way to upgrade a mid 2007 iMac to macOS Sierra?

OS X El Capitan 10.11.6 is the last supported release of macOS for your model of iMac. The latest release of Xcode that can be installed on your machine is Xcode 8.2.1 with macOS 10.12.2 SDK and iOS 10.2 SDK.

It is not officially possible to install macOS Sierra or use Xcode 9 (or later) on your iMac.


How to get macOS to play audio-in from aux

You can use an application like Airfoil.

Connect your PS4 controller via the 3.5 mm jack to your MacBook.
Open Airfoil, select Audio Source: External Microphone
Select Transmit to: (Your Bluetooth Speaker)
Enable your Bluetooth device.


`brew link unbound` returns `/usr/local/sbin is not writable` error

By default /usr/local/sbin doesn't exist. The folder should be created by installing brew, the owner/permissions are set to $(whoami):admin/775. Most/all folders in /usr/local/ are owned by the user who installed brew - that's part of the default installation and configuration.

On the other hand some third-party tool may have been installed to this folder previously (e.g AFAIR procexp or Smartmontools have to be installed there).
Then the owner/permissions are probably set to root:wheel/755 or root:wheel/775

To solve your problem check whether /usr/local/sbin exists and its folder permissions.

The following command creates this folder if it doesn't exist and makes it world writable, but doesn't change owner:group:

if [ ! -d /usr/local/sbin ]; then sudo mkdir /usr/local/sbin; fi && sudo chmod 777 /usr/local/sbin

Now you can link unbound:

brew link unbound

You may undo the world writable step with:

sudo chmod 775 /usr/local/sbin

Don't forget to add the folder to your user's PATH in ~/.bash_profile or the system's PATH in /etc/paths.

If you get the error:

Error: Could not symlink sbin/unbound
/usr/local/sbin is not writable.

the user doesn't have permissions to write to the folder with the command actually executed.

The command sudo chown -R $(whoami) /usr/local will change the owner of all subfolders and their content to $(whoami) despite the error chown: /usr/local: Operation not permitted. The only exception will be a SIP protected item in /usr/local/. By default none of the files and folder is protected though.

Thus the error message is erroneous and you probably already have been successful by entering your sudo chown -R ... command and you should have tried to simply linked unbound once more.

You can check the folder permissions by entering:

ls -lae /usr/local/sbin

You can get all a protected items in subdirectories of local by entering:

ls -lae -R /usr/local | grep restricted


You can move left and right through tabs with CMD + SHIFT + ] for right and CMD + SHIFT + [ for left.

Not necessarily choosing  exactly which tab.


Where to find model for downgrade.Is that GSM or Global?

You can find the model number of your iPhone in Settings > General > About. There is an entry under "Model". This describes your phones model configuration, such as colour and memory size.

The model number you mention is the region and network configuration as per below table. So you have the Asia Pacific model.

iPhone 5s             Model Number
----------------------------------
GSM/North America     A1533
CDMA/Verizon          A1533
CDMA/China Telecom    A1533
CDMA/US/Japan         A1453
UK/Europe/Middle East A1457
China Unicom          A1528
Asia Pacific          A1530
China Mobile          A1518

What do you mean by "Global"? GSM is a telecommunications networking standard defining the protocols for what is commonly known as 2G.

Since you tagged your question as "iphone-5s", the networks it supports are

GSM
CDMA
3G
EVDO
HSPA+
LTE


Three things to try - report back & we can tweak this answer.

Try Launching App Store directly from the Applications folder, rather than via About this Mac.
Clean out the App Store prefs & caches...
Open Terminal & copy/paste each of these 3 lines, hitting Enter after each
rm ~/Library/Preferences/com.apple.appstore.plist
rm ~/Library/Preferences/com.apple.storeagent.plist
rm ~/Library/Cookies/com.apple.appstore.plist
and again for the caches
rm -r ~/Library/Caches/com.apple.appstore
rm -r ~/Library/Caches/com.apple.storeagent
Make a new admin account...
System Prefs > Users & Groups
Unlock the prefs, if locked, & click the plus button at the bottom.
Set up a new Admin [not Standard] account, then try logging yourself out & into that account instead.
Test method 1.


How can I disable a root certificate in iOS?

I don't think that is possible, but I can't confirm for sure. You could deactivate root certificates you added to your phone, but not the ones already in it...
I'll try to find some doc about it.


Need help making Windows bootable after installing Linux

Try sudo reboot disk0s6, or try rebooting into the recovery partition and running that command from there


Is battery life supposed to go not even a year?

There is detailed information available about your battery.
Click on Apple (top left)

About This Mac
More Info
System Report
Power

In the Health information it shows how many cycles you had so far.
I have 142 cycles since Oct. 2012.
The battery should last about 1000 cycles.
If you have a problem please see Apple service.

Above you see some comparison data (from my MBA)
Running @ 100% brightness, Mail, Firefox, Chrome, WIFI and more, consuming about 1200 mA.
Unfortunately Apple does not show the remaining life as time, so you have to use a formula to calculate that, but it varies based on usage (mA).


Get parent of symbolic link instead of original folder

Unfortunately, this is not how symbolic links work.

From the man page (man ln)

  The ln utility creates a new directory entry (linked file) for the
  file name specified by target_file.  The target_file will be created
  with the same file modes as the source_file.  It is useful for
  maintaining multiple copies of a file in many places at once without
  using up storage for the “copies”; instead, a link “points” to the
  original copy.

Emphasis mine

So, how do you get around this?  Use an environment variable.  For example:

$ mkdir -p /a/b/c
$ FOO='/a/b/c'
$ cd ~
$ cd $FOO
$ pwd
/a/b/c

Note, you should use absolute paths when doing this; using relative paths can and will have unintended consequences.


Changing Mac Book Pro 2012 admin Password

You need to wipe the machine & start afresh.

Currently, everything on the machine belongs to the previous owner - including the OS itself. Eventually you will need their Apple ID & password before you can update things.

Additionally - you have no idea what spyware, keyloggers etc they may have put on it. The chances may be low but they are not impossible.

See Apple KB - What to do before you sell, give away, or trade in your Mac The previous owner should have done the first 5 steps; you'll have to start from step 6.


Copy selected files from a Time Machine backup to iCloud?

Since you say that the 200 GB of pictures and movies are irreplaceable, I submit that it's worth the small expense of buying a 200 GB or larger external hard disk, so that you can first extract the files you want to keep to this disk and verify they are present and correct before trying to transfer them to iCloud Drive.

I'm not familiar with tmutil but it sounds as if you should be able to access the files from the backup using Browse Other Backup Disks as described in various answers to this question:

  Before going into Time Machine, open a Finder window and choose
  "Computer" from the Finder's Go menu. (That's the key to being able to
  browse another computer's backup drive.) Then hold the option key and
  choose "Browse Other Backup Disks".

iCloud Drive used with the Store in iCloud option described here should be able to store your files in the way that you want but I don't know how it behaves if you try to copy a large amount of data (which is more than the free space on your local disk, if I understand correctly) in one go. You might have to copy the files in chunks that will fit on the local drive and wait for iCloud Drive to copy them and free up the space again before copying the next chunk. Alternatively you might want to look at alternative cloud storage services like Dropbox, where you can upload files through a web interface into a folder that doesn't automatically sync back to your local disk.


How do I remove iTunes downloads without deleting from my library?

On my computer running 10.14.6 and iTunes 12.9.5.5, clicking the "Delete from library" brings up an option to either just remove the download or remove it from from the library entirely.


Is it a problem if kernel_task is routinely above 130MB on mid 2007 white MacBook?

Short answer:

Probably not, but without knowing more details about the machine I can't tell for sure.

Long answer:

The single largest block of ram in the kernel are the tables used for keeping track of memory permissions and VM mappings. For every 4KB of ram in your computer the kernel needs to keep at least 64 bytes of data to track what process is using it, etc. Consequently the amount of ram the kernel uses is directly proportional to the amount physical memory you have installed. On my Mac Pro with 48GB of ram the kernel routinely uses over a 1GB of ram, and that is entirely normal normal.

I am guessing you have ~2-4 GB of ram, which would require 32 to 64 MB for just the tables, and the rest is in the ballpark for what the kernel needs for memory buffers, mapped text and drivers, and basic operations.


Like you said, it doesn't look like a software problem, since it's happening randomly on multiple applications.

So it looks like an hardware problem. Your best solution is to go to an Apple Store to get it looked at.


Create video file with multiple audio tracks?

Since you are looking at playing it in VLC, I would suggest using MKVToolNix. It's a free, open-source set of tools to allow you to manipulate MKVs.

Let's go through it step-by-step (there is a shorter way but this will get you to learn a bit more about MKVTN):

You're going to want to demux two of the videos with the foreign audio so drag it in to MKVTN's "Source Files" area. You'll see the file get listed and in the "Tracks, chapters, tags and attachments" view you will see the streams in that file. In my example below (forgive the Windows interface, but it's the same) you will see there is an AAC audio stream and an Mpeg-4 Hi10p video stream.

Deselect all tracks so that only the audio track you want to grab is selected.

You'll notice that the filename under "Output file" has changed its extension to .mka. This is because MKVTN knows we are exporting only audio. Choose where you want to save the output file, give it a name, and click "Start muxing".

Repeat this process until you have the video file with one audio and separate .mka files for each of the foreign audio tracks.
Repeat step one, dragging in the original video file containing the first language.
Drag in the separate .mka tracks to the same view. You will be presented with a popup like below.

Since we want to use these files as input files too, we can leave the settings as they are and click "OK".
In the "Tracks" view, you should now see multiple audio tracks for each of the different languages. (At this point I should note that you could have just dragged the video files all in and then just deselected the video tracks but I figured I'd get you to dummy run the program first ;) )

If you're happy with not having any other metadata set for the file then you can go ahead and repeat step 3 (setting the file name etc.) to export an .mkv containing all your audio with the video.

If you'd like to though, you can select each track in the "Tracks" view and specify the language of each and also which one should play by default by editing the attributes in the "Properties" view. This can help you differentiate later on in VLC when you want to switch the languages.

You may also find that if the audio files are different lengths and just stretched in their original containers that the audio may not sync up perfectly. You can adjust that via the "Properties" tab too if you know the offsets. If the source video was the same though, you may find it syncs up fine.

AFAIK, there's no similar tool for iOS, but it's not something I've thought of doing on iOS myself.

Let me know in the comments if there's something you want me to expand on. :)


You can choose whatever cities you like as long as there are four of them :-)
Just click on city name you want to replace, choose new one using Search field or use drop-down list in pop-up window. Your new choice will be displayed instead of Apple default.


Need to replace iPhone screen. Are aftermarket parts OK?

Be willing to spend about $40 for the more expensive ones, because in the end, they'll be worth it. The parts work well, but the ribbon cables are ridiculously easy to rip and tear, so be extremely careful.

The cheaper ones usually have thinner glass, thus cracking easily. Also, make sure you specify either CDMA or GSM when searching for parts as the CDMA parts are different from the GSM ones, and they're not inter-compatible.


Least intrusive way to install Ruby 1.9 on a borrowed MacBook?

The problem is that there aren't any builds for Ruby for OS X, so you'll have to at least install the Command Line Tools for Xcode to be able to build it. But once you've done that, you might as well use any of Homebrew, RVM or rbenv to install Ruby, rather than building it yourself.

I don't think there's any major difference in terms of how easy it is to remove either of these tools, since they were all designed to be standalone and as little intrusive as possible. In fact, RVM and rbenv live in one folder only.

The choice is yours.

With Homebrew

I would say the easiest way of getting Ruby is through Homebrew. Note that Homebrew has Ruby 2.0.0 as of writing this answer, so you won't get 1.9.3 through it.

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew install ruby

Homebrew and everything it installs lives in /usr/local. You can use this gist to remove it completely – just copy and paste it to a Terminal. Although I would say having Homebrew on a Mac is never a bad idea, which is the reason I'd recommend this over the other methods.

With RVM

RVM is a little more intrusive in the way it interoperates with your shell, but if you're going to remove it after, then you shouldn't worry about it.

Install RVM by following the instructions. For 1.9.3, you then just need:

rvm install 1.9.3

Note that in order to use RVM you would have to change your shell's configuration file (.bash_profile) as well, so remember to clean that up afterwards. Apart from that, RVM lives in ~/.rvm, and can be uninstalled with rvm implode.

With rbenv

rbenv is a competitor to RVM, and does the same thing. Except that if you want to install Rubies you need ruby-build as a plugin.

Follow its installation guide and once you're done, use rbenv install 1.9.3-p392 for the latest 1.9.3 patchlevel, for example.

To remove rbenv, you only have to delete ~/.rbenv and remove the line that loads it from ~/.bash_profile.


Is there a way to sync OS X Photos app with Android Phone?

Here is how you can sync from Dropbox (or a directory of your choosing) into Photos, when new photos are added:

Open Automator, and create a "Folder Action"

On the top where it says "Folder Action receives files and folders added to" select "Choose folder", then "Other", and select your Dropbox folder (or whichever directory contains your photos)
Add a single Run AppleScript action with the following code:

on run {input, parameters}
    set file_strings to {}
    repeat with current_file in input
        set file_as_string to (current_file as string)
        if words -2 through -1 of (do shell script "file --mime-type " & quoted form of (POSIX path of file file_as_string as string)) contains "image" then
            set file_strings to file_strings & {(file_as_string) as alias}
        end if
    end repeat

    tell application "Photos" to import file_strings
end run

Your Folder Action should look like this:

Now save it with a name of your choosing, and from now on, photos added to the folder you chose will be imported to Photos.

Let me know if anything goes wrong!


Making iPhone/iPad the master when syncing with iTunes

Essentially - you don't.

iTunes is the master, the iDevice is the slave. That's the way the system is designed.

It works on the assumption that you will always have plenty of room on your Mac to store data that there is no room for on the phone, so you can add it back to the phone at any time in future.

I suppose it's legacy behaviour from before iCloud existed.


Before your trip, find a friend whose cell phone connects with a carrier other than T-Mobile (and not an MVNO that connects via T-Mobile), and whose phone has a SIM card of the same size.

Put the friend's SIM card in your phone. If the phone connects, your phone has been unlocked.


Why is the folder in ~/Library/Application\ Support called "Avian" for Textmate 2?

"Avian" was the project's 'code' or 'working' name so the developers chose that string over the other choices.


To exclude bak files in Finder's search?

The answer to this question is to add .noindex -extension at the end of .bak. Thank you, Tetsujin!
I refer this one liner to do it

find . -name "*\.tex" -exec bash -c 'mv "{}" "{}.noindex"' \;


OS X and iOS use ntp-like software daemons to poll for and periodically adjust internal clocks based on external time sources.

A leap second arrives as an external correction similar to how each hardware clock corrects minor (or major) skews and inaccuracies periodically.

OS X ships with perl modules to accurately determine if a leap second is coming or has come, but internally it's not handled like leap years where the system knows in advance and automatically adjusts it's internal clock without needing to be corrected from an external time keeping source.

https://developer.apple.com/search/?q=leap%20second
Perl module LeapSecond
time2posix man page


Contact recently upgraded to iPhone. How can I tell my iPhone to send them iMessages now?

It ought to figure it out for itself, once their phone is set up correctly.

So long as their phone number is listed in their phone, in Settings > Messages > Send & Receive  as "You can be reached by iMessages at..." then it should just switch over.

You'll see their messages start to appear in blue rather than green.

You can test/check by finding them in Contacts. As you open their details, you should see FaceTime light up, which confirms they're on an iPhone.


How to map the bottom right Trackpad corner to right-click programmatically?

I spent some more time debugging this, and it seems there are multiple setting locations (on multiple hosts) for the same setting.

AFAICT, each user gets his own host. The login screen uses a separate host. It makes sense to enable some settings (like Trackpad tap to click) for both these hosts.

Furthermore, OS X seems to have separate settings for Magic Trackpads and built-in MacBook Trackpads. The commands in my question only enable the Magic Trackpad settings.

Now, I try to enable it everywhere:

# Map bottom right Trackpad corner to right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true


Need Help w/Step by Step for Restoring YouTube on 1st Gen iPad w/iOS 5.1.1

The Youtube app on iOS 5.1.1 will no longer work, even if you happen to install it. This month (April), Google deprecated an API which the legacy app used in favor of a newer one extending functionality to the HTML5 web/iOS/Android app versions which have since been released in the App Store.

Please refer to source for more information. This change was announced March 2014 - source

If you really want to try and make it work, as an actual answer to the question:

Download the iOS 5.1.1 IPSW file for the original iPad
Launch iTunes with your iPad connected
Back up your iPad
Option-Click (Mac) or Shift-Click (Win) the Restore button when viewing the iPad property page in iTunes
Locate and select the iOS 5.1.1 ipsw file downloaded in Step 1
Restore your device using the ipsw and, once completed, do not allow iTunes to update to iOS 6


Applescript to output UTC Datetime at cursor without SystemEvents

Don't use System Events to do this.  As well as the difficulties you've discovered, it's also a pretty unreliable way to do this, a potential security risk, and—thankfully—not at all necessary.
Here's an outline of how to use Automator to insert the date at the cursor's location in the currently active application:

Create a new† Automator workflow, selecting Quick Action as the type.  Enter the name you wish it to go by, but try and be sure because changing it later in this particular instance could be irksome.

When you're presented with the newly-created, blank workflow, there are options at the top that allow you to dictate what sort of input you can pass to the workflow, and in which applications the service will be available.  Set these to the following:

Workflow receives: no input

in: any application

The third option you need to select is this one:

This—as the name suggests (in a slightly misleading way)—causes the Quick Action to run as normal, and at the end of its run, the final result—assuming it can be represented as text—will replace the currently active text selection, much like when one pastes the contents of the clipboard into their document.  If a text object permits highlighting of its text content, then it will always contain a text selection object, regardless of whether or anything text is highlighted.  In this instance, i.e. most of the time, it is located wherever the cursor is, and contains zero characters.

Create a Run AppleScript action.  Delete any default script text that it contains so you have a blank editing field, into which you can paste the following code:
tell ((current date) - (time to GMT)) as ¬
    «class isot» as string to return the ¬
    contents of [text 1 thru 10, space, ¬
    text 12 thru -1] as text

This produces an formatted date and time derived from the ISO-8601 international standard, and looks like this: "2020-07-26 14:21:11".  It's basically the order that date and time parameters should have been dictated from the very start, but most countries unfortunately didn't think hard enough, and ended up with the year in third position, and the date and month in some arbitrary choice between the first two positions.  How ridiculous.

Save. Quit. Assign a keyboard shortcut in System Preferences.  Done∗.  Here's the finished workflow:

∗(Almost done) Whilst the keyboard shortcut you set via System Preferences > Keyboard > Shortcuts > Services should work in all appropriate situations, it seems to be buggy in web page text entry fields.  The menu option appears in the services menu, but without a shortcut seemingly assigned to trigger it. Therefore, create an additional shortcut via System Preferences > Keyboard > Shortcuts > App Shortcuts > All Applications and assign it the same hotkey as the other.  Now it works.
†Usually, editing a workflow and saving it will effect the changes more-or-less immediately so that it works outside the Automator environment, as you'd expect.  This isn't necessarily the case with the option to replace selected text, which can take quite some time or require a system reboot to work outside Automator.  Therefore, two things I advise you get correct to help avoid starting all over again are: 1) The name you wish your Quick Action/Service to have; and **2)**That you check the box to allow output to replace selected text. If something doesn't work, delete it all and start again.


Shortcuts to switch with effects between angles in Final Cut Pro 7

Right. The shortcuts were set to "1" and "2" on the numpad, which doesn't exist on my laptop. Adjusting the shortcuts seems to work. Still, it would be nice to associate effects to switches.


Open Terminal.app and enter the following to (re-)enable tap to click on the Trackpad:

defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true

Then, log out and log back in again.


Does the Appstore store a registered user's address?

Apple does store the registered user's address and uses it for it's own purposes (see: (Physical) Apple Store app), but it does not disclose any of this information to third parties. I've never seen In-App Purchases used for physical goods, and I highly doubt Apple will provide a developer/publisher with user information to send physical goods.


How many displays/monitors can a Mac Mini 2012 support?

From Everymac... http://www.everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i7-2.3-late-2012-specs.html

2nd Display Support:    Dual/Mirroring* 2nd Max. Resolution:    2560x1600*

*This model simultaneously supports 1920x1200 on an HDMI or a DVI display (using the included HDMI-to-DVI adapter) and 2560x1600 on a Thunderbolt or Mini DisplayPort display or even a VGA display (with an optional Mini DisplayPort-to-VGA adapter, which is compatible with the Thunderbolt port).


Rice may have worked on much older devices. The iPhone 4 and later have so small physical gaps, that if liquid gets past the liquid indicator sensors, you will need to desolder parts off the logic board and wash / repair the corrosion that happens in a matter of hours (worst case) or when drying (best case).

https://www.youtube.com/watch?v=wJr7Ts86wpk

Unless you need data off the device, it's best to get it to professional level repair or replace it when it fails to start like yours does now. Display problems indicate that power lines are shorted or corroded internally.


How to merge MBR mapped external drive partitions using macOS High Sierra?

If you select the View and Show all Devices you should then be able to select the Physical Disk.

This will let you select the Partition and delete the unwanted partition.

The linked question is different because the drive is partitioned using MBR and recent versions of macOS refuse to manage these for reasons known only to Apple (even though this was previously possible).


Mac OS X Mountain Lion - DNS resolving uses wrong order on VPN via dial-up connection

I had the same problem on my Mac, and after fixing it I have figured out that it was caused by FortiClient (VPN client). Even when FortiClient was disconnected - it's DNS still appeared in the scutil.

The solution for me was:

scutil
> list ".*DNS"

This will show you a list of all DNS configs, that will look something like:

subKey [0] = State:/Network/Global/DNS

subKey [1] = State:/Network/MulticastDNS

subKey [2] = State:/Network/OpenVPN/DNS

subKey [3] = State:/Network/OpenVPN/OldDNS

subKey [4] = State:/Network/PrivateDNS

subKey [5] = State:/Network/Service/forticlientsslvpn/DNS

To check each of them run: (until you find the problematic one)

> get key_name
> d.show

…and to fix it run:

> get key_name
> d.remove ServerAddresses
> set key_name

This is how it looked on my machine:

> get State:/Network/Service/forticlientsslvpn/DNS
> d.show
<dictionary> {
  ServerAddresses : <array> {
    0 : 192.168.30.6
    1 : 192.168.30.15
  }
  SupplementalMatchDomains : <array> {
    0 :
  }
  SupplementalMatchOrders : <array> {
    0 : 100000
  }
}
> d.remove ServerAddresses
> d.show
<dictionary> {
  SupplementalMatchDomains : <array> {
    0 :
  }
  SupplementalMatchOrders : <array> {
    0 : 100000
  }
}
> set State:/Network/Service/forticlientsslvpn/DNS
> exit


How do I batch set the files "date modified" to the "date created"?

Assuming JPG files:

for f in *.jpg; do
   olddate=$(stat -f %SB -t %Y%m%d%H%M "$f")
   touch -m -t $olddate "$f"
done

For other suffixes just adjust the pattern in the for statement accordingly.


Double tap the start button, and it will bring up a list of running programs.
Press and hold one of them, and they will start to jiggle, and show an - icon in the upper left corner.
Find the calendar program, and tap the -.
Rinse and repeat for any other apps you're having trouble with.  I like to periodically go through the list and close down apps I'm not using/won't use for a while

NOTE: Do this from the home screen. If you are in the app it won't appear in the queue of running apps.


Best practice on creating a launcher/updater for a bigger app on MacOS?

Best practice is to include the app in the package contents of the launcher.
As you said this can't be done, the second best solution would be to create a folder in /Applications. There are various apps which do this; most famously done by the Adobe suite, but there's others like MAMP.


Keychain access to Microsot_Intermidiate_Certificates

The password is blank for that keychain!

In the password window just hit Enter key without typing anything.

*I know it is a stupid thing to ask for a password that does not exist (unless it is set).

FYI, the Microsoft_Intermediate_Certificates keychain and the  Microsoft_Entity_Certificates) is used by MS Outlook for decryption of encrypted emails.*


How can an app be running yet not appear in the Dock?

It's possible that the plist of the application has been changed (eg, /Applications/Preview.app/Contents/Info.plist).  There is a setting LSUIElement, which if is true, causes the app to be hidden from the dock, the ⌘-Tab application switcher, etc.  See this similar question for more details.


How does one NOT save Messages history upon new login in El Capitan on iMac?

The pref doesn't say "Save history when you quit or logout" it says "Save history when conversations are closed" - i.e., when you hit the X to get rid of them - either permanently, or temporarily, depending on that pref.

If you want to delete the archive itself, you'd have to do that manually.
Files live in ~/Library/Containers/com.apple.iChat/Data/Library/Messages


Can I rename the "Pictures" folder without "Full Disk Access"?

If you want to do this as a regular user running in standard mode, then no - you have to ask the user to grant permission via Full Disk Access.

You can do it through other means by booting the Mac in Recovery mode for example, but I assume this is not something you want to do as part of a standard process. Granting the correct permissions is way easier.

Note that it is possible to grant the permission, make the change, and then remove the permissions again. This will help if you feel that it is too permissive to allow this software Full Disk Access forever.


If I turn off my Find My iPhone will it send a notification to the account holder?

Yes, disabling Find My iPhone on a device with an active Find My iPhone activation state will send an email to the email on file for the Apple ID that the iCloud account is tied to.


There is an amazing app that backs your contacts up in a .vsf file. You can then email or text yourself the contacts for later use or backup. Here is the link:

https://itunes.apple.com/us/app/my-contacts-backup/id446784593?mt=8

I'm not affiliated in any way with this app.


OS X: Change sharing-only account to 'normal' account

Open the Users panel in Preferences
Unlock the panel (if necessary)
Right-click on your changed account, select "Advanced Options..."
Reassign a login shell and a home directory to the user if necessary
Click on your changed account
Enable Administrator option
Wait for the user type changing to Admin in the user list
Disable Administrator option again


Prevent changing default app for some file extensions

I'm using OS X 10.10.1.

The file that stores the "Open With" data seems to be ~/Library/Preferences/com.apple.LaunchServices/com.apple.LaunchServices.secure.plist

Assuming you've setup all of your apps' "Open With" settings, you can ensure that they're not permanently overwritten by removing write permissions from the above file:

chmod 444 ~/Library/Preferences/com.apple.LaunchServices/com.apple.LaunchServices.secure.plist

It kind of works.

I tested this using a .docx file. I set my "Open With" preference to Pages.app and then removed the write permission of the LaunchServices plist file. I found that despite changing the permissions of the preference file, I was still able to change the .docx's "Open With" preference to Microsoft Word. However, after restarting the machine the setting was reverted to the one in the "com.apple.LaunchServices.secure.plist" file as it couldn't write the new data to the file.

I assume OS X stores in memory the "Open With" information if it can't write to the LaunchServices file, which is lost after a restart.

Not a great solution and I hope there's a better one, but it's a start.

You can revert the change by running this command:

chmod 644 ~/Library/Preferences/com.apple.LaunchServices/com.apple.LaunchServices.secure.plist


No, the iPad Mini 2 is eligible for an upgrade to iOS 10.
Have you tried upgrading via iTunes? It could be that your device doesn't have enough storage and is failing to update because of it.
If that doesn't work, you can make a back-up (either by connecting your iPad to iTunes, or backing up to iCloud), and then restore the iPad. Just connect your iPad to iTunes, go to 'summary' and then click 'restore'.


This is a legitimate folder required for macOS privacy settings.
Am I supposed to have access to "com.apple.TCC"?
Randomly deleting system files and folders is never a good idea. Leave well alone.


Like Tetsujin commented this is physical damage to the screen. Looks like the computer was dropped or something was dropped on it midway down on the left edge.

That is likely not covered under warranty but you should be able to attach another display to the computer and still use it until you can either take it to Apple for repairs or a third party that replaces screens on MacBooks.

You can start at an Apple store, they will at least be able to verify what exactly happened and quote you a repair price.


One specific user can't access the shared network drive, how to resolve?

Try sudo sysctl -w net.smb.fs.loglevel=255 and see what messages you get in the console window.

See https://www.experts-exchange.com/articles/4375/Troubleshooting-File-Sharing-Issues-with-With-Mac-OS-X-and-Windows.html for more info.


You can copy/paste the application from one Mac to another, they will run as they are self-contained (no files required in other locations).

You may not even need to login to the App Store to run them. I had to install Xcode and Final Cut Pro on a very restricted network environment where the App Store is blocked, the apps ran fine.

Licensing is an issue if you use the apps in a non-personal environment (businness, education). Download and install work the same way.


Reminders App Hangs after Mavericks Upgrade

I started to do the same as mentioned above -removing all location-based reminders including completed ones... (had to go directly to iCloud.com)

As I was going through, I found one that had "location: null", deleted it (or just removed the location part of it) and then, before deleting any more, tried my reminder app on my Mac computer (running Mavericks that wouldn't open/crashed). AND IT WORKED

So to be clear, you don't have to delete ALL location based reminders -just any that happen to have "null" in the location which, of course, messes with it's head! (I must've bumped it on/not done it right).


Cannot print period ('.') from simple AppleScript to VMware Fusion virtual machine

I don't understand why this isn't working, however I do have a fix. I figured out that doing tell application "System Events" to key code 47 sends a period correctly.

So, I wrapped my read into a conditional like this:

on run {input, parameters}

    #set input_file to "/path/to/file"
    #set file_text to read input_file
    set file_text to "test: ... hello ..."
    delay 0.3
    repeat with ch in file_text
        if ch as string = "." then
            tell application "System Events" to key code 47
        else
            tell application "System Events" to keystroke ch
        end if
        delay 0.1
    end repeat

    return input
end run


The repair tool was removed over security concerns where it could be use to export your keychain without your permissions. what we're left with are guidances you'll find throughout various blog articles explaining some specific problems with workarounds to "fix" specific issues related to the keychain.

How to Resolve Mac OS X Keychain Problems
5 Common Keychain Problems on Mac and How to Fix Them
Keychain Access Mojave

Most of these solutions involve deleting specific offending keys or toggling "Show Summary" or other aspects of a problematic key.


Is there a quick way to delete/update my Iphone contact list?

If I got it right, it looks like the software provided to you by Verizon not only transferred your contacts to your new iPhone SE, but it also duplicated some of them. So you're now asking for a quicker way rather than deleting those duplicated manually yourself.

You may follow two different paths:

Download Cleanup Duplicate Contacts (an app which function is explicitly the one you're looking for) and run it on your iPhone affected by the issue
Contact Apple Support as they may have a quicker and smarter way to help you in such issue related to your contacts list

I suggest you to follow the first option before contacting the Apple Support, even though that is a completely working way to solve any issue with any of your Apple related issues.

P.S. If you're thinking about contacting Apple, you may find useful the new Apple Support App now available for download on the App Store!


Booting into Internet Recovery after erasing OS

Just connect it to a cable and re-enter the Recovery Mode (press cmd-R after power-on, see: Startup key combinations for Mac for boot keys); normally Recovery will now see a connection to the Internet – if not, do you have a DHCP server running on the router?


iTunes crashes when I press refresh on the podcast pane

It looks like after the last iTunes update a second empty Podcast item appeared on the left side column. The original Podcast pane started crashing as described on the original question.

I've delete the original Podcast item from the left column (it seems the application treated it as a sort of legacy playlist). And re-subscribed manually to all my podcasts (the new subscriptions get to appear in the new item).

After some frustration, it all seems to work again now.


What does deliver higher transfer speed for Timemachine backup to ubuntu? NFS or AppleTalk (netatalk)?

NFS is known for higher performance than AFP or SMB; it is also a native protocol for unix based operating systems therefore it should be easier to setup.


How to adjust the left margin in Pages' Business Resume template

As posted in the original question, I was not able to move the left margin for body. What I did was selected other resume type (modern resume) that had the body already in the left. Also there you can further reduce the margin all the way to the edge. Then I copied the bits that i needed from business resume over it. Kind of a hack but it works.


TimeMachine backup over network - are OSX Server or Time Capsule more reliable than TM -> NAS?

When two or more client access the TM service at the same time then a corruption can happen. TimeMachine on a TimeCapsule will create a lock when a backup takes places allowing only one backup being active at any time. Most third party implementations will not mark the TM as unavailable when another backup already is running.

I have seen sparse bundle corruptions with a Qnap NAS. The advice (on the qnap) forums is to use one client only per NAS. Since I follow this advice (one mac will backup to my old TimeCapsule, the other mac backup to a TimeMachine service on the NAS) I had no more corrupted sparse bundles.

Edit:
Here is the post in the QNAP forum although the poster does not go into much details.


Is there a quick way of toggling the predictive keyboard on iOS 13?

No, this is currently the only way to turn off the predictive keyboard. As of not, no shortcut exists to do it in the Shortcuts app either.

This is also the only way mentioned by this Apple article.


Trying to re-sync Messages between iPhone and Mac

Well, after about an hour, I was asked (on my mac) if I wanted to add my cell number to Messages. Which I did.


Switching to an open application via BetterTouchTool (making it active)

A free solution: Use BetterTouchTool to trigger an applescript similar to the following, which will activate Safari if it's running, and do nothing if it's not:

if application "Safari" is running then
    tell application "Safari" to activate
end if

A not free solution: Tie a BetterTouchTool trigger to a Keyboard Maestro macro, which will give you plenty of control over when the application gets activated. The following example would have the same effect as the above AppleScript:

There are many ways to tie BTT to KM, but the easiest is having BTT trigger the hotkey used by KM (in this case, CTL-OPT-SHIFT-CMD-S).

Obviously, both solutions would work for any application, not just Safari.


Reactivate AFP von Mac High Sierra OS X Server (10.13)

The item "File Sharing" is entirely removed from Server 5.4. You can still configure the settings in System Preferences > Sharing > File Sharing though.

If you you want to manage file sharing from the command line use:

sudo serveradmin ...

to enable or stop AFP and

sudo sharing ...

to manage shares.

Example:

Enter sudo sharing -a /Volumes/Share/Users -A Users to share the folder /Volumes/Share/Users via AFP and the share name Users.

Check man sharing for further options and flags.

Shares on APFS volumes can't be shared via AFP!


Visited and unvisited Google search results have identical styles in Safari 12.1

On Safari Menu Bar, select Preferences > Advanced > Show Develop menu in Menu Bar, then Develop > Experimental Features, unselect Swap Processes on Cross-Site Navigation.


Why does Image Magick fail to read fonts?

I've found that installing GhostScript fixes the problem. Using brew: brew install gs


RAM upgrade MacBook pro 15 inch mid-2010 on "El capitan"

Officially your Model only supports up to maximum of 8 GB RAM. So you are at maximum already.

http://www.everymac.com/systems/apple/macbook_pro/specs/macbook-pro-core-i5-2.4-aluminum-15-mid-2010-unibody-specs.html

Your alternative is to upgrade from Hard Drive to SSD, that would speed things up.


What causes "The Finder can't quit because some operations are still in progress" error message?

Here's another way to Force Quit an application:

Click the Apple Menu
Hold Shift, and notice that the 'Force Quit...'
menu item has changed to 'Force Quit [frontmost app name].'
Select 'Force Quit [frontmost app name]' to force quit the Application.


Get Current Path to Script within AppleScript and Append Subdirectory

You can get the path of the current script with path to me.
Extracting the path to the directory containing the script is slightly tricky:

tell application "Finder"
    set current_path to container of (path to me) as alias
end tell


UPDATE: Updating to 10.10.4 fixes this problem. In this point release discoveryd is replaced by the previously ousted mDNSResponder.

The originally supplied answer follows...

This is caused by an interaction with a daemon called discoveryd (that is present in Yosemite OS X 10.10.0 to 10.10.3) and the sleep proxies that are present within Apple TVs and Airports.

I outlined a workaround here; which is basically disabling "Wake for Network Access", which is also suggested in the post you linked to. You could also stop using your Apple TV/s and Apple Airport/s if you are in a position that allows you to do so.

9to5Mac reports that discoveryd has been dropped in OS X 10.10.4 beta and replaced with the previously ousted mDNSResponder daemon. So this problem should be fixed in OS X 10.10.4.


Drag-dropping M4R Ringtone to iTunes 12.0.1 to appear in iTunes ringtone folder?

I just tested and the process worked correctly in iTunes 12.0.1. However, I did initially encounter an issue when I tried to add a file that had the same name and was the same size as a song already in my iTunes Library.

Here are the steps I followed:

I dragged-and-dropped MyFile.mp3 into iTunes.
I right-clicked on it and chose "Create AAC Version".
I right-clicked on the AAC version and chose "Show in Finder".
I dragged-and-dropped the AAC version onto my desktop, creating a copy.
I renamed the file on my desktop to MyFile.m4r.
I dragged-and-dropped the file back into iTunes. This didn't do anything. However, having read that iTunes sometimes refuses to import files like this, since it thinks they are identical, I removed the AAC version from iTunes.
I again dragged-and-dropped the m4r version into iTunes, and this time it showed up in the Tones section of the Library correctly.


Moving email from Gmail to Mail.app locally

I'm guessing you might need to manually delete the messages in Gmail as well. I'm not familiar with copying mail to a local folder, but I do know that Gmail is VERY protective of keeping its mail within its service as much as possible.

That would be the best advice I can offer.


How to "drop a pin" for iPhone AND Android users?

If you use the iOS Maps Share Location feature via email, the recipient gets a message with a Google Maps link to the specific location, which is openable in anything with a browser (although mobile devices may open it in a Google Maps app). It also attaches
vCard containing the address of the pin and the Google Maps link.

You could also use the email feature to just get access to the link directly, and copy it into your medium of choice, discarding the email.


I'm having trouble with my administrator information

Boot off the recovery partition, open up terminal, and type

reset password

That should bring up a dialog that will allow you to change your password If, for some reason, the default account is not set as admin, you will need to boot into Single User Mode (⌘-S when starting up) and type:

mount -uw /
rm /var/db/.AppleSetupDone

This makes the file system writeable, and then removes the file that tells OS X that you've setup the system. Hit Ctrl-D to continue your boot and you should get the "Welcome to Macintosh" startup and you will be able to setup a NEW account (make sure it is a new account). This account will be an admin account.


I can see three ways to turn off an iPhone X.

Press and hold any Volume key + the side lock key, together. Press and hold these keys for a few seconds and the “slide to power off” option will appear on the screen.
Go to Settings >> General >> Shut Down.
Using Assistive Touch. Just go to the “AssistiveTouch” menu, then select “Device." Tap and hold the Lock Screen icon. Within seconds this will bring up the “slide to power off” option on your screen.

Source - Mobipicker


Upgrade Snow Leopard Server to Lion Server. What problems should I expect to arise?

Well, I would advice clearly against doing this for a live system at the moment. Don't fix it if it isn't broken.

Lion Server has a completely revamped UI, it takes quite a bit of time to reconnect all the bits and pieces. It does a lot under the hood which used to be exposed in Server Admin.
DNS / DHCP / other low level services are still available, but not exposed in the default UI anymore.

Set aside a separate machine, learn to find your way in the new UI, and then you may choose to upgrade your live system or not.


Yes this is fine (assuming you refer to the 60W Magsafe) and this has been confirmed by Apple to be safe

  Although you should always use the proper wattage adapter for your Apple portable, you can use an adapter of a higher wattage without issue.


Can you still ’undo’ on the iPhone in iOS 11?

Yes!

On your iPhone do as follows:

Open Settings
Tap on General > Accessibility
Swipe up until you see the Shake to Undo option
Tap on this and enable it
Exit Settings


Allowing VNC to control computer under 10.14 (Mojave)

I couldn't find an answer online so I took to checking for incoming connections and also in the list of active processes so I could find how to fix it. You need to grant Accesibility privileges to AppleVNCServer which you can find under /System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer