Hard drive died, how do I get the OS X on new hard drive?

Buy an SSD instead of an HDD if you can afford one. Believe me, you'll thank us. You currently have a MacBook Pro with a fast Intel processor but an extraordinarily slow hard drive. Your failed hard drive was your computer's main performance bottleneck. Replace it with a fast SSD from a reputable manufacturer like Samsung or Intel, and your computer will perform far better than new.
You could reinstall Lion using Internet Recovery. But, it would be much better to skip the outdated versions and install Yosemite. You can create a bootable Yosemite installation disk using an 8GB USB flash drive and a friend's Mac. Here are Apple's instructions for creating a bootable Yosemite install disk from an 8GB USB flash drive:

  Download the OS X Installer app from the Mac App Store.
  Mount the volume you want to convert into a bootable installer. This could be
  removable media such as a USB flash drive, or a secondary internal partition.
  You can then use the createinstallmedia tool to convert the volume from step
  two into a bootable installer based off the installer app from step one. To learn how to use createinstallmedia, use the following command in Terminal:

  /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia

After you have created a Yosemite installation disk, insert it in your Mac's USB port and hold down Option as you power up. You will be able to boot from your Yosemite installation disk, just like you would from a Lion installation DVD.

Non-technical users may prefer a more detailed walkthrough of creating a Yosemite installation disc.


Mail is showing me garbage for certain messages

It looks like your fonts got borked somehow.  This is most likely to happen if you've recently installed an application that adds or changes fonts, which includes apps like Office, iWork, the Adobe suite, and many more.

I'd start out troubleshooting Font Book.  Apple's KB article about Font Book has information about how to address this.

For troubleshooting, I think that you should try them in this order:
1. In Font Book, go to File > Restore Default Fonts. This is the easiest and seems the most likely to resolve your issue, since fonts in email are highly likely to be a default font.
2. In Font Book, validate your fonts (it's under the File menu).
3. In Font Book, check for duplicated font (it's under the edit menu).

Between each of these steps, quit Mail and restart it to see if it works; font changes won't show if you haven't restarted Mail.


The Genius Bar will reinstall your OS and/or diagnose any potential hardware problems at no charge regardless of warranty status.  The only time they will require a fee is if your Mac is indeed out of warranty and requires a hardware repair, at which time you would need to pay in order to have the repair performed.

If visiting an Apple store is an option for you then by all means don't let your warranty status stop you from visiting.  They should be able to install 10.6 since it came with your Mac and/or 10.8 if you can show proof of purchase for it.

For the actual question, you can view the log file while performing the installation under either File > View Log or View > Log, I don't have an install in progress at the moment to reference.  One of those should show you the log from the installation which would hopefully give you a reference as to what part of the installation failed.


It seems to be a localization bug. Changing the system language to English reports the correct year.

Apple's website and the script bmike linked below return the correct year.

Edit: In MacOS 10.12 (Sierra), it now shows the correct year when Swedish is set as the primary language.


Changing AppleScript-created date-based folder structure

The part of your script that names the folders is this line:

set ThisFilesFolder to SortFolder & (do shell script ("date -r " & ThisFilesEpoch & " \"+%b-%Y\"")) & "/"

However, in my brief test of your script, it doesn't appear to create the folder structure you described at all, which isn't a surprise to me given that the shell command used to generate the date string from which the folder is named is this:

date -r %time% "+%b-%Y"

where %time% is inserted by way of the variable ThisFilesEpoch and represents the number of seconds since the Epoch (January 1, 1970) that the file (or, rather, its inode) was created.  This shell function, date, takes this value (a large integer), which it understands as being a value in "Unix time", and re-formats it using a canonical representation as given by the tokens %b (representing a three-letter abbreviation for the month) and %Y (representing a four-digit number for the year).

So, for instance:

date -r 1534615274 "+%b-%Y"

returns:

Aug-2018

into which the files from August 2018 I had in my chosen folder were moved.  It did not create separate day-of-the-month folders, nor even separate year folders; only "month-year" folders.  So I am confused that you appear to have described what might be a different script entirely.

The script also has a number of qualities about it that irk me a great deal, such as:

Its lazy usage of try...end try;
The insertion of literal single quotes surrounding a variable being used as part of a string, e.g.

do shell script "find '" & SortFolder & "' -type f"

instead of

do shell script "find " & quoted form of SortFolder & " -type f"

This bizarre formulation:

if text (length of text of DroppedFolder) of DroppedFolder is not "/" then...

which could be written as

if text -1 of DroppedFolder is not "/" then...

or as

if the last character of DroppedFolder is not "/" then...

or even

if DroppedFolder does not end with "/" then...

And repeated use of do shell script, which is fine as a command tool to be invoked thoughtfully when needed, but when it populates the script as densely as it does this one, one wonders why the script wasn't just written as a shell/bash script to begin with.  It's also very costly in terms of overhead to create and destroy shell processes one after another like this script does.

Given these stylistic and functional drawbacks, plus the confusion over what the script is supposed to be doing currently versus what it actually appears to do, I felt it warranted a re-write:

use Finder : application "Finder"
property rootdir : missing value

# The default run handler when run within Script Editor
on run
    using terms from scripting additions
        set root to choose folder
    end using terms from
    set rootdir to Finder's folder root                         -- '
    sortFiles()
end run

# Processes items dropped onto the applet.  The handler expects one or more
# file references in the form of an alias list, and will process each item in
# the list in turn.  If an item is not a folder reference, it is ignored.
# For the rest, the contents of each folder is reorganised.
on open droppedItems as list
    repeat with drop in droppedItems
        set rootdir to Finder's item drop
        if rootdir's class = folder then sortFiles()
    end repeat
end open

# Obtains every file in the root directory and all subfolders, moving them
# to new folders nested within the root directory and organised by year, month,
# and date of each file's creation
to sortFiles()
    repeat with f in the list of fileitems()
        set [yyyy, m, dd] to [year, month, day] of (get ¬
            the creation date of Finder's file f)               -- '

        set mmm to text -3 thru -1 of ("00" & (m * 1)) -- e.g. "008"
        set mm to text -2 thru -1 of mmm -- e.g. "08"
        set dd to text -2 thru -1 of ("0" & dd) -- e.g. "01"

        (my newFolderNamed:yyyy inFolder:rootdir)
        (my newFolderNamed:[mmm, space, m] inFolder:result)

        move Finder's file f to my newFolderNamed:[yyyy, mm, dd] ¬
            inFolder:result                                     -- '
    end repeat
end sortFiles

# A handler to house a script object that enumerates the contents of a
# directory to its full depth
on fileitems()
    script
        property list : every document file in the ¬
            entire contents of the rootdir ¬
            as alias list
    end script
end fileitems

# Creates a new folder with the supplied name in the specified directory,
# checking first to see whether a folder with that name already exists.
# In either case, a Finder reference to the folder is returned.
to newFolderNamed:(dirname as text) inFolder:dir
    local dirname, dir

    tell (a reference to folder dirname in the dir) ¬
        to if it exists then return it

    make new folder at the dir with properties {name:dirname}
end newFolderNamed:inFolder:

I would urge you to test this script initially on a test directory containing sample files.  In fact, the worst case scenario is the same as with your current script, which is the situation where you choose the wrong directory by mistake.  Assuming the correct directory is selected, then the worst case scenario is that files don't get moved, so it's generally a very safe script.

I re-wrote the open handler too, to (hopefully) allow it to cater for multiple items being dropped onto the applet.  This means you could, for example, drop two folders onto it and have both folders' contents re-structured.  However, I haven't tested this.  Again, the worst case scenario here is that it doesn't do anything, which will be the case if I am wrong about what type of file reference gets passed to the open handler (I assume it will be alias objects).


Can I regenerate the the photo thumbnails that have turned black after restoring my iPhone?

Wait and see. When I looked the following morning, the black thumbnails had all been regenerated automatically.


How can I completly clear all browser history, caches, and keychain passwords?

If you're using Safari, go to Safari -> Reset Safari and select check every box. Then click reset.

If you're using Chrome, click Cmd-Shift-Del and check the desired boxes. Here's an image:

Hope this helps!


Run two 4K and one non-4K external display from late 2013 Macbook Pro

You are outside "supported" territory with using three screens on that hardware.

https://support.apple.com/en-us/HT204154 - thunderbolt FAQ
https://support.apple.com/en-us/HT206587 4k and 5k and beyond

That being said, you can try connecting things and Apple hardware is known to run more displays than the "support" document allows. Usually it's due to driver updates that can still juggle all the connections but that the performance isn't there or you end up with glitches like frozen screens or just not the frame rates Apple likes to see on supported hardware combination.


As Rob said, your lid switch might be the problem.

I would suggest following steps:

Reset your SMC and the PRAM/NVRAM.
Run Apple Hardware test to see if it comes up with anything.
Check your Pmset -g profile.

FYI:

There are 2 small magnets mounted on the lid (along the top edge)

You can find them by using paper clip.

On the opposite side (of closed lid) there are 2 sensors, that normally should last forever (unless you put a strong magnet on them so they are stuck now), but then there is nothing that does.


How to connect MacBook Pro to an iMac with a 3rd party keyboard?

Technically speaking, you're not pressing F2 (yes, it's labeled "F2), you're actually pressing "Brightness Up."  To actually get the "F2", you have to press fnF2

You can confirm with with a utility called xev which will display the scan codes of what you're typing.  The actual "F2" comes up as scan code 128 and will do so on both your Apple (when pressing the fn) and Dell keyboards.

Since you've already tried turning off "use all F1, F2, etc. keys as standard functions keys", your keyboard doesn't support this.  You most likely need an Apple keyboard or at minimum, a keyboard with "enhanced" function keys; with a fn to change the function.


What are the Time Capsule performance if used as a File Server for 3-4 clients?

The drive is a nice, fast server grade drive but the controller is underpowered to be a NAS for professional video work.

That being said, even with two people reading / writing lots of small files, the Time Capsule works surprisingly well. At times when 3 or more people are hitting the drive at the same time for small IO, you will certainly see a slow down. Much more so than on a real NAS or server that has RAM to cache the filesystem and not be limited to the physical disk access.

So if the usage is low or you are on a tight budget, have at it!

Do be sure to have one of your clients be responsible for backing up all data stored on that volume since most backup solutions do not read from a Time Capsule directly. Using the built in clone tool is not at all optimal for production use, but is fine to make a snapshot over night or over a weekend when you have occasional cause to snapshot the data.


How do I delete an app purchased through the Mac App Store?

There's no delete mechanism in the App Store. You can use a normal app-removal procedure to get rid of it. Apps leave config information and what not lying around that's outside of the .app container, so just dragging the .app container to the trash doesn't uninstall it completely. An uninstaller app like TrashMe will find and remove most of the little bits apps strew about your profile.


I just solved my own problem with an NVRAM/SMC/PRAM reset. The world may never come to understand what secret Mac fu cats possess.


Map Parallels shared folder to drive letter

CentOS (like all Linux distros) doesn't have "drive letters" - that is a throwback to the toy operating systems that were installed on some computers in the 1990's and early this century. I believe they went by the name "Windows".

Instead it uses mount points.

Once you have installed the Parallels tools you can use the "Shared Folders Tool" to specify the mount point for the folders that are being shared from your Mac.


Is is possible to deactivate the Lightning port?

No, any version of iOS doesn't allow the deactivation of the Lightning / 30-pin port.

Plugging an iOS device into a new computer will prompt a message on the device whether or not to "trust" that computer or not. "Trusting" a computer allows normal access, otherwise the device would only charge and disallow any data transfer... although it seems in your environment that would be of little benefit.


Damaged or Incomplete apps on El Capitan

I also experienced something similar for Voila, Omnifocus etc. I had to delete and re-download from Mac App Store. I guess it is pretty normal after El Capitan upgrade.


Automator: Combine PDF pages double or triple in size

I solved the problem using PDF Sam. Description from website:

  Merge, split, extract pages, rotate and mix your PDF files. Runs on
  Windows, Mac, Linux and any other operating system where a Java
  Runtime Environment (with JavaFX) version 8 or above is available.
  Free and open source since 2006.

Just download the program, which is a PDF tool, and then stick your PDF in it. Once you've done that, you can chose the option to split the PDF.


What version of iOS is my iPhone capable of running?

iOS 6.1.6 is the highest supported iOS version you can install on an iPhone 3GS.

Here is a handy iOS compatibility chart for iPhones (and other iOS devices).


How do I prevent search terms from being copied between applications?

To give you an answer the best I can with the research I've done. This is a relatively new addition in the OS. If I am not mistaken since 10.8 and what happened is Apple changed the Helper daemon.

I do not know of a way to configure the helperd parameters. My recommendation is to give Apple feedback via http://apple.com/feedback/ and ask that they give the ability to toggle it or remove it all together.

Additionally ask the mad scientists here to include the functionality
http://www.bresink.com/osx/TinkerTool.html


First of all, empty your trash, reboot & try out disk utility again if you haven't already. If that doesn't do it though you'll have to dig a bit more.

Here's the terminal command for finding hidden files & folders: defaults write com.apple.finder AppleShowAllFiles YES. Put sudo in front of that if it doesn't work - you'll have to enter your user password in this case. Once you've done this restart finder by clicking the apple icon in the menu bar and heading into 'Force Quit...'.

Now if you open Finder, select 'Go' & 'Computer' from the menu bar, go into the drive in question. I would put this into 'list' view and make sure that the size option is on. For any folders that aren't showing their size, highlight them (hold command + click to select multiple) and then hit command + i to pull up the Get Info menu for them. You'll see that under the size field they're 'Calculating Size'. Just keep those windows up & wait for them to finish - for the sizes you're dealing with this could take potentially hours. Add them up again & see if the size is accounted for.

If there's still 500gb or so missing I would recommend to backup & reinstall OS X. You can select only exactly what you want to using Time Machine, see the size before you even finish backing up, and then restore.


Building on lhf’s comment above, when you view an image in Safari it’s actually still HTML under the surface, so it’s possible to apply a custom stylesheet. This style declaration should do what you want. I've tested it in Safari 6.

html > body > img:first-child:last-of-type { display: block; margin: 0 auto; }

You'll need to save that line as a file with the extension ‘.css’, then choose it via Safari's Preferences → Advanced → Style sheet setting.

Here's the logic I used to come up with the code.

  If there is an <img> element that is:

  a direct child of a <body> element, which is itself a direct child of an <html> element
  the first element within the <body> element
  the last element of that type (i.e. <img>) within the <body> element

  …then center it by setting the side margins to be calculated automatically.

It's very unlikely (though not impossible) that you could encounter a page with only one image on it that happens to be the first element on the page, in which case this rule would also apply. Other than that it should work as you intend.


Display seconds in addition to hours and minutes on the Clock

If you look at the icon for the Clock app on your home screen it has a second hand. For most cases this is sufficient for me.


How can I set up an iOS compatible network pdf printer?

1 - Install PDFwriter (free). It will allow you to add a new printer in Settings > Printer & Scanners > + button. When you print using this new printer, it will generate a PDF file under /Users/Shared/[username]/

2 - Install handyPrint (donationware). It will allow you to share the virtual PDF printer with the mobile devices.

You might need to disable or create a custom rule on the Mac's firewall so that the devices will find the printer. Change this under Settings > Security & Privacy > Firewall.

PS: I have only used on Mavericks and iOS 6, but I'm 97,21% sure it will work on Snow Leopard and iOS 5.

PPS: There might be similar programs to acomplish this, you don't really need these ones. If you want to see alternatives, search for "virtual printer mac".


Do I need a sine wave UPS for late 2013 Mac Pro?

The CyberPower rep is only partially correct:

Yes, you do have a PFC power supply
No, you don't need a pure sine wave UPS to run the Mac Pro specifically or any Mac generally.

Mac Pro Power Efficiency
Apple puts out an excellent document (PDF) on the efficiency of the Mac Pro.  But specifically, it get a 90% power efficiency rating at 100V, 115V and 230V which far exceeds the 85% minimum threshold set by the EPA to be Energy Star v6.0 compliant

From EPA Energy Start requirements:

Internal power supplies: 85% minimum efficiency at 50% of rated
output, 82% minimum efficiency at 20% and 100% of rated output, with
Power Factor > 0.9 at 100% of rated output for power supplies with >=
75W output power

Apple Power Supplies
Apple's power supplies from the base model MacBook to the top of the line iMac Pro all use power supplies with high efficiency

MacBook Environmental Report
iMac Pro Environmental Report

To achieve this level of efficiency, this basically requires PFC.  Looking at a tear down of a MacBook power adapter, we can see the PFC circuitry.

So, bottom line is that your Mac Pro has a PFC power supply
UPS with sine wave output.
Unless you are running sensitive (and that being the operative word) equipment that will react badly to non-sine wave or simulated sine wave power output, you have no need for this.  By sensitive, I mean things like scientific instrumentation, network communication gear (telco), high-end audio electronics, etc.
Apple's products are robust enough to withstand the fluctuations in standard UPSes and from the electrical grid.
From personal experience, I have used UPSes (Uninterrupted Power Supply) from APC and CyberPower purchased at the local big box store on sale; and as a resident in FL with frequent power outages during the summer months, neither have failed to keep my computers (Apple, Dell, Synology, etc.) running without issue.
TL;DR
Yes, you have a PFC (Power Factor Corrected) power supply.  All Apple computers have a PFC power supply.
No.  You don't need a “sine waveform UPS”.  It will not hurt to get one, but your benefits will be negligible; a standard UPS will work fine.
It's likely the rep is reading a Feature/Benefit chart and attempting to up-sell you on a product you don't really need.


Blurred fonts - Monitor NEC EA274WMi - MacBook Pro retina 13 - Yosemite

Try disabling LCD font smoothing. Go to the Apple menu, choose System Preferences, then choose General. It's the last checkbox at the very bottom.


There is no way. iMessage is a proprietary service, and the sender needs access to the receiver's public key to send a message. Techcrunch explains the whitepaper Apple released on iMessage's implementation in this way:

  When someone starts an iMessage conversation with you, they fetch your public key(s) from Apple’s servers. Before that message leaves the sender’s device, it’s encrypted into something that only your device knows how to decrypt.

As email doesn't have that handshake component, there's no way for you to encrypt the message client-side.


Is it possible to quit TextEdit by clicking the red x of the last open file (w/o add'l software)?

The document window's close button in TextEdit does just what it's supposed to do, it closes the document window. It's not there to close the application, that's what ⌘Q is for.

So, to answer your question, no you cannot quit TextEdit by clicking the close button of a document window by itself, you'd need to use a third party app to add that functionality.


How to change label of a contact field with only the keyboard?

If you go to system preferences , accessibility, voice over training, it teaches you how to move around screen and select controls all with using the keyboard.


Update trusted phone number: Cannot tap "keep using current number"

The problem got worse. Later I was unable to tap the screen while in settings.

Restarting the iPhone shook it loose.

I look forward to the day when restarting your device fails to fix any problems.


How do I recover an "invisible" OS X boot option in BootCamp (running on a 2013 MBA)?

I managed to run more diagnostics against the disks from the Windows side. From the BitLocker password screen, choose something like "Esc", "Esc", "Skip this drive", "Advanced", "Utilities", "Command-line" (please correct), then use manage-bde -unlock to unlock the BitLocker drive, and use various wmic commands to examine the disk partitions. Through this I confirmed:

disk0s2 is my OS X partition. There are some tools which can change Guids in the GPT; it seems this is what happened to my OS X partition. This explains why OS X doesn't recognize it, but when booted into Windows I could access the data in it no problem.
disk0s4 is my Windows partition. To the best of my knowledge, the Invalid signature in fsinfo block errors I was getting are due to it being fully BitLockered which means the encrypted bits on disk don't look like a valid partition. Windows can apparently recognize the signature and warn you on trying to read from a locked BitLocker partition.

These are all the possible solutions I came across (largely through Apple's very helpful Tech Support), including the things that didn't work for me and why:

Backup your existing partitions as images to an external drive via the "New Image" option in Disk Utility. I do have a 1TB backup drive, but it's NTFS formatted and apparently OS X can't write to NTFS disks by default (try this to enable NTFS write access on a standard OS X installation - but it doesn't work in Internet Recovery as the terminal gives you access to a read-only file-system only).
Backup your existing partitions as images to an external drive via [name of Windows program here]. I couldn't find any built-in Windows utilities capable of this, and due to my Windows login being disabled I couldn't access a full Windows environment to run any proper backup tools. I tried running them from the BitLocker command-line but I couldn't get any of them to work, I assume because the environment is heavily cut-down (and most of them insist on "installing" rather than just "running").
Backup your existing files by transferring them to another Mac via Target Disk Mode - I have no second Mac on hand to make this work.
Just run Repair Disk - it is reportedly very unlikely to damage anything. When I tried this it just said it couldn't repair the disk - possibly because the BitLocker partition doesn't look like a valid partition (see above). A bit of an anticlimax after agonizing over the decision for days...
If you have the Invalid BS_jmpBoot in boot block 000000 error, someone wrote a utility which can reportedly fix the GPT up again. I couldn't use it because I couldn't find a way to install all it's dependencies (e.g. Python...) in the Internet Recovery read-only file-system.
Just erase some/all partitions and start again - in the end I decided to take the plunge and erase the existing corrupted OS X partition, leaving the rest untouched (once I'd made myself relatively certain which one was OS X). Disk Utility makes it very straightforward to erase a single partition and install OS X on it.

Erasing the OS X partition and re-installing has now resulted in me being able to dual-boot OS X and Windows 8 via BaseCamp as desired. Next time I'm in Windows I'll have to check whether I do indeed have "MacDrive" installed, and remove it if I do.


Does Google Photos replace images on the device with low quality versions the way iCloud does?

Uploading photos to Google Photos doesn't replace or change anything on the phone.  The application will ask you if you want to remove the photos from the Camera Roll after uploading them.


How do I open a URL with a custom scheme in Yosemite with cron and open?

I don't know if opening the URL scheme via Safari would help?

open -g /Applications/Safari.app citrixonline://blahblah; killall Safari


I don't believe it will be 4:3. One of the requirements for ATV was a widescreen TV. I think it always assumes a 16:9 ratio. As @matthewpavkov suggested, best bet would be to get the tele to force the input into 4:3, but it's very model dependant if the tele actually supports that.

Update: I stand corrected, there seems to be a thread related to this exact issue on the MacRumors fourms http://forums.macrumors.com/showthread.php?t=658621 However, it seems that it stopped working on the 3.x firmware, so there's an even more hacky way of achieving it here. Sounds horrible though! http://forums.macrumors.com/showthread.php?t=811425


The short version:

Original iPad, no.
iPad 2, yes.

The details also matter for some features, per http://www.apple.com/ios/whats-new/#compatible:

There's also the device specific features fine print:

Turn-by-turn navigation is available only on iPhone 4S, iPhone 5, and iPad 2 or later with cellular data capability. Flyover is available only on iPhone 4S, iPhone 5, iPad 2 or later, and iPod touch (5th generation).
Siri is available on iPhone 4S, iPhone 5, iPad (3rd generation), and iPod touch (5th generation) and requires Internet access.
FaceTime video calling requires a FaceTime-enabled device for the caller and recipient and a Wi-Fi connection. FaceTime over a cellular network requires iPhone 4S, iPhone 5, or iPad (3rd generation) with cellular data capability.
Offline Reading List is available on iPhone 4 or later and iPad 2 or later.
Made for iPhone hearing aids require iPhone 4S or iPhone 5.
Panorama is available on iPhone 4S, iPhone 5, and iPod touch (5th generation).


Macbook started to consume battery more quickly

I would look at top -u to see if there are active processes that should not be there.

I would look at the system profile: Apple => About This Mac => More Info... => System Report => Power and see what it says about the battery... In particular the Condition and Cycle Count.

To compare two Macs, be sure the brightness is the same and both are spinning down their disks.


getting filters to use reply-to rather than the originating email address

You could use the

Rules in Mail and

When message arrives from ??

Forward to: someones.email.com

with predefined and automated message text that you write only once.


Numbers 3.6: Change text depending on value

To be honest, your question is a little unclear, so If I've misunderstood it please clarify.

What you need is a formula in A2 that is something like the following:

=IF(A1="0-19",C1,IF(A1="20-39",C2,IF(A1="40-59",C3,IF(A1="60-79",C4,IF(A1="80<", C5,"N/A")))))

The above formula should display in A2 the text you have in cells C1:C5 depending on what's in A1. For example, if A1 = "40-59" then A2 will display whatever text is in cell C3.

However, if you meant that the formula should work so that the text in cell C3 displays in cell A2 if A1 is any value from 40 up to 59, then the formula would be along these lines:

=IF(A1<=19,C1,IF(A1<=39,C2,IF(A1<=59,C3,IF(A1<=79,C4,IF(A1>=80,C5,"N/A")))))

Once again, if I've misunderstood your question, please clarify.


AppleScript: Clicking a button in a dmg file

The code snippet you borrowed doesn't relate to what you're trying to achieve, so you can safely throw that away.
Try to avoid looking for solutions that involve simulating clicks or keypresses, as these sorts of scripts are really case-specific, liable to break easily and frequently, and prohibit any additional interaction between the user and the computer whilst it is running.
A .dmg file (or disk image) is an item on the filesystem, which means it can be manipulated using AppleScript.  You don't even have to have the .dmg window open.  It sounds like you already know the name of the file you wish to be opened.
Let's say that when you double-click your .dmg file to mount (open) it, the name of the disk that appears on your desktop (or in the sidebar of a Finder window) is "my dmg" (this may be different from the name of the .dmg file itself, but it may be the same).  Let's then say that there's a file called "some file.txt" contained within the disk image that you wish to open.  The path to this file will be located at: /Volumes/my dmg/some file.txt
Therefore, your entire AppleScript that will open the file (as if the user had double-clicked on it) will be:
tell application id "com.apple.finder" to open the ¬
        POSIX file "/Volumes/my dmg/some file.txt"

or alternatively:
tell application id "com.apple.finder" to open ¬
         file "some file.txt" of disk "my dmg"

Both of these scripts are essentially identical.
However...
A limitation of both the method I've outlined above, and of your original notion involving simulated clicks, is that you won't be able to dictate that the file being opened should appear on a different desktop/screen that isn't the one that is currently active.
Clicking on the file necessarily means that the active desktop/screen switches to the one on which the window containing the file is open.  You can perform a similar switch to in AppleScript, so that the desktop/screen on which the .dmg file is open becomes the active one:
tell application id "com.apple.finder"
    open disk "my dmg"
end tell

This would be incorporated into the previous code to produce a combined script that looks like this:
tell application id "com.apple.finder"
    tell disk "my dmg"
        open it
        tell its container window
            open file "some file.txt"
        end tell
    end tell
end tell


How to fix curl: (35) SSL certificate problem: Couldn't understand the server certificate format?

Open chromedriver_mac64.zip in your browser. If you see this message:

<Error>
  AccessDenied
  <Message>Access denied.</Message>

    We're sorry, but this service is not available in your location

</Error>

Then Google is restricting your access. Simply download that file with an alternative network/IP/location. Then move the file to ~/Library/Caches/Homebrew/ or /Library/Caches/Homebrew/ due to the installation of Homebrew. Then try to reinstall. Homebrew will use downloaded file.

Alternatively you can use a network proxy in the terminal while running brew command.


My Mac Book Pro Safari and Settings Icon Disappeared

This has happened to quite a few people, myself included.

I tried various methods of fixing it, but in the end the only way I managed to get any results was to reboot a few times.

It happened to me on various icons over about a week but then after one certain reboot they all came back and I’ve had no issues since.

You’re more than welcome to try methods discussed online or on other questions here, but none of them worked for me personally.


What does this Japanese message in the App Store when updating apps mean?

It says the Apple ID you used is invalid.


How do I launch a file with the extension .darwin.amd64?

If there is no file extension, then it is most likely Mach-O file format. This kind of files without file extension can be executed within terminal by dragging the file to the terminal window and pressing enter. Another way is to use terminal to cd into the directory containing the file, and executing ./filename.darwin.amd64, of course replace filename with your actual filename.


How old would a Macbook Pro need to be in order to have a non-64bit Intel processor?

I'd recommend he check rather than assume based on age. Here are directions on How to tell if your Intel-based Mac has a 32-bit or 64-bit processor

http://support.apple.com/kb/HT3696


Look for a little cloud icon to the right of the song name... That mean's it's iTunes match. I had a bunch of songs I would never have gotten on my phone that kept coming up in genius shuffles. Turning off iTunes match did the trick.


Mojave: Default start time of new events

You can choose the time to start / end your day with macOS Calendar - it's in the general setting.

For specific events, Calendar app should do natural language scheduling like many third party calendar apps have done for quite some time.

https://flexibits.com/fantastical

Fantasitcal has a free trail and is worth every penny in my experience, but you can use native new event controls to just make your appoint for the date and time of your chosing. Siri will do this as well for you, you just need to be in a place where you feel comfortable speaking to your Mac and enable Siri.

  Make an appointment for next Wednesday at 11 am

And with the text above, you should see this completion (for the next few days at least when another next Wednesday will be selected).


Macworld did some tests back in 2008 with heat ranges of the Macbook Air, http://www.macworld.com/article/1132216/mbair_temp.html. I wouldn't risk it though. You never know what could happen.


Is picture location info retained when I share a photo?

Yes.
This is a feature usually only offered by professional photo software. Removing metadata (like EXIF or GPS) requires an additional step by the one that wants to share his/her photograph.
Aperture for example offers to export picture as either an original or a version. When you choose to export a version the  meta- and gps-data is removed from the original.
I know from experience that sharing via the following options does not remove these and from pictures:

Mail for OS X
Tweetdeck for OS X
Uploading via a web browser

Here's what the metadata of an export as original look like:

Here's what the metadata of an export as version by Aperture look like. This is an exported version of the same original. The data will differ depending on the export options for a version.


27" iMac w/ Thunderbolt in Target Display Mode

No. Devices connected to the iMac's other ports will still only be accessible by the iMac, not by the connected MacBook.

You can approximate some of the functionality you might get from this by using various software solutions to share your iMac's devices - such as sharing drives over the network, or sharing the mouse and keyboard using Synergy, etc.


Xcode stops running when I don't watch it for a while. What's wrong?

This may be the built in "undocumented" to non-developers feature of Lion called Automatic Termination that is causing Xcode to quit when you don't want it to.

As noted in "Lion Is a Quitter"

  Lion will quit your running applications behind your back if it decides it needs the resources, and if you don’t appear to be using them. The heuristic for determining whether an application is “in use” is very conservative: it must not be the active application, it must have no visible, non-minimized windows — and, of course, it must explicitly support Automatic Termination.


When you changed your username, did you also change the name of your home folder. Without more information, my best guess would be that you changed your username by going to System Preferences→Users & Groups, right clicking on your account and choosing "Advanced Options". There are fields there where you can change your username (inexplicably labeled "Account name") and your home directory.

You should never change either of these for the account you're currently logged in as! Log in as a different user.

Changing the "Home directory" field only changes where the account looks for its home directory. It does not actually rename the folder.

Continuing to guess, I will surmise that that's exactly what you did. You wanted to change your username from oldyou to newyou and at the same time changed the name of your home folder from /Users/oldyou to /Users/newyou, but made the change only in the dialog, not on disk. The next time you logged in, the system noticed your home folder (/Users/newyou) was not present, so it made one for you as if for a new user.

The good news is that your old home folder, /Users/oldyou, is still there with all your data (Minecraft included), exactly as you left it.

There are two possible paths you can take here, both depending on your still being able to perform admin functions.

One method is to go back to System Preferences and change the "Home directory" field back to /Users/oldyou. You'll have to restart, but when you log in all your data will be back. You'll have a now-useless folder /Users/newyou, which you can delete.

It'll mean that the name of your home folder no longer conforms to the  /Users/username convention, but that should be OK. It's just a convention, and only poorly written software will get confused by it. Sadly, we live in a world where poorly written software exists.

Which leads to the second method for resolving your problem. If you can still create accounts, make a new admin account. In that account, delete /Users/newyou and rename /Users/oldyou to /Users/newyou.

These folders are marked as deny delete, which also means you can't rename them. (Renaming is tantamount to deleting and then adding.) Finder probably won't even let you try. You can do it from Terminal, though, by first:

sudo mv /Users/newyou /Users/trashme
sudo mv /Users/oldyou /Users/newyou

Be sure you've replaced newyou and oldyou with the proper names. Verify that you can log in to your newyou account. Once you're sure that everything is working as it should, you can delete the /Users/trashme folder with:

sudo rm -rf /User/trashme

Be very sure you've entered that exactly as I've given it. Copy/paste might be a good idea. Punctuation, including spaces, is very important here.


You might have turned off YouTube under Settings -> General -> Privacy.  Check there, and then toggle it back to SHOW.  If this was the problem, please "Accept" the answer.


How can I make a homebrew application the default for opening certain file types?

Read the FAQ @ https://mpv.io -> Reference -> FAQ

How can I make mpv the default application for opening movie files on macOS (OSX)?

Install mpv as an app with Homebrew:

$ brew cask install mpv

If you need an alias in Applications/Launchpad, open a Finder window at /usr/local/Caskroom/mpv/your_mpv_version/. In there the mpv.app bundle has been generated. While holding Cmd+Alt, drag this .app into the Applications folder.

Use duti to associate files with the application:

$ brew install duti
$ duti -s io.mpv avi all
$ duti -s io.mpv mkv all
$ duti -s io.mpv mp4 all

Or you can do it macOS Finder
Find a video file you want to play in mpv and CMD + I to Get Info on it and then change the default app to be mpv and click Change All button. Rinse and repeat for other file types.


I've solved this way...
https://beshoy.girgis.us/2013/11/solved-error-disk-utility-cant-repair-disk-backup-many-files-possible/

Tried multiple times to repair the disk...


What's the difference of FaceTime App that came installed in my Retina Macbook Pro and the one that is in Mac App Store for $0.99?

FaceTime in the App Store is really only meant for users of 10.6 Snow Leopard.  As of 10.7 Lion, FaceTime comes pre-installed.

I'm not sure why Apple was charging for FaceTime in the first place.  Perhaps just testing the Apple Store sales model.


Copy/Paste Method

On your device, copy the bookmarklet code.

If you don't have the bookmarklet code in plain text (just a link), the easiest thing to do is open the page with the link on a Mac or PC, copy the javascript contents of the bookmarklet and email them to yourself, then copy that on your device.

Create a new bookmark for any site (doesn't matter which one).
Open the bookmarks menu, tap Edit and select the bookmark you just created.
Paste the bookmarklet code in place of the URL, then change the name to whatever you want.

That should give you a working bookmarklet without having to mess around with syncing.


How can I make Automator ask the user for a destination directory?

Automator - 'Ask for Finder Items'

You should probably want to clean up your code. Now you are using and AppleScript and Automator and BASH.

Anyway, in Automator you can ask for a location, store that variable and use it later in your Shell script. You can 'stack' variables in an array by concatenating 'Get Value of Variable'.

Example code and screenshot:

# all input arguments
echo "${@}"

# The 'Output location' is the first in the stack
echo "Output folder location: ""$1"

# Loop through the remaining arguments
for f in "${@:2}"
do
    echo "Video file:""$f"
done


How to update Mac OS X 10.9 keychain access

Open keychain assistant, find the old entry and delete it.


How to temporary block any internet communications of iPhone?

You can turn off all data transfer over the mobile network by disabling Settings->Cellular->Cellular Data. It still does WiFi then, which you can disable with Settings->Wi-Fi.

Alternatively, you can disable all communications by activating Airplane mode.


How to always allow any app to do anything / disable Security & Privacy authorization dialogues

The only solution that I know of is to approach the problem from another direction.
Writing all of your own Automator apps (which are going to continually run into this problem), and trying to find loopholes to make them work? That's going to be a losing battle.
You might be able to solve this with SD Notary: Notarizing Made Easy from the folks who make Script Debugger. Honestly, I don't know, but it might be worth checking out.
What I would be doing is using Keyboard Maestro to handle the automation. Once Keyboard Maestro has been given the proper authorizations, it can handle any of these situations (I presume, since you don't give specifics, I can't say 100%).
Then you will have one centralized place where you can control and manage all of these various automation actions, as well as a community where you can ask for help as you learn the ropes.

macOS should have a power user mode.

I agree wholeheartedly. 100%. No doubt.
But it doesn't, and I suspect it is very unlikely to add one.
That being said, I think Keyboard Maestro is the closest you can get to a Power User Mode on the Mac. No, it's not from Apple (I doubt they could make anything as good), but I'm not aware of anything that will give you more power and flexibility.
(Non-Disclaimer: I'm just a user of the app. I don't get paid, compensated, rewarded, or anything else in exchange for my endorsement and recommendation. I just happily give the developer my money whenever a new version comes out.)


What is sh in the accessibility permissions in Catalina?

You don’t need it so remove all things there you don’t positively trust and know you need. Then, wait for a dialog to pop up asking again for permissions so you can scrutinize what and why you’re giving up control of your Mac.
In this case, the sh process can run all sorts of scripts so it’s like putting a wedge in the door, anyone that uses the wedge can now get in. You’ll only know they used the wedge and not which script or program invoked the wedge.

Accessibility
Shows apps that run scripts and system commands to control your Mac. Deselect the app if you want to prevent it from controlling your Mac.

https://support.apple.com/en-in/guide/mac-help/mh32356/10.14/mac/10.14.5
>>> which sh
/bin/sh

>>> man sh
...
 bash - GNU Bourne-Again SHell
...
Bash  is  an  sh-compatible  command language interpreter that executes
       commands read from the standard input or from a file.  Bash also incor-
       porates useful features from the Korn and C shells (ksh and csh).

       Bash  is  intended  to  be a conformant implementation of the Shell and
       Utilities portion  of  the  IEEE  POSIX  specification  (IEEE  Standard
       1003.1).  Bash can be configured to be POSIX-conformant by default.


How do I safely eject or unplug an iPad, iPhone, or iPod when iTunes is not running?

In the Finder in Mac OS X, press Command-Shift-G to Go to folder. Type /Volumes. This will take you to the “Volumes” folder. If your iDevice is mounted as a drive, it will appear here. You can select it and press Command-E to eject it. If it does not appear here, it is not mounted as a drive, and you can simply unplug it. Note that it may or may not appear on your Desktop or in a Finder sidebar depending on your settings, but it should always appear in the /Volumes folder.

On Windows, in the system tray, there is an icon you can click to “Safely Remove Hardware and Eject Media.” Right-click the icon, find the name of your iOS device, and click it to eject it. If it does not appear on this list, it is not mounted as a drive and you can simply unplug it.


Why does it take so long for the Application folder to open?

OS X applications are actually special folders which contain numerous smaller files, resources, binaries, localization settings, etc. When the Finder opens a folder with a lot of apps, it needs to do a lot more than it would to open a folder with the same number of ordinary documents.

At the very least, the Finder needs to check for the localized name of each app and load each app's icon. It will also need to check whether it can launch the app, checking if it's Intel, PPC, Universal, or Classic, possibly checking if it's 64-bit or 32-bit, too.

It's possible the Finder is gathering other info as well, possibly checking the folder structure of each app to verify it's actually an app, or checking its info.plist for file type associations, etc. Lion may also verify that each app is listed in Launchpad.

Of course, the more apps you have, the longer this process will take. I would guess that, unless your Macs are starved for RAM, the only way to make this process faster is to startup from an SSD instead of a conventional HD. Or perhaps delete all unneeded apps (that were not installed by OS X).

Also, the first time after each login, the Applications and Utilities folders may be slightly less responsive initially, even after the apps have shown up, because the Finder also needs to examine each app to calculate its total file size.


In PowerPoint, choose File → Open… and manually navigate to the file in the Open dialog. This opens the presentation normally and you can edit it just like any other PowerPoint presentation.


Having trouble with Final Cut Pro disk space

.DV tends to be about 4MB/sec. So 5 hours is about 18,000 seconds, so you are looking at a capture of about 72000MB, 72G so you should be fine..

Are you sure the Capture Scratch disk is set properly? Sometimes it's set to the wrong drive you want to capture to.

Check Preferences if you are using FCP, if you are using FCPX it might be somewhere else, not sure how you set capture disks in FCPX..


Due to problems with Time Machine, I've switched to Backblaze as my backup. Is this as useful as Time Machine?

No, because you cannot use if for a system restore or getting files versioned earlier in time. It is often worth it to resolve the time machine issues instead.

Backblaze itself is a wonderful effective offsite backup solution, and I often recommend such a service as a fallback to timemachine.


You should be able to download it from http://visualvm.java.net/index.html.


Photos: Search all photos captured by a particular device (iPhone 5s)

I am not used to the Photos App, so this might not be the best solution but could solve your question.

In the menubar go to File and then click on New Smart Album...
Select Camera Model from the first drop-down menu and then pick the rest to fit your needs.

To find out what exactly you need to type there, you can just get the info of a picture where you know that you took it with that device and see what exactly it says.

Edit: As it turns out, my old iPhone 5s says "Apple iPhone 5s" but this Smart Album only worked if I wrote contains "iPhone 5s", so that should work.


Keyboard shortcut to lock the keyboard, without locking the screen?

You can use KeyboardCleanTool (made by the developer of BetterTouchTool).

It opens the application window with a button you have to press in order to lock/unlock the keyboard.

Download it from BetterTouchTool.net


Used Bootcamp to get Windows 10 on MacBook Pro (Mid-2012, Catalina) says "no bootable device - insert boot disk and press any key"

When installing Windows 10 on your model Mac, you should verify the Windows 10 USB installer sees Disk 0 as using the GPT scheme. When the first Windows 10 installer screen appears, press the key combination shift+F10. This will open a Command Prompt Window. Enter the command given below.
echo list disk | diskpart

Disk 0 row should show a * character in the Gpt column, as shown below.

To close the Command Prompt window, enter the command exit.
Also, when installing Windows 10 on your model Mac, you should EFI boot the Windows 10 USB installer. If you are using the Mac Startup Manager, then choose the EFI Boot label under an external drive icon. If you incorrectly BIOS boot from the Windows 10 USB installer, then you should get the error message Windows can't be installed on drive 0 partition N. (Show details), when choosing the partition where you want Windows installed. If you select (Show details), then you should get the popup window shown below.

To summarize, you need to EFI boot from the USB flash drive and Disk 0 needs to be using the GPT scheme. In other words, Disk 0 can not be hybrid partitioned.


iOS: App installed on device can't be found via the search feature

Go to Settings app → Siri & Search → 1Password and check if Siri & Suggestions is turned off. If yes, turn it on.

Now, the app should appear in search results in Spotlight search.


How to increase font size in Mac App Store?

Having just checked all prefs that I thought might have an effect on this, the only option I found was in the "Seeing" tab in Universal in System Preferences.  There, you have a Keyboard shortcut available to turn on/off Zoom.

Sorry, but that is the best answer I can give you.  Perhaps others will chime in with something better.


Linking Outlook.com mail account and Mac Mail via Active Sync

Outlook.com now supports IMAP and can be configured to work in Mac Mail. Take a look at the following Microsoft Community answer.

  Open Mac Mail.
  From the File menu, choose Add Account…
  Input your account information.
  Choose Account Type: IMAP.
  Input the following as the Incoming Mail Server: imap-mail.outlook.com.
  Choose to Use Secure Sockets Layer (SSL) for incoming mail security.
  Input the following as the Outgoing Mail Server: smtp-mail.outlook.com.
  Choose to Use Authentication.
  Choose to Use Secure Sockets Layer (SSL) for outgoing mail security.


I have a very dirty work around. So I hope someone will come up with a better solution.

What I did is setup a Virtual Box virtual machine with some minimalistic Linux that can do VPN. Once the virtual machine is connected the user can use the VPN inside the machine (but other users not). Since I needed to use some apps in the host system I finally set up a proxy in the virtual machine that would forward my VPN users data.

As I said dirty...


OS X 10.8 seems to break printer communications

This happened to me with my Epson after upgrading to Mountain Lion. Not for a while did I realize, I was not following Epson's onsite directions to the letter, and when I did, everything began to work just fine.


Did the most recent Mac OSX security update version 2016-001 (10.11.6) break java jnotify?

Delete ~/.ivy (it will be recreated) and run 'activator clean'.


The MacBook maybe connecting to wrong server while asleep. Check that you are connected to correct Wifi.  I have this problem on my iMac. After waking, the internet was very sluggish if working at all. For some reason my computer switched its connection to another server without a password. I have to manually change it back to my own wifi.


Command + Click not opening links in new tabs

As @apennebaker commented.  The issue ended up being a bluetooth keyboard in a backpack.

Ah, "the old" backpack and keyboard problem.

Obviously not everything is better with bluetooth.

Please check your bluetooth and make sure that is not the cause of your problems  when troubleshooting keyboard issues.


Go to Format → Font → Copy Style (⌥⌘C) to copy the style of the currently highlighted text, then go to Format → Font → Paste Style (⌥⌘C) to paste the style.

Some apps change the position of this feature, such as iWork, to simply Format → Copy Style.


On a Windows machine I assume you expect to virtualize OSX. With that assumption the answer is this:

You cannot legally virtualize Snow Leopard 10.6+ you can virtualize Lion 10.7+ though.

This forum post vaguely details the issues with Apple and OSX Snow Leopard and virtualization.

Furthermore, if you dont care about legality, this may or may not invalidate your license of SnowLeopard but works in Virtual Box


How to set up windows so its possible to boot non Apple laptops from it?

Apart from the fact that you'd have to ring Microsoft to reinstate your licence every time you swapped, Windows is not very good at swapping hardware.

A Mac drive can be used to boot any Mac older than the OS on the drive; Windows doesn't work that way, you'd need a bare-metal clone & install the correct drivers every time.


Mavericks Bluetooth : Connections from undesirable (unpaired) devices... Where is the Advanced Bluetooth option?

When you say that you see devices connected to your Mac, are you in the Bluetooth Preference Panel or are they appearing in a different app?

Normally your BT is not in discoverable mode, meaning other devices can't see/pair with it unless it has already been paired.  When you open up the BT Pref Pane, the discoverable mode is automatically switched on.  When this happens, it will list all of the available BT devices it can find (like your FitBit) so that you may pair with it.

If it isn't already on, in the BT Pref Pane, enable the "Show BlueTooth in menu bar" checkbox.  This will add the BT menu in the right side of the menu bar.  Clicking on this will show you the currently paired devices and other basic functions.  However, if you hold down the Option key then click on the menu, you are shown an advanced menu. This will show you if your BT is in discoverable mode or not, which it should only be on if the BT Pref Pane is open.

If there are any devices listed in the menu that you don't want paired, choose that device's submenu and select Remove.


X11 applications don't open after XQuartz update (OS X 10.10.4)

I'm afraid you'll probably need to rebuild emacs.  I expect that the one you have is looking for libraries that aren't there any more following the XQuartz update.

I had the exact same problem, and solved it with brew upgrade emacs --with-x11 --with-ctags --with-glib --with-gnutls.  The relevant command-line for you will differ according to your choice of package manager and build options.


App won't delete. I don't know what they are

These are apps that may have failed when downloading or didn't remove completely. I've seen it happen from time to time and it is odd that you have three of them. That said the best way to rid yourself of these things is to back up your phone to iTunes (password protect your backup so the backup saves your passwords stored on the phone). Then go into Settings -> General -> reset -> Erase all Contents and Settings.

The phone will do its thing and once it has come back up, plug it back into the computer and restore the phone from the backup you just made.

It's an annoying process to have to go through, but so far have found no other way to do it.


Make a slideshow in iPhoto 9.6.1 showing photos in random order

There is no preset for random order – but you can switch to random order ("shuffle order") while the slideshow is actually playing:

  "While a slideshow is playing, move the pointer to make the slideshow controls appear, and then click the Settings button"

The settings button is the little cog wheel icon next to the close [X] button:

Clicking the settings button in play mode will open an extended preferences panel, featuring an additional option "Shuffle slide order" in the lower third of the panel:

Checking/unchecking that option will toggle the Shuffle mode.

You can find a detailled description on this page "Change slideshow settings"at support.apple.com – it's for iPhoto 9.5 but should also apply for iPhoto 9.6.


How do I open a file from TextEdit on MacOSX?

Doing TextField / Edition / Edit Link (Add Link if you've got any text selected)or Command+K, will let you add an Hyperlink.

Typing file:// before the application's file path will give you a bluish clickable text, which, on click, will open the file path. Here's how it should look like:

file:///Applications/NameOfTheApplication.app

It won't open the Application, but will open a new Finder window with the item already selected.


Can I attach two external displays to new MacBook Air?

Not using the built-in hardware. Only MacBooks with a discrete graphics card can drive a second external display (and even then, only one of the new Thunderbolt displays).

The MacBook Air doesn't have a discrete graphics card, only the Intel HD 3000 one that comes with the CPU. The same applies to the MacBook Pro 13 inch and the 15 inch ones that don't have one of the AMD Radeon graphics cards.

You can drive an external display using a USB connected graphics card. For example I have one of the DisplayLink adapters, which works very well for everything except 3D graphics and full screen video). I use one of these for my second external display on my MacBook Pro 13.


I own a late 2008 aluminum MacBook unibody machine, and I use it daily. There's no real "degradation" of the keys, though there's one smooth "polished" spot on the right of my spacebar, due to heavy use.

I don't think you have anything to worry about. It's a laptop, the keyboard is meant to be used.


PCIe SSD swap from MacBook Air 2016 to newer model

The current MacBook Air generation is the early 2015 model. I’m assuming yours is this model but you should enter your serial number from the bottom case on Apple’s warranty lookup to be certain of it before you proceed.

Accessing the drive is simple and documented by iFixit. In short: have a MacBook screwdriver set handy, open the rear case making sure not to mix up the two shorter screws near the display, disconnect the battery, and remove or insert the SSD by unscrewing it and pulling it up and out of the socket at a slight angle.

If you were to buy a new MacBook Air of the same model, the SSD can be swapped. macOS does support booting a drive from one Mac in another Mac. Be aware that the SSDs use a proprietary connector that has changed often between generations and even between different product lines released in the same year. Other Macs such as MacBook Pro 2016/2017 and MacBook (12”) don’t provide the capability to swap drives at all as it’s integrated with the motherboard.

Regardless of the new Mac you choose, you’re better off attaching both drives and copying data over to the new one. There are adapters from Apple’s proprietary formats to the standardised m.2 format, so you can buy an m.2 USB adapter and another adapter for the SSD.

Consider selling the old laptop to someone who could make use of it for parts, e.g. a local repair store or on eBay as “for parts”, and dispose of the old drive when you're certain you're done with it.


iPhone and iPad apps have gone missing since update

Apps that have been removed from the App Store can no longer be downloaded, regardless of having been purchased or free. If you can confirm that you cannot find them in the App Store, then, sadly, this is the case.


How will existing apps "scale" on iPhone X?

Right now most of the apps are made with Auto Layout, so they are not going to be "scaled" but rather position of the items may be different. The biggest problem is to handle the top area of the display. I checked some of the apps in the iPhoneX Simulator and apps that display status bar do not have any problems. With status bar hidden and without navigation bar there could be problems. Here's the Hero Sample app from YiLun Zhao :

As you can see, Tab bar is "stretched" downward, but top scrolled area is displayed rather strange. For example section separators are displayed under the "status area" (bottom of it), but table content is clearly visible underneath (side by side with black camera area).

I checked some other apps and there are no major problems with the UI.

So the answer to your question is - it depends how developers made their apps. If they've used Auto Layout there shouldn't be a problem.

P.S. even though the display is bigger than iPhones Plus it has "compact" horizontal traits in landscape -> there won't be split view. Also pages loaded in the landscape view do not occupy the whole screen width (there are white stripes on the both sides. Screenshot:

NOTE: This is still Xcode Beta, so maybe things will change when iPhone X is released.


Can I use my computer's network connection on my Ipod?

Not exactly but you can use the computer's ethernet internet connection via Wifi to the iPhone.

In that case just go to System Preferences > Sharing, then

Select Internet Sharing
Select Ethernet in the field Share your connection from
Flag Wi-Fi in the field To computers using
Go to Wi-Fi Options... and select a network SSID and a security password
Click OK
Flag Internet sharing

If you are using a pc with windows you can follow the instructions reported here. Basically:

Go to Network Connections in your Control Panel by going to Start > Control Panel > Network and Internet > Network and Sharing Center and then click Change adapter settings on the menu on the left.
Right-click your Internet connection that you want to share (e.g., Local Area Connection) and click Properties.
Click the Sharing tab.
Check the "Allow other network users to connect through this computer's Internet connection" option.


Mac OS X Terminal - Basic commands not found by shell

To see if your $PATH variable is set:

echo $PATH

If you've set something to override it, it's likely in the files .bashrc or .bash_profile

You'll need to edit those to remove any entries overriding your $PATH variable.

Start with just mv them out the way (use /bin/mv to hit mv directly), and starting a new session to see if that fixes things.


When in Extend Mode, can I use my AirPort Extreme's WAN port as a LAN port?

Yes.

When an AirPort Extreme is configured to extend another AirPort Extreme wirelessly, the WAN port is not used for WAN, and this means it is automatically switched to be a LAN port, identical to the other three LAN ports already on the back of the unit. This was tested by myself with an Apple AirPort Extreme 802.11n 1st Generation, and this answer was posted with a computer which is connected to the WAN port of said router.


The MagSafe power adapter, like nearly all power adapters for modern electronic equipment, is a switching (switched-mode) power supply.

Switching power supplies achieve their light weight and small size by using smaller, lighter transformers for voltage conversion, which require high-frequency AC input to operate. This high-frequency input is produced by a separate circuit which rapidly switches the low-frequency input on and off (hence “switching”), and in fact does so controlled by feedback from the DC output side in order to achieve a tightly-regulated DC output. This regulation itself is also something that varies over time as the input and the output load change.

So, there's lots of varying electrical currents, and therefore varying electric and magnetic fields, inside a switching power supply. These fields exert mechanical forces on the components within the power supply, which may cause them to vibrate and therefore produce sound!

In a well-designed power supply, the basic frequencies are chosen to be above the range of human hearing (and the components most subject to vibration may be held down especially firmly). However, for various reasons (waves hands, I don't actually know the details) you may get effects at fractions of those frequencies which you can actually hear.

In your particular case, if the power supply is running overloaded (or at the upper limit of its capability), then that might put some subsystem oscillating at the upper end of audibility, producing the sort of noise you're hearing.

You can often hear noise from cheap power supplies (e.g. USB chargers) when they are unloaded (nothing connected to the output), and hear it shift out of audible range when you connect something.

(Disclaimer: I Am Not An Electrical Engineer; this is just bits and pieces I've picked up. These folks would have the whole story; e.g. this answer which is a bit short on detail. But, I hope I've at least somewhat demystified why apparently solid lumps of electronics can make noise. (If anyone sees a factual error or can explain better, please feel free to edit this answer!))


Does a Wireshark implementation exist for iPhone 4?

If you have a jail broken iPhone you can ssh into it and install tcpdump. Tcpdump is a command line program that wireshark is indirectly built off of.


With the iPads, you can hold two fingers on the keyboard and move the cursor around by moving your two fingers around.

Additionally, you can double tap you fingers on the keyboard and it will select current word. If you double tap but keep your fingers down on the screen on the second tap, you can use this to select text by cursor position.

On the iPhone 6S, you can actually hard press (3D touch) to move the cursor, rather than using arrow keys in landscape.


Lost All Files in a folder because of undo on my mac

If I understand the sequence:

you had files only on USB and no backup of those files
you pasted those files on to the Mac and we don’t know if you have Time Machine or other backup on the mac
you deleted the files on USB
the files for deleted off the mac (undo of paste is the suspect, but in the end, it doesn’t matter how they went missing)

The only saving grace or reason I would keep using a Mac in this situation would be to open Time Machine and see if there are any local snapshots to recover the data. If there was a local snapshot made any time after you pasted the files - they are easily recoverable - even if your “backup external disk” isn’t connected or mounted.

If you don’t have a backup, shut down the Mac and don’t run the OS until you’re sure you will or won’t pay to recover the files.

Recovering an accidentally deleted  folder in OSX - no Time Machine or backup available
How to recover a deleted file on Mac OS X?


Is there a way to make Lion's scrollbars visible on mouseover them?

I don't think there is a way to do either of your choices built in, and I don't know of any tool to do them for you. The only way to get this ability in every application would be to have a plugin which is automatically loaded into every application and replaces the default scrollbars. A possible workaround is to scroll just a little bit, so that the page doesn't move much. This will cause the scrollbars to become visible, and they won't hide again as long as either you are moving the mouse on top of that window, or you have the mouse above them. This means you can scroll a little, then move the mouse on top of them, and not worry about them disappearing.

If you want to try to implement this yourself you will probably need to create a custom NSScroller subclass, and find a way to make NSScrollView use it instead of the default class (I think NSScrollView has a private method to create a default scrollbar which you could override, but you will have to find it yourself).


Big Sur restarting apps on wake from sleep

Found a setting under Security and privacy > General > Advanced that was set to log me out every 45 minutes. Disabling it fixed the issue.


No it does not.  You will need to incorporate a 3rd party device or software for that.  Expand your question to include your needs and someone may be able to help you further.


Changing default symbols bound to option key?

Create the folder ~/Library/KeyBindings/ and in it create a file called DefaultKeyBinding.dict and add whatever special character you need like so:

{
    "~c" = (insertText:, "⌘");
}

This makes ⌥+c insert the symbol ⌘. For more information on this file and its syntax refere to this article. After editing the file you need to restart your application for the changes to take effect.


As a developer, do I need Mountain Lion?

Mountain Lion versus Lion is one thing, but it's worth considering that, with Apple's apparent intention of releasing a new major version of OS X every year, a machine that can only run Lion will rapidly fall far behind the baseline. This may make it hard to develop against new SDKs that require the latest version of Xcode.

Buying an older Mac mini may mean saving money now only to have to spend it sooner than you'd like to remain productive.


Can Time Machine back up an external hard drive in addition to internal one?

Yes - you should be able to backup your external drive with the photos by removing it from the "Exclude" tab in the Time Machine pane in System Preferences (in this case the external drive is FCPX):

As Nancy Casas also mentioned, a disk in gray will have to be reformatted for Mac, while one in black will not.


Does disabling iMessage read receipts stop me from receiving them?

The functionality is for messages to get delivered via SMS if that is enabled and iMessage is disabled or not available for the sender.

iMessage should / is designed to receive messages whether or not you are sending back read receipts as long as you and the recipient are on devices that match in Apple's database of recipients that are iMessage capable.

Something else is up - it could be related to the switch (as software corruption can act in weird ways) but it's certainly not the typical behavior.


How do I share Keynote presentations and perform collaborative editing on iCloud?

I save the document on my Mac or my iPad and then quit keynote.

Then I open https://www.icloud.com/#keynote in Safari 9 on a computer (most other newishly updated browsers work too)

If you don't see the "coaching tips" - click the white ? in the white circle in the top right next to your name.

Double click your keynote you want to share. (It might take a while to load the first presentation - so be patient while it loads)
Now look in the "top bar" of the web browser window to the left of the ? are in order: your name, a wrench, and the share icon.
Click the box with the up arrow
Share away. This generates a URL you can copy to SMS/message/email/post as well as prompts you if you want read only or write access and lets you optionally set a password.

You can also share from iOS keynote and Mac keynote, but the steps there depend more on the version you are running.


If I understood correctly, you have connected you iPhone's output to a DVD player for amplification. You can stream your iTunes content to iPhone using Home Sharing (see this ArsTechnica guide) or AirPlay (using AirView on the iPhone).


Can you customize the install of Xcode from the Mac App Store?

Don't accept this answer without vetting it further first, but I think I noticed something during my install.

I think that you don't get any SDKs as part of the XCode 4 install. It was only after I installed XCode 4 and launched it, that the project window showed a download in progress. Clicking it gave me the option of downloading: OSX 10.6 SDK, Legacy OSX SDK, iOS SDK, and something else that I don't remember at the moment. Perhaps extended documentation.

So, the XCode install itself is still very heavy. What with XCode visually, all it's associated applications and libraries, Clang/LLVM/LLDB, profiling tools, and everything.

But, the SDKs themself? I don't think it comes automatically. I can't seem to figure out how to get back to choose the other SDKs to download, so I'm not 100% sure in this.


Is there a quick way to “flatten” an image in iOS

The best way I've found is to use Adobe Darkroom iOS app. You can view and edit photos from your regular albums, then export them to a flat file. Export to a new file, then delete the original via Darkroom. (I just checked, and realized I've been choosing the wrong option, 'modify original' - the details there say the image is still editable...damn). I just tested and in Darkroom I see markups made in the iOS photos app.

I wish apple would make a 'flatten' option! I'd love an app that flattens all edited photos before I export to windows.


Print multiple email messages from Apple Mail to individual PDFs

This following AppleScript code will save single or multiple selected email messages as individual PDF files. Each PDF file will be named as the subject of the selected email message.

This solution works for me using the latest version of macOS Catalina.

tell application "Mail" to activate

tell application "System Events" to tell application process "Mail"
    repeat until frontmost
        delay 0.1
    end repeat
    tell menu bar 1 to tell menu bar item "File" to tell menu "File"
        tell menu item "Export as PDF…" to perform action "AXPress"
        delay 1 -- Value May Need To Be Adjusted
    end tell
    repeat until sheet 1 of window 1 exists
        delay 0.1
    end repeat
    if UI element "Choose" of sheet 1 of window 1 exists then
        -- When Multiple Email Messages Are Selected
        click UI element "Choose" of sheet 1 of window 1
    else
        -- When Only One Email Message Is Selected
        click UI element "Save" of sheet 1 of window 1
    end if
end tell


An important consideration when programming is to come up with a plan for debugging your code.  Here is how I would have coded the code for debugging.

It's difficult to debug an on open handler.  I add an on run handler where I can dummie up the input to a common routine that is called by on run and on open. fyi: I corrected how the input was processed from on open.

(*
   AskDifferent question:
     https://apple.stackexchange.com/questions/366992/running-ffmpeg-in-automator-applescript
 Use log statements.

 It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.

For testing, run in the Script Editor.
    1) Click on the Event Log tab to see the output from the log statement
    2) Click on Run

 *)
on run
    --  debug lines
    set desktopPath to (path to desktop) as string

    -- here is a log statment.
    log "desktopPath = " & desktopPath

    -- Be sure to select a file on your DESKTOP.
    set see to alias (desktopPath & "auto-show-2015.mp4")

    -- Simulate dropped items list.
    set dropped_items to {see}

    common(dropped_items)

end run

-- Gets invoked here when something is dropped on this AppleScript icon

on open dropped_items

    common(dropped_items)

end open

on common(dd)

    repeat with d in dd
        set d to d's contents
        log d
        tell application "Finder"
            --set seq1 to (d's file 1 as alias)  -- dropped items come in as an array of aliased items.
            set seq1 to d
            set dparent to d's container as alias
            set mov to "" & dparent & (dparent's name) & ".mov"
            log "mov is " & mov
        end tell

        set toUnix to "d=" & d's POSIX path's quoted form & " /opt/local/bin/ffmpeg -r 25 -f image2 -i \"" & seq1 & "\" '*.JPG' -codec:v prores_ks -profile:v 0 \"" & dparent & ".mov\" && exit
    "
        log "toUnix is " & toUnix
        set fromUnix to do shell script toUnix
        log "fromUnix is " & fromUnix
    end repeat
end common


Safari and App Store missing after iOS7 upgrade

One sentence answer: you accidentally turned on Restrictions. (Settings>General>Restrictions)

Just slide the switches next to Safari and App Store. That's it.


Can't boot into or mount Mojave APFS partition after repartitioning for Linux

I've had exactly the same issue on an older MBP running 10.13.6.  I've tried twice to work around it and got your problem.
In the end (both times) I had to do a recovery using internet recovery (option-command-r) and then restore my stuff from Time Machine.
I looked at rEFInd but didn't install it, so I can't say how to drive it.
It seems that APFS doesn't like to be messed with.  I'm looking at dropping the APFS and just living with the old journaled FS as a fixed size partition.
After that, I figure I can tinker with the EFI partition until I get it right.


Avoid data plan being added onto AT&T iPhone 3GS

You'll have to change the IMEI to avoid the charge. There is simply no other way. As soon a phone connects to a network, the IMEI is registered and that's what carriers like AT&T use to determine if your device is a smartphone.

You can use ziphone to change the number but there's a lot of hurdles and provisos. As far as I know, that's the only JB program capable of doing it. Instructions are outline here: http://m.iclarified.com/entry/index.php?enid=657

The Motorolla RAZR's IMEI: 358472042445412

Another alternative is to go to T-Mobile which don't have the Draconian charge.


How to share Photos.app videos to YouTube directly?

While such an extension doesn't exist natively in macOS, the desired functionality can be added with the support of a 3rd party app.

Video Uploader for YouTube is a macOS app which lets you easily upload your videos to YouTube.

The app also installs a Finder and Photos.app extension which lets you upload to YouTube directly from Finder or from within the Photos app.


How to create a desktop icon for downloaded iOS apps ("Find My Friends")?

Find My Friends on macos is not an application, per se, it is a part of the operating system and as such you access it through the Notification Center. You do, however, have to add it to the Notification Center.

Tap the notification center icon in the Mac's menu bar (top right corner) then click "Today" and then "Edit" down at the bottom. you can then add "Find My Friends." OSXDaily has a run through with screen shots.

So you can't install an icon for Find My friends.


How can I extract/use icons in an icontainer file?

Have you tried out LiteIcon? It should be able to open iContainer format packages, and it is a free alternative to CandyBar.


Is it a good idea to run MacOS off of a flash drive?

Yes and no, Let me elaborate. Most USB 3.0 drives could run it almost as good as an hdd, If you have a SSD, that would be the best option and is usually faster than the hard drive the comes with any mac. Usb 2.0 can technically work but is very slow as the read/write speeds aren't the best. Im currently running mac os x 10.11.6 on a usb 3.0 flash drive i got from walmart for $17. I will mention however, that the newer OS your using, The slower it will be on os x. I still think that USB booting is great though because of the portability. Just install the OS on the usb flash drive, and hold down alt at startup and it should work perfectly fine. If you have any questions or want me to make you a bootable image for your flash drive, hmu.


Show Keynote presenter view but share only slides via Zoom?

The easiest way is to buy a dummy plug that acts as a tiny (but high resolution) external screen. And then you share your slides as usual. I already tried and it works well.
Of course you can use sidecar to make your iPad a second screen but this dummy plug is really easy to carry!


Attempting to update app asks for a different iTunes account password

The Apple ID being requested will be the Apple ID that was used to purchase the app originally. It can't be changed, since it is linked to the specific app. If you wish to use your Apple ID instead, you can delete the app from the device and re-purchase it in the App Store using the correct Apple ID.


iTunes charges when it's advertised as free

Verifying your credit card does not mean you are being charged.

If there is a change in your billing info, you have to verify it once on each device that uses that AppleID in order to continue downloading from iTunes. This does not mean you are being charged.


Why does my iPhone 5 say that I've used it for a few hours, when in reality I've only used it for a few minutes?

Check your charging cord. The "time since last full charge" implies it was taken off charge that many hours ago. Possibly because the charging cable became disconnected or is failing.

Then of course you can try a factory reset of the phone, after a full backup. If it works then try restoring from your backup. I know this can be a bit of trouble.

But honestly an iPhone 5 battery, if original, is likely to be at the end of its life. Try replacing the battery before getting rid if the phone.


Mac App Store: we could not complete your update the server gave an error during download: 403 Forbidden

I'm also getting this same issue trying to download it.

edit:

This problem is from using a proxy service. In my case it was Privoxy. Temporarily disabling these proxy services would likely help. The problem may arise because of where Xcode is hosted?

Try disabling your proxies.


Web Inspector (Safari & Chrome): A/B testing changes?

You can do a sort of this if all your changes live in the same external stylesheet. Once you are done with the CSS tweaking, switch to the Resources panel and find the affected stylesheet resource. It should have a subtree of revisions beneath. The topmost revision is the current one, the deepest one, called "(original)", is the original resource version. Right-click any revision and choose "Revert to this revision" in the popup menu (the original version in your case). The stylesheet will get reverted and the revision with the changes will become the second-topmost one. You can revert to this revision once again to re-apply your CSS changes.


How can I setup Transmit along with Sidestep?

So here it is: https://github.com/chetan51/sidestep/issues/34#issuecomment-3137335

In Transmit define

Proxy Type: SOCK 5
Proxy Host: 127.0.0.1
Proxy Port: 9050


Apple Magic Keyboard 2 native function keys don't work

It turns out that my problem was rare because the circumstances of it were rare too. I solved my problem successfully by upgrading from El Capitan Beta to the Stable release 10.11.4. I did this by downloading the installer from the App Store application (can be found in the Purchases tab), and running it on my PC. After selecting the drive on which the current OS X was installed, I waited around 30 minutes for the installation to complete. It was completed and I didn't lose any of my data.

Once I logged back in, I clicked on the Bluetooth icon while holding alt and shift, clicked on Debug and Remove all devices. After that, I reconnected my keyboard and it worked fine.


New internal hard drive not spinning on MacBook Pro A1278 13", Mid-2012

Surely not all those hard drives are faulty, so I'd look at the SATA controller or cable. Seems you may already have figured that out though.


You can get and run Malwarebytes. This supposedly finds any malware on your Mac. If that finds nothing I'd look for a virus checker with a free trial period and run it as a secondary test. Here is a link to a review of Mac virus checkers. Malwarebytes can be found at this link.


What is needed to mirror both an iPad and a late-2016 MacBook Pro to an HDTV (non-concurrently)?

Do you happen to have an Apple TV?

If so, that would be how I'd do it, using Airplay.

If not, then any Apple TV (2nd generation and above) supports Airplay and you already have the cable (i.e. HDMI to HDMI) that you need to connect it to your HDTV.

The advantage of this is that you also get all the benefits of having the Apple TV as well, not to mention the fact you won't have your iPad or MBP tethered with a cable (or cables) to your HDTV (i.e. the mirroring happens via WiFi and you're able to have the iPad or MBP anywhere you want while mirroring).

If your question is about connecting these devices to any HDTV that you may need to connect to (i.e. not a single one at your home, but to various models in various locations) or you do not want/need an Apple TV, then I'm not aware of a single solution that will pass both video and audio from both devices, but perhaps someone else will have a solution.

[EDIT]

Just checked and Apple are selling refurbished 3rd generation Apple TVs for $59. At that price, it'd be hard to warrant spending the money on cables and/or adaptors, unless you intend to carry them with you in your travels.

You can also buy brand new Apple TV 3 units from places like Target who still have them in stock (since they've been superseded).


Can I efficiently make a pdf out of 10 jpeg images?

You may want to watch this YouTube video - it shows the scenario that I believe you're looking to solve - it uses Preview to create a multi-page PDF.

The steps are:

Open your images in Preview
Select Print from the File menu (or ⌘P)
Click on the "PDF" button in the Print dialog and select "Save as PDF..." from the dropdown
Provide a file name and Save


I would caution you to consider that all Lightning cables have small chips (basically a little computer inside them) to control charging as well as signaling. It's not as damaging as putting a phone through the wash, but depending on the age of the cable and if it's physically intact - water could easily compromise the electronics in the connector. Especially when it's warped by the heat of the dryer or otherwise compromised physically.

  We have confirmed that the Lightning cable does have four chips embedded in it, plus some passive devices. Two of these chips are very simple (only a couple of transistors), and the third is an NXP NX20P3. However, the fourth and arguably most interesting of these is the TI chip.

Details of the chips are from http://www.chipworks.com/about-chipworks/overview/blog/inside-apple-lightning-cable

One trip on a new cable is probably low risk of damaging the phone if you use it, buy if the cable connector is cracked or that water damage causes corrosion, some time down the line that cable will fail. I'm sure it's designed to fail in a safe mode, but this isn't a situation where you have wires that can dry out harmlessly as you would expect if you had headphones that go through the wash or an older 30 pin cable design that was simply wire and plastic.


Is there an equivalent to the Windows 7 Problem Steps Recorder on macOS?

If you do not wish to use video recording, I often press Command+Shift+4 and take a screenshot of every step. The screenshot names will reflect the time they were taken so they maintain order of execution.


Macbook freezes, disk errors, symptoms of SSD death?

Well the problem never appeared after I replaced SSD, so probably the answer is yes.


Categories from Outlook for contacts in iPhone

Go into Contacts.

On the upper left corner, select "Groups". If you have any additional Contact files, they should be available to view there. Note that this only applies to Exchange accounts and local Groups more than likely will not show.


Delete Repeating Calendar Events in iOS 7.0.4

Tapping on an event should give you an edit button in the upper right. From there you scroll down to the very bottom and will see the option to delete the event(s).

delete event >


How do I know if an update requires restart in macOS Sierra?

When you look at the Updates list in the Mac App Store, it will indicate in the info if a restart is required. Below is an example of this:

You will see the words Restart Required followed by an icon of a white triangle within a grey circle (looks like a reverse play button).

Prior to installing the update, just check the info against each update to see whether any of them require a restart.

Security updates and OS updates usually require a restart. Most other apps don't.


Facebook app on IOS won't update some threads

Sadly it's delete and reinstall.

I recommend Facebook's Paper app which behaves itself and provides a better interface IMHO https://itunes.apple.com/us/app/paper-stories-from-facebook/id794163692?mt=8


Automator - Renaming it without any .html extension

If a folder/directory of the same base name of the file name does not exist at the same level as the file then it can be done, otherwise you cannot remove .html from the file name at the same level.

To remove the extension and the . you need to use:

Find: .html in fullname

If the fully qualified pathname contains .html in other then the actual file name, then you'll have to use a Run Shell Script action instead of the Rename Finder Items action.

Run Shell Script action:

Shell: /bin/bash
Pass input: as arguments

for f in "$@"
do
    [ ! -d "${f%.*}" ] || continue
    mv -n "$f" "${f%.*}"
done

NOTE: As coded, if folder/directory of the same base name of the file name does exist at the same level as the file then nothing will happen and the file name will be unchanged.

If you need to clean up things, that is to remove trailing . in the file names from the previous renaming, do the following in Terminal:

cd /path/to/article
find . -type f -iregex '.*\.$' | for f in *; do [ ! -d "${f%.*}" ] || continue; mv -vn "$f" "${f%.*}"; done

Same note from above applies here as well.


Image in email attachment is not saving to the Photos app

I would imagine it's the same story as saving a screenshot or any other photo from online etc.

Pictures like that are not automatically added to the Photos app, you have to import them yourself.

You can do this from the Photos app: File -> Import then select whichever ones you want. It's handy if you always save them to the same folder(maybe Downloads or a handy custom folder on your desktop).

In regards to why some of them saved but others didn't, I'm not even sure why some of them did save in the first place.


How to sort mail.app conversations by subject rather than sender?

Ah!  I think I have actually found the answer.  In the Mail.app with Lion, it sorts by whether or not there is a Re: in the subject.  So all of those ticket emails up there, which start with the ticket tag, would thread correctly if they started with Re: [#tag] instead.  I am about to add Re: to my RT subject lines, to fix this problem for my own ticket traffic.


You can use the following code to create an Applescript application to accomplish this.

  do shell script "bless -mount \"/Volumes/Boot Camp Name\"
  -setBoot -nextonly" user name "admin username" password "admin password" with administrator privileges

  do shell script "shutdown -r now" user name "admin username" password
  "admin password" with administrator privileges

You will need to:

Paste the above code into AppleScript Editor
Fill in your admin username, password and name of your bootcamp volume where necessary

Once your details are entered you can save the script for editing later and then export it (File > Export) as an Application, making sure to check the "Run-Only" box before clicking Save.  What this does is create an AppleScript application that can only be run, not edited or viewed.  When you launch the application your Mac will temporarily reboot into whichever volume you specified in the code.

The following accomplishes this:

bless & setboot - This designates the default startup disk
nextonly - This tells the system that the volume designated in this command should only be the startup disk for the following boot, subsequent restarts will boot to the proper startup disk.
shutdown -r now - This tells the system to reboot now
Exporting as a run-only AppleScript application allows the students to execute the command but not view the contents, which should keep the admin credentials safe.  I made a sample application on my system and was unable to view the script inside the application by digging through the package contents.  It may be possible to get around this but I couldn't find a direct way.

To make this accessible to Guest users in addition to standard user accounts you could add it into the default user template at /System/Library/User\ Template/English.lproj/.  Settings, files, etc in this location carry over to the "on the fly" Guest accounts available in the newer Mac OS X revisions.

Hopefully that does the trick for you!


Does any Mac app actually block Safari ads?

Yes, you can block ads on Safari using Adblock for Safari; it's available on the App Store and compatible with macOS 10.12 or later, 64-bit processor.


How do I add an Apple TV to hotel wifi without a browser?

Use a computer to imitate or “spoof the MAC address” and register the AppleTV hardware address and agree to the terms is the pragmatic manner to join.

Unlike the post you found, however, it can be done much more easily with a MacBook and without much jujitsu.

First get the MAC address of the Apple TV (available in Settings) and shut it down.
Then run the following in Mac's terminal app, replacing the MAC address shown with that of your Apple TV: sudo ifconfig en0 ether 98:01:a7:a1:f6:77.
Next confirm the change by running ifconfig en0 | grep ether.
Finally use your Mac's browser to sign-in and bypass the captive portal.

Once that's done disconnect or power off your Mac, plug your Apple TV back in and connect to the network as usual. Instructions here summarized from Spoofing IoT Device MAC Addresses.


Accidentally connected iCloud to my work machine and now I have a huge mess on my hands.

Did you logged out from iCloud on your working machine?
First of all try to do this: System Preferences > iCloud > Sign Out


How to prevent Mac OS X El Capitan from automatically switching desktop when new application is launched

There is no way to change this behavior. The reason is because your full screen application is contained in a separate virtual desktop, leaving the "default desktop" available for any other apps to run (like the case of efficiency on multiple screens). OS X & macOS work like that. Every aspect of the OS was designed in a way to be "clutter free", so a window on top of a window is a big no no for apple, and will be avoided if possible.


Is there a timeline for Siri location features to be brought to Canada?

Apple announced that Siri location services will come to Canada and several other countries when iOS 6 is released in the fall.

You can see the full list of supported languages and locations here.


Forgotten iOS Restrictions Password/Passcode

There's a tool that can recover the restrictions passcode from a device backup, called Pinfinder. Follow the macOS instructions and download the tool which is a command line binary and it will recover your pin.


Deleted the files in /private/etc/apache2/other/

The file that is in your /private/etc/apache2/other directory is your php5.conf file.

What's in your /private/etc/apache2/original/extra directory are sample httpd conf files to configure your apache server.

I have made my untouched php5.conf file available for download.  Since I don't use the AMP stack on my Mac for any dev work, it should be the same one that gets installed with macOS.  It won't have any of the modifications/customizations yours had, if you made any.

Copy that file to the 'other' directory.  Make sure you se the correct owner and  permissions:

sudo chmod 444 /private/etc/apache2/other/php5.conf
sudo chown root:wheel /private/etc/apache2/other/php5.conf


Tmux hampers osascripts display notification

I don't plan to use Tmux but just from curiosity I leafed through its manual pages and saw under "Options":

focus-events [on|off]
When enabled, focus events are requested from the terminal if supported
and passed through to applications running in tmux. Attached clients
should be detached and attached again after changing this option.

You might look into Tux' options to get what you want, I guess.