How to reinstall Mac OS X built in Perl on Mountain Lion? I updated to Mountain Lion 4 days ago and then realised that my perl scripts did not work any longer. So I installed ActivePerl 5.14 (newest version) because I thought that perl has been deleted. After installing ActivePerl though my programmes still did not work:

Warning message:
running command 'perl calc.pl' had status 2
Can't locate Excel/Writer/XLSX.pm in @INC (@INC contains:
/Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12
/Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12
/Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level
/System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-
2level /System/Library/Perl/Extras/5.12 .) at test.pl line 3.
BEGIN failed--compilation aborted at calc.pl line 3.

In the terminal when I type perl -v it shows that it uses the newly installed ActivePerl. I used sudo clan -> install Excel::Writer::XLSX to install the missing module. However, it does not install it for 5.12 but for ActivePerl 5.14.

The own Mac OS X Perl seams to be installed here:

bash-3.2$ ls /Library/Perl/
5.10    5.12    Updates
bash-3.2$ ls /System/Library/Perl/
5.10    5.12    Extras  lib
bash-3.2$

There is also a version here:

bash-3.2$ ls /opt/local/lib/perl5/
5.12.4      site_perl   vendor_perl

I thought best is to delete the ActivePerl by running its uninstaller. I did that and also removed the 5.12.4 as well as the site_perl directory in /opt/local/lib/perl5.

Then I wanted to reinstall the XLSX::Writer module using cpan. I thought that it is then installed into the old perl directory. However running cpan now results in the following error:

bash-3.2$ sudo cpan
Can't locate strict.pm in @INC (@INC contains:
/opt/local/lib/perl5/site_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.4
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4 /opt/local/lib/perl5/5.12.4/darwin-multi-
2level /opt/local/lib/perl5/5.12.4 /opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/vendor_perl .) at
/opt/local/bin/cpan line 5.
BEGIN failed--compilation aborted at /opt/local/bin/cpan line 5.

I don't know what to do now. I think the best I can do is probably reinstalling Mac OS X's own Perl, how to do that?

I found on another website the following command

$ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'

This updated all my perl modules and all is back to normal.  Not sure why or what, but don't care that it is working now.


Login Window not blacking out my screen? I use hot corners to lock my screen.

Sometimes, my login window appears but the screen behind it does not turn black. My desktop stays visible, but behind the Login window.

Why is this? Is there any way to fix it?

I assume that you've selected "Start Screen Saver" in the hot-corner in question, correct?

If so, what screen saver do you currently have configured?

The reason that I ask is that some screen savers (although none of the ones that come with your Mac) start with the current desktop image and then apply special effects to it over time.   So I can imagine if..

you've configured your screensaver
to    shuffle through screen savers,
and
you have installed one of the
aforementioned screensavers,

...that this combination could produce the kind of symptoms you are describing.

Edit:  Interesting.  I don't even have "Lock Screen" as one of the choices on my machine:

Edit 2:  I had never tried that option until now.   I set up my laptop (model identifier MacBookPro5,2, 2.93 Ghz) as you described and put the display to sleep with that hot corner and woke it up over & over again.  I went through about 50 iterations, and I was able to reproduce your problem 3 times in that span:  the display would appear to blank, but when it woke up I could see my desktop with the login panel overlayed.

Because this kind of configuration involves invoking the special power-management circuitry in the machine, there are more moving parts that can go wrong in the process.  I believe you have little choice other than to report the problem to Apple, and even if there is a real bug, there will be a chance that the bug is in the power-management circuitry itself and the 'fix' might only come when you can buy a new machine.   Or not.  Maybe you could get lucky and there this could be fixed by a firmware update or a point-release of the OS.

I like this option, now that you have pointed it out to me.  I like that it immediately puts the display to sleep, which makes me feel better about how my battery is being used.  Alas, if blanking the screen and keeping it from prying eyes is a higher priority, maybe you should use the "Start Screen Saver" option instead, and set the screensaver to something mostly black like the "Computer Name" screensaver.

I wish I could offer more help.


How to copy music content and playlists between iPods (Nano 5th Gen 16GB)? I'd like to mirror the music tracks/files and all the playlists from one iPod Nano 5th Gen 16GB
to another another (Nano 5th Gen 16GB). Is there a way to easily automate this process?

Details

My iTunes music library is much larger than the 16GB iPod, and I have hundreds of playlists. The selection of playlists/artists/songs to reduce down to fit on the 16GB iPod is rather tedious, even when playing automation tricks (like creating a smart playlist containing all the songs that I've played in the last year, or whatever).

I don't want to perform this tedious playlist-selection process every time I copy to another iPod.

Potential solutions (?) I'm investigating include the following. 3rd-party MacOS applications that claim to facilitate this (TunesGo, iFunbox). Maybe I can use iTunes somehow to copy from iPod to a temporary iTunes (MacOS laptop) Music folder/directory, and sync said folder to a blank iPod? Something else? I've tried rsync-ing (on MacOS) the entire filesystems from a source and a target iPod, with no success (caveat: I may not have executed the initial rsync correctly; I'm retrying that now).

Regardless, I'm here asking to see what processes have 1) worked well for other users (via empirical experience, not just speculative assertions), and 2) is easy -- ie, I want to minimize the number of steps in the procedure.

Authorization isn't an issue here - I own all the music and the iPods. I have several open "authorization slots" on my iTunes Store account (or whatever). And money isn't the issue here, so if I have to pay more to copy between the iPods, that's ok (within reason).

fyi, I really love the iPod Nano 5th Gen's... except that they're small. I don't want to go to a larger/newer iPod because I like the Nano-5th-Gen's so much.

Assuming I understand your question correctly, would a backup > restore process do what you want?

More specifically, have you tried doing a full backup to iTunes of the first iPod and then restoring that to the other iPod? Basically, when you connect the second iPod to iTunes you can do a Restore from the full backup you just created from the first iPod.

Once you've done the restore, the music may not be on your second iPod to start with, but then syncing it with iTunes should restore all the music/playlists you had previously downloaded to the first iPod.

NOTE: I'm also assuming that all the music, playlists, etc are stored in your iTunes library on your Mac.


In which macOS version was the -json flag/switch added in system_profiler? Which version of macOS (OS X) first included -json switch in system_profiler?

It was introduced in Catalina.

JSON wasn’t standardized until 2013 and Apple rarely implements new technology that hasn’t been standardized.  Looking at a man page from 10.9 (Mavericks) which was also released in 2013, the -json flag was not available.

It’s also not available in Mojave as the man page for that version doesn’t indicate the flag either.  I’ve tested it in Catalina and confirmed it exists there


Alarm application using the maximum possible volume level The iPhone's alarm shares its volume with the ringer, and I don't want the ringer volume to be too loud. I am looking for an alarm application for iPhone using the maximum possible volume level.

Ideally, it would gradually increase the volume till the maximum possible volume level. If it needs the iOS to be jailbroken, that's fine.

The Wake Alarm Clock app does exactly what you want. No jailbreak required, progressive increase of volume up to the maximum. But, I'm using it because there is a setting that forces you to shake your phone to stop the alarm, and you are awaken almost instantly.


Does Exist any way to change battery of MBP 2012 13" with a bigger one? The question is simple, can i make an upgrade of my battery? I mounted a OWC datadoubler, and now i'm using an SSD and HDD configuration. But my battery life dropped from 6 to 3h 30... i would like to install a bigger battery, does exist a way?

Please please please don't go to eBay or some other website to purchase a battery that claims it has a larger capacity. I have had too much experience with bad batteries, lies, and incompatible products. My customers will come in with batteries from those places and they burnt out within a week or never worked to begin with.

If you battery is truly defective or has issues then an AASP can run a quick test, usually before they even check the unit into their system, and see how healthy the battery is and then if it is defective order you a new one. I do this each and every day because I like to show people their batteries health before carrying out a repair/replacement.


What is the maximum time for delivering app binary to app-store? I had put all of my app information into itunes connect and I got an email saying it is ready for upload. Please upload app binary.

But, at the last time our client asks to change the designs of the project. I'm afraid how long the apple itunes connect will wait for upload.

I like to know,

What is the maximum time allowed by apple for delivering app binary to app-store?

is there any warning or mails will be sent to me from apple-inc about this?

You have nearly 6 months(180 days) time to upload the binary.

As per Apple developer documentation,

  150 Day Warning. You will receive an email when you have had an app created for 150 days but have not yet delivered a binary,
  reminding you that you have 30 more days to deliver your binary or
  your app will be deleted from iTunes Connect. You will be given an
  exact date of your deadline in this email.

  173 Day Warning. You will receive an email when you have had an app created for 173 days but have not yet delivered a binary,
  reminding you that you have 7 more days to deliver your binary or your
  app will be deleted from iTunes Connect. You will be given an exact
  date of your deadline in this email.

  180 Day Deletion Confirmation. You will receive an email confirming that your app has been deleted from iTunes Connect, if you
  have not delivered a binary before your 180-day deadline.


Command line to find bluetooth device's MAC address Is there a way to get the MAC address of the Bluetooth device in my Mac? I am using a MacBook Pro running macOS High Sierra. I am looking mainly for macOS but the command could also be for another UNIX or Linux machine.

It should be the same as the one shown when Option clicking the Bluetooth icon in the status menus in the Menu Bar.

Execute the following command line in macOS:

system_profiler SPBluetoothDataType

The output will print details about the build-in Bluetooth device along with the MAC address. The output will also list the paired devices along with their MAC addresses.


Pair remote ipad app with apple tv 2 that has no home sharing enabled and no hardware remote The hardware apple tv2 remote is lost again. And I cannot find it this time. :(. I had reset apple tv2 earlier and forgot to turn on home sharing. To make matters worse, I had setup a fixed ip for my apple tv and it only goes online with the lan cable in. When I remove the lan cable, it tells me the tv is not connected and asks me to choose settings.... which of course, I cannot do without the hardware remote.

Is there any way that I can get back control of my apple tv2 without my lost remote but from my ipad remote app solely?

You can use the iOS "Remote" app to control iTunes on your Mac or PC.  As part of this, you can change the audio output from the computer to any AirPlay device on the network, including the Apple TV.

You cannot, however, directly control the Apple TV's GUI.  Buy a new Apple remote, or a universal remote (love my Harmony Ones!).

If the LAN cable is a big deal, you might be able to solve that plugging the ATV into your Mac or PC (needs a micro-USB cable, though, which isn't too common yet) and then doing a restore.  This should remove the static IP, but it might also require you to walk through some setup menus when you next turn on your ATV.  That would be a problem without the remote.

I'd get a new remote, and then I think you can fix ALL the problems mentioned here.


What is accessible to an attacker who has reset my administrator password? I understand that it is possible to reset the administrator password on a Mac, allowing someone with physical access to a machine to create a new password that gives them access to all files unlocked files remaining on the machine after the reset process.

But what else do they have access to? Specifically:

Are all user accounts still present?
Are all keychains still present, or are they reset or cleared as part of the password creation process?
If the keychains are still present, does the (new) administrator have access to the contents of existing keychains.
Are any files (other than keychains) erased or reset as part of the process?

I assume that FileVault protects against using this technique in an attack; would a firmware password confer any protection?

If someone has your administrator account, everything on the machine is accessible to them. People in IT Security circles say "Physical access = Total access".

Keychains can only be unlocked with the keychain password.  If an account password is changed/updated without being logged into the account AND having the relevant keychain unlocked, the keychain password doesn't change.

Meaning, someone could get access to your account perhaps, but not your keychain, without the original password.  The account and keychain passwords fall out of sync with one another.

FileVault protection similarly, will remain in place until unlocked using the correct password.  I don't believe having root access on the machine allows you to unlock the keychain or the file vault account without the relevant passwords.. that's the whole point.

Of course, theoretically a hacker with godlike skills, patience, and knowledge could manually edit the relevant passwd files to be whatever he/she wanted it to be (if they had root access), but the probabilities of this happening is somewhere between zero and nil.


Can I create a new contact from an unknown MMS number? I am looking for a way of creating a new contact using an unknown number that sent me an MMS. The new number is not detailed in the message itself. Is this possible? Currently I'm having to write the number down on paper so an alternative would be useful.

I'm using an iPhone 3GS with iOS4 installed.

You can add contacts from text messages by scrolling to the top of the conversation and tapping "Add to Contacts."


How can I adjust Touch Bar brightness? Is there a way to adjust MacBook Pro's Touch Bar brightness?

MacBook Pro, 13", 2016, macOS Sierra 10.12.6

You can't. It may automatically adjust based on external lighting conditions if the "Adjust keyboard brightness in low light" option is on in System Preferences>Keyboard, but I haven't experimented to confirm this.


Traceroute Terminal vs Network Utility different? Why would a Terminal traceroute #.#.#.# show different results than using Network Utility.app? Here is the first 3 hops. I am connected to PIA VPN but regardless both methods should show the same results I would think.

Terminal

traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets
1  10.199.1.1 (10.199.1.1)  42.559 ms  39.696 ms  38.293 ms
2  * * *
3  184-75-211-129.amanah.com (184.75.211.129)  49.639 ms
162.219.176.225 (162.219.176.225)  56.780 ms
dpaall.webexpressmail.net (162.219.179.65)  69.798 ms

Network Utility.app

traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 72 byte packets
1  10.199.1.1 (10.199.1.1)  41.221 ms  38.355 ms  47.237 ms
2  vl685-c8-10-c6-1.pnj1.choopa.net (209.222.15.225)  41.262 ms  38.674 ms  41.912 ms
3  vl126-br1.pnj1.choopa.net (108.61.92.105)  44.092 ms  36.200 ms  40.407 ms

IP traffic does not necessarily follow the same path. Leaving your system, each router will choose the path that it sees fit for each packet, and this path may change depending on availability/congestion. It won't care how they got there.

So in the case of traceroute that is sending ICMP packets they don't always necessarily follow the same path too, ICMP runs on top of IP.


Got errors when changing a readonly file (the CSS of pop-out dictionary) on OS X When I tried to edit a CSS file to adjust the pop-out font through vim in terminal, I got
W10: Warning: Changing a readonly file. Thinking sudo could be used to tackle that, I went editing the file anyway.

body {font-size: 12pt;} → body {font-size: 14pt;}

But then I couldn't save the change.
I tried a command suggested online :w !sudo tee % and got

/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file

shell returned 2

How to improve that command?

/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/3300e8c78ceb9a7ceeb617334b1df9018e6b46b8.asset/AssetData/Oxford\ American\ Writer\'s\ Thesaurus.dictionary/Contents/Resources/DefaultStyle.css

macOS Sierra 10.12.6

You're attempting to edit a file within a restricted location, protected by System Integrity Protection.

$ ls -O /System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX
total 104
drwxr-xr-x   7 root  wheel  restricted  224B 19 Apr 09:29 ./
drwxr-xr-x@ 24 root  wheel  restricted  768B 31 Mar 12:15 ../
drwxr-xr-x   5 root  wheel  restricted  160B 31 Mar 12:19 2fcc349eb53d7c336b8372758b70508eb8e2ac0b.asset/
drwxr-xr-x   5 root  wheel  restricted  160B 31 Mar 12:19 61b49f47f0dce1c061c688d415e1f1a84c37fce0.asset/
drwxr-xr-x   5 root  wheel  restricted  160B 31 Mar 12:19 cd4d7cc1cd227a13d2b9c029f86c940f94b7543a.asset/
-rw-r--r--   1 root  wheel  restricted  3.4K 19 Apr 09:29 com_apple_MobileAsset_DictionaryServices_dictionaryOSX.plist
-rw-r--r--   1 root  wheel  restricted   44K 19 Apr 09:29 com_apple_MobileAsset_DictionaryServices_dictionaryOSX.xml

These cannot be edited even with sudo. To edit files within restricted locations, either:

Perform the edit from Recovery HD.

Boot into the Recovery HD by restarting whilst holding ⌘R.
Use the Terminal from the Utilities menu in Recovery to perform the edit. Note that / is the mount point of the recovery environment, therefore you should access your disk from /Volumes/yourdiskname/….
Reboot

Disable System Integrity Protection, perform the edit, then re-enable it.

Boot into the Recovery HD by restarting whilst holding ⌘R.

Open Terminal (from the Utilities menu).

Run the following command in Terminal:
 csrutil disable

Restart.

Perform the edit you wish to make to the files.

Boot into Recovery HD once more and run csrutil enable to re-enable SIP.


32-bit only screen savers in Mountain Lion? Is it possible to run 32-bit only screen savers in Mountain Lion?

Just opening /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app in 32-bit mode doesn't run 32-bit only screen savers.

I don't think you can do this. I believe that Mountain Lion is 64-bit only, since my old Mac Pro, which is technically 64-bit capable, but won't run Mountain Lion. Lion could be booted into 32-bit mode, but I don't think Mountain Lion can.


Get terminal application name from shell I am used to my osascript aliases. In particular, I have nx for opening new tab and closing the old one.

However, my scripts use application name to send keyboard signals to it. Instead of writing it all many times i use my own variable term that contains terminal application name (it is always term=iTerm, no matter what terminal I'm using).

How do I fetch the terminal emulator's name I am entering command line with?

TERM_PROGRAM is set by both Terminal and iTerm:

TERM_PROGRAM=iTerm.app
TERM_PROGRAM=Apple_Terminal


Is there a way to download the iphoto 9.6 update/installer for an offline upgrade? upgrading my mom's mac to yosemite - her internet connection is slow.  Would like to put the updater/installer on a USB drive.

on the apple site, there are direct downloads for older versions of iphoto, but not the latest.

I was also able to download yosemite and put it on a usb drive.  but not iphoto

You can put the new iPhoto itself on a USB drive, and just replace the file in Applications (after taking the necessary backup precautions, of course). It should work fine.

Source: My own experience, having upgraded a computer to Yosemite with the sole available wifi network having a finite amount of data.


macOS Sierra is downloaded but can't install I have downloaded the macOS Sierra from app store but unable to install it. It's not displayed in updates section...

Did you look in your applications folder? Usually it downloads there. If you open your Applications folder there's an app called Install macOS Sierra

Found at:  https://www.reddit.com/r/applehelp/comments/53qqnp/macos_sierra_downloaded_but_not_installed/


Internet tethering with iPod Touch 2G I have a PC which does not have a build in WLan-Chip. But over the weekend, I'll temporarily move to some place where there is no cable-connection available.

So now I'm trying to find out if I can use tethering to make my iPod's Internet-connection available to my PC (over USB since the PC has no Bluetooth either). I do not have a WLan-adapter or something I could use instead. And since this is only for a few days, I don't want to buy one.

The iPod runs iOS 4.2.1 and is jailbroken. I tried using MyWi 4 to archive this, but when I connect the iPod to the PC (using the USB-cable), nothing happens. The latest iTunes version (10.4) is installed on that PC.

iPhones do have a native tethering-option but this is not available on iPod Touch. Is there any way to activate it (by changing some .preferences-files)? I know it's (for example) possible to activate the native multi-tasking that way.

If this is not possible, is there any App out there which works? It seams that MyWi does not work since iTunes 10.1 so is there any other one that works? What do you use?


How to remove undeletable login item I have a login item that I can't delete! It's a random Garageband audio file that I never put there myself. It opens in Quicktime every time I boot my Mac. Does anyone know how to get rid of it?

Since it is set for all users it should be in the

/System/Library/StartupItems

or in the /System/Library/LaunchDaemons

Correction thanks to @maximus that would be in the /Library/LaunchAgents

Copy one of the above and paste it in the Finders "Go to Folder"

Alternatively hover the mouse pointer over it (while it is highlighted) and there should be a pop up with the location of that file.


How can I force HomeKit to send me a SMS/Notification alert (or email) if the basement floods? I use HomeKit to simplify home management for the elderly.  One of the things I want to address is the failure of a sump-pump, or flooding condition.

Is there a way I can cause a HomeKit sensor to cause this notification?

It depends on the manufacturer of the sensor you're using. If it supports HomeKit notifications, you can set them by pressing on the device's icon in the Home app.


Watch 4 buttons and certain features frequently go unresponsive Recently purchased my first Apple Watch (series 4) and I'm having some troubles. Apropos of nothing (so far as I can tell) the digital crown and side button go completely unresponsive. Double side button doesn't bring up apple pay, holding it down doesn't even bring up the power slider. Rotation on the crown seems to work fine but crown presses are also ignored.

I actually need to take the watch off my wrist before it will let me turn it off which does seem to fix the other issues. If this were a rare circumstance it wouldn't bother me much but it's happening about once per day. Am I somehow putting it into some mode that deactivates the buttons? This seems like a pretty big flaw so I'm guessing that I'm missing something here.

I'm going to assume there's no pattern to when this happens and it's totally random.

My first thought would be that it's a connection issue (remembering that your watch is designed to communicate with your iPhone). So I'd go through the process of unpairing and then restoring your Apple Watch to see if that resolves the issue.

IMPORTANT: - Read through all of this answer before commencing the process so that you know what's involved.

You can un-pair your Apple Watch from the Watch itself or from your iPhone. Since you're having frequent unresponsiveness from your Watch, the following steps are for doing this from your iPhone.

Un-pair and restore your Apple Watch

On your iPhone go to the Apple Watch app
Make sure you're on the My Watch screen
Tap on your watch name at the top of the screen
Tap on the info icon (i.e. the amber circle with an 'i in it)
Now select the red Un-pair Apple Watch option
You'll be prompted to confirm the un-pair process
If you have an e-sim activated with a mobile service, choose to keep your plan
Disable Activation Lock by entering your Apple ID password and tapping Un-pair
Your watch data will begin backing up to your iPhone
When complete, your watch will:

be unpaired from your iPhone
be unpaired from any Bluetooth devices
no longer have any Apple Pay cards attached
have no passcode
be reset to Apple's factory settings

OPTIONAL: You may want to backup your iPhone as it's now the only place all of your Apple Watch data is stored
Switch on your Apple Watch
Put it on
Now make sure your iPhone is close to your Apple Watch
Once the "Use your iPhone to set up this Apple Watch" prompt appears, tap on Continue. (NOTE: If the prompt doesn't appear, open the Apple Watch app on your iPhone and tap the Start Pairing option)
Follow the prompts to pair your Watch to your iPhone and to set it up

Now start using your watch again to see if it works properly. If it doesn't I'd call Apple Support. They can actually run diagnostics on your Apple Watch remotely (you will need to have your iPhone with you as well in order for them to do this). It doesn't take long to do and will help identify if there are any hardware issues.


Is there a way to completely disable Spaces in El Capitan? Is there a way to completely disable Spaces in El Capitan without turning off Mission Control, Dashboard, etc.?
If not, is there a way to disable drag to space?

I'm using Cinch and I find it quite annoying to be offered space switching when dragging the window to the top of the screen just to maximize it.

I've found that if head to mission control and uncheck 'displays have different spaces', then logout/login you should be sweet. Worked for me anyways.


How can I stop Mail.app from automatically downloading full messages? I'm a college student and a student employee at my college's IT office. We recently upgraded to Google Apps for Education for our college email, and we also have a high proportion of Mac users on campus (students, faculty, staff, and administrators).

My manager in IT pointed out that since Mavericks came out, it seems as though Mail.app is automatically downloading the entirety of all messages from the server for caching purposes so Spotlight can search them instantly. For normal users, I'd imagine this is fine. We have some institutional users with 20+ years of email (hundreds of thousands of messages), and this new feature of Mac Mail is slowing their computers down significantly. My manager said that Mail.app previously just downloaded message headers, but now it's downloading full text and attachments. From searching this topic on AskDifferent, I know that it's possible to turn off auto-downloading of attachments by going to Preferences>Accounts>Advanced> and unchecking "Automatically download attachments."

Is there a way to turn off the auto-downloading of full message text as well, and force Mail.app to only download headers of archived mail?

You may try a workaround: users with high email count can configure their Google Apps accounts not to sync more than 1000 emails per label (or folder).

Each user will have to:

Go to their Gmail interface
Go to Settings (by clicking on the gear in the upper-right hand side of the page)
Select the Forwarding and POP/IMAP tab
Look for "Folder Size Limit "and check "Limit IMAP folders to contain no more than this many messages" and select 1000 (or another number that seems appropriate)


Make existing PDF searchable ( OCR ) via command line / script I am looking for an offline scriptable tool that makes an existing PDF file searchable by running OCR on it, replacing the original non-searchable file with the searchable version, and can run unattended.

E.g., www.pdfscannerapp.com - does exactly what I need, but it's GUI only - not scriptable.

I am aware that Evernote makes PDF files searchable, but they remain searchable only when within Evernote.

I am not looking for perfect OCR, even a moderately acceptable OCR is fine, but I would prefer a small utility rather than a bulky software package.

(I am aware of a similar, but different question on AD: Looking for Software to Scan or Convert to Searchable and Signable PDF - however, I don't need to sign or fill PDFs, and my requirement is that the solution is scriptable)

EDIT:

1) Several utilities allow structured text extraction, however in order to be extracted, the text must be there; I am mainly referring to PDFs that are wrapped bitmaps, as is the case with plain PDFs generated by scanners.

2) I am not necessarily looking for a free solution, and I would be more than happy to pay for a good utility that just does what I need, but I am not looking for bulky applications with a million features that include an OCR feature but whose cost does not justify buying them just for the OCR functionality.

3) As stated above, I am not looking for perfect OCR, just a moderately acceptable OCR. Unfortunately, in my experience, tesseract is really below that threshold. I define "moderately acceptable" an OCR that can, say, OCR an utility bill so that at least the account number (customer number) is recognized correctly.

EDIT: "scriptable" or "automatable", that is, able to be triggered automatically and run unattended without human input whatsoever.

What you want is Tesseract OCR. It's an open source OCR that is maintained by Google and supports a variety of platforms.  It also has a native command line interface.  It's exactly what you're looking for and available from the Mac ports project as well as homebrew.

Project Home: https://github.com/tesseract-ocr

How to install on OS X: http://blog.matt-swain.com/post/26419042500/installing-tesseract-ocr-on-mac-os-x-lion

Usage Example: tesseract -l eng input.pdf output


Make Applescript press LShift Exactly what the title says...

I'm new to coding and I am trying to make AppleScript simulate the key press of LShift. When I run the program, there seems to be a delay, indicating that it may be actually pressing LShift, but I tried a virtual keyboard tester, and it does not indicate LShift being pressed... I am not sure how to make the program. Help would be greatly appreciated.

Thanks

Edit: Basically, I want AppleScript to press Shift (on the left). I don't know what the coding for this part is.

This is my code so far:

    repeat
       repeat 5 times
          tell application "System Events"
             keystroke "r"
             delay 5
          end tell
       end repeat
       repeat 10000 times
          tell application "System Events"
             keystroke using {shift down}
          end tell
       end repeat
    end repeat

I don't know whether pressing "keystroke using {shift down} actually is pressing shift.

I think you want this

tell application "System Events"
    key code 56
end tell


Do any OS X apps ease Search and Replace across multiple files? I'm looking for an OS X tool which allows me to search and replace a search string in multiple files. The requirements are the following:

Search and Replace
Search by regular expression
Search across multiple files
Search across nested directory structures
Replace expression can use values from the search (Regular Expression)
The tool has an easy to use user interface
Preferably free

I know that some text editors like BBEdit have this functionality, but I would prefer a lightweight tool that doesn't require me to open the files for editing first.

If there aren't any tools to match these requirements, I would also consider a command line alternative. I know that perl and sed support something like this - a solution that I can define either as a Bash alias or function would be welcome in this case.

I typically use TextMate:

TextMate (1) is/was a buy product, but TextMate 2 is currently under active openSource development on gitHub and free to use.


Can Mac OS X Messages support more than one apple id? I have two Apple IDs, one for work and one personal. My iPhone's Messages settings are bound to my work id. When it receives messages, they pop up on my work computer pretty as you please.

I would like that to happen on my home computer too. If I open Messages > Preferences > Accounts on my home computer, I see my home Apple ID listed (along with AIM and Bonjour). I would like to add my work Apple ID as well.

When I click on +, I'm offered Google, Yahoo, Aol, and "other" as my choices. And under "other", the choices are "AIM", "Jabber", and "Yahoo"

I was able to add my work account under Settings > Accounts, but there doesn't seem to be a way to connect that to Messages.

AFAIK, this is not possible. You can add multiple E-Mail addresses to one AppleID (System Preferences -> iCloud -> Account Details -> Contact) , but you cannot use multiple AppleIDs for iMessage on one user account on a Mac.


Temporarily put OS X notifications in "do not disturb" mode? A person will be sitting next to me, working together with me on my Mac, and I would like the make sure none of my personal notifications appear during that time. I would not want to lose my carefully chosen notification settings though so a "temporarily do not disturb me" would be perfect.

Note: this is for OS X, not iOS...

You can option click on the notification center icon in the menu to quickly enable or disable alerts and banners.

(Notifications are temporarily disabled and will be automatically reenabled the next day)


How can I disable the delay + minimum distance when deleting icons from the Dock by dragging in Mountain Lion? As you all know, Dock icons can be removed by simply clicking them and dragging them out of the Dock. As soon as the “poof” animation appears, you can release the mouse button to remove the icon.

It seems like in Mountain Lion there is a bit of a delay plus a minimum distance required between when you start dragging and when the “poof” animation appears, i.e. when you can release the mouse button to remove the icon. If you release the mouse button before the “poof” animation appears, the icon won’t be deleted from the Dock. If you don’t drag the icon far enough away from the Dock, the “poof” animation won’t appear at all, and again the icon won’t be deleted from the Dock when you release the mouse button.

Is there a hidden setting (defaults write-style) or some other way to disable this delay and/or minimum distance setting?

Even if there was a hidden preference for it, at least I wasn't able to find one. If someone knows other ways to search for hidden preferences, post a reply to How to explore more defaults write tweaks on OS X?.

strings cannot be used with the binaries of a few applications like Dock, Finder, Safari, or Transmit. According to an answer to Why does the Dock executable not yield any useful strings, unlike other OS X apps?, they might be encrypted by Dont Steal Mac OS X.kext.

I didn't find anything with gdb or by running strings on framework binaries either. Others might still give both of those a shot though.


Best video encoding to preserve Macbook Air battery life? I am about to take a long flight and would like to take my 13" Macbook Air (late 2010 model) to watch some movies. I don't have a DVD drive, so I will be ripping DVDs (that I own), encoding them, and transferring the video files to the Macbook Air. I would like the battery to last as long as possible. What encoding methods should I use so that the Macbook Air uses the least amount of battery?

(I will be using Mac the Ripper to rip the DVDs and Handbrake to encode the video files)

Update: According to some notes by a Stanford student in 2009 about video encoding:

  H.264 better video quality but more processor intensive, than MPEG-4 (easier for older or legacy machines). MacBook Air couldn't keep up! Video takes full advantage of processor for encoding and decoding. MPEG-4 worked fine on the original MacBook Air.

Not sure, but it makes it sound as if H.264 makes the Macbook Air work harder, thus draining the battery more quickly.

You can measure the best for yourself by trying a few settings.

In general, you want the encoding to play without stretching or pixel doubling (and no pixel shrinking) so make sure to pick something that fits your screen naturally. H.264 is by far the best since the GPU does the decoding and it's more power efficient than the CPU for processing video. The data rate can be too high - but most people choose a rate to make the movie small so that's not usually an issue.

Fire up activity monitor from the Applications/Utilities folder and see the CPU usage graph while you are playing various movies. The terminal command pmset -g pslog is also nice to have running while you are testing so you can see the battery estimates over time. If there are no spikes in CPU use the estimate will move down linearly - so you could measure the same 10 minutes or so of a movie and convince yourself you have a good compromise.

The default handbrake settings are probably just fine, so start there and play as needed.


Time Machine keeps excluding my hard drive I have Time Machine set up on a FireWire 800 external drive on my MacBook Pro. I have another USB external drive (formated NTFS with Paragon drivers so that I can store files bigger than 4 GB and access them from Windows) with  iMovie media etc and TM has been backing that up successfully (I can see the files in TM disk).

Recently I ran out of my internal SDD space and moved iPhoto Library to that external USB drive.
Then I got fed up with constantly connecting the USB cable and decided to swap HDD and optical drive (using a solution similar to OptiBay). Again, everything is working fine.

The Problem is that I discovered that Time Machine has not made backups of the Media disk in a while (backups don't contain the iPhoto Library).
Turns out that TM has that disk in the exclude list for some reason.

No matter what I try, TM keeps adding the Media disk back to the exclude list every time I open the Options... from TM prefs.

Some details:

Mac OS X 10.7.3

The disk in question is split in two partitions:
  Media disk: NTFS, 400 GB with 290 GB used
              I can remove it from exclude list, but it reappears
  Stuff disk: FAT32 - never needed to be backed up nor ever has been
              grayed out in exclude list, can't even remove
TM disk free: ~ 500 GB
Latest backup of Media seems to be March 2, 2012 (TM browser indicates),
  which was prior to moving iPhoto Library

BTW, now that the disk is internal anyhow, I can reformat the NTFS partition to HFS+ if that solves the problem. But TM did not have any problems with NTFS in the past. Why now?

Why it was possible is strange in the first place. The change may caused by a decision of Apple, packed in an update.

Reformat the NTFS partition to HFS+, will include your drive in Time Machine.

Note: also FAT formatted drives will not be backed up by Time Machine.

Update: Time Machine offers to use an NTFS volume if a write-enabled driver for NTFS is installed before a physical disk with NTFS is introduced to OS X. [source: Enabling Time Machine for a USB HDD with NTFS


Crash with error "No more room to grow table" For the past week or so my computer has been crashing at least once a day with the same error.

*** Panic Report ***
panic(cpu 2 caller 0xffffff8018318b7f): "No more room to grow table: 0x0xffffff8018ab3e00 size:262142, used:262141, requested elem:1"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3248.60.10/osfmk/kern/waitq.c:594
Backtrace (CPU 2), Frame : Return Address
0xffffff802e83bd60 : 0xffffff80182dab52
0xffffff802e83bde0 : 0xffffff8018318b7f
0xffffff802e83be60 : 0xffffff8018316122
0xffffff802e83be70 : 0xffffff80182d43ac
0xffffff802e83bee0 : 0xffffff80182d1bb8
0xffffff802e83bf10 : 0xffffff80183b8eca
0xffffff802e83bfb0 : 0xffffff80183ecd86

BSD process name corresponding to current thread: Google Chrome He

Mac OS version:
15G31

Kernel version:
Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64
Kernel UUID: B5AA8E3E-65B6-3D0E-867B-8DCCF81E536C
Kernel slide:     0x0000000018000000
Kernel text base: 0xffffff8018200000
__HIB  text base: 0xffffff8018100000
System model name: MacBookPro11,5 (Mac-06F11F11946D27C5)

System uptime in nanoseconds: 12138432578219

I've wiped the drive and re-installed El Capitan but I'm still getting the same issue.

I use this machine for software development, so there's a good amount of CPU and memory intense operations, a couple virtual environments, and I run Chrome Canary, Chromium, and Chrome which I know are big hogs as far as browsers go.  However, when running low on memory before I recall there being a dialog window that "Your system is low on memory" and I was able to close programs before a crash.

What would be causing this issue?  Hardware failure?  Memory leak in a program?

I notice that last process name is Google Chrome He so maybe it's just time I switch browsers...

Seems it's a Google Chrome issue and the team is working on a fix.

Check this issue.


Right way to add paths to PATH in mojave I'm not clear how to add permanently paths to the PATH env var. I've found several questions for this each time with a different answers.
I created a .bash_profile in my home dir, but each time I reboot I have to manualy export my paths again.

source ~/.bash_profile doesn't even work.

What am I missing?

This is currently my .bash_profile

export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

What you've laid out is the proper way to add additional directories to your user's $PATH.

Step 1 - ~/.bash_profile

To start make edits to your ~/.bash_profile adding whatever locations you'd like to have amended to your $PATH.

export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"

Step 2 - source ~/.bash_profile

After making the above edits to this file you can either use the source command or the . notation to "reload" and changes made to this file in your current shell's context.

$ . ~/.bash_profile

-or-

$ source ~/.bash_profile

Step 3 - Evaluate changes

After making the edits and sourcing them you can confirm they had the effect you desired by echoing the contents of the $PATH varible.

$ echo $PATH | tr ':' '\n'
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/X11/bin
/Applications/Wireshark.app/Contents/MacOS
/usr/local/sbin
/Users/smingolelli/bin
/usr/local/opt/go/libexec/bin
/Applications/Visual Studio Code.app/Contents/Resources/app/bin
/Users/smingolelli/projects/kubebuilder/kubebuilder_1.0.5_darwin_amd64/bin/

The order matters, so directories that occur first will be searched first. If a binary lives in multiple places, the first place encountered will be the one that is used.

Also keep in mind that multiple sourcings of this file will have a negative effect of continuing to add the same changes, so it's often the case that you'll want to completely se the $PATH to a consistent known initial state and then amend it with these types of commands:

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
export PATH="/some/new/dir:$PATH"

Using path_helper

macOS also includes a helper to assistance in the management of your $PATH. It's located here /usr/libexec/path_helper.

So instead of manually crafting your base $PATH as mentioned above you can instead use this snippet to get a known good starting point for your $PATH.

[ -x /usr/libexec/path_helper ] && eval $(/usr/libexec/path_helper -s)

This will take care to initialize $PATH so any directories listed in /etc/paths and /etc/paths.d/ get added automatically.


my ipod classic 160gb is not recognised in my computer when connected but is still charging My Ipod Classic 160gb is not being recognised in my computer or itunes when connected but is still charging. Is there anything I can do to fix this?

There are a whole host of things that can cause the software chain to not recognize an iPod and/or iOS device.


How do I reload the Mac OS on a new MacBook Pro that comes without Mac OS X DVD? I just purchased the base model (i5/4gb ram) MacBook Pro 13' 2012 computer. The reason I purchased the base model is because I already had an SSD drive and 8GB of memory compatible with this computer.

Unfortunately, Apple does not give the Mac OS X DVD any more, they load it as an image on the hard drive.

Since I need to remove the existing hard drive and replace it with the new SSD drive, how will I load the Mac OS image?

Any computer that shipped with Lion or Mountain Lion has Internet Recovery, which is a very limited installer that downloads the full OS from Apple and installs it. To get into the Recovery mode, just boot while holding down commandR, and it will prompt you for the rest.

However you can also do a direct clone of your existing disk to your SSD, which will avoid having to download the installer (it's about 4 GB) or reinstall all your programs and data. You'll need an external enclosure to put one of the drives in. You can do this with the built-in Disk Utility tool, or a tool like SuperDuper (the free version of which suffices for this task).


How do I login to my Instagram account on another device? I had an iPhone 6. Then it broke in an accident and won't turn on. It had all my data with my Instagram and Snapchat accounts on it. I tried logging into my Instagram account the other day, but I am unable to since it's not my original device I'm signing in from. I had no email on my account, and I'm afraid I won't get access to my account back.

How can I reclaim access to my accounts?

It appears you have created the Instagram account using your phone number. Snapchat account on the other hand is created with phone number.

Regain access to the original phone number from the broken iPhone. If you setup your new phone with the same number, you'll be able to recover both the account onto it. You'll simply need to install the app(s) on your new phone and authenticate via OTP received on your phone number.

You also can restore your iCloud or iTunes backup to an iPad or iPhone or possible iPod touch based on the iOS version of the backup, but you can probably work with support for each system (Snapchat, Instagram) from any mobile device with your same cell number.


Does Tiger have one install CD for both architectures? I'm eyeing an unopened set of 2 tiger install DVDs on eBay. When they were originally shipped, did 10.4 DVDs support both Intel and PPC on the same disk?

According to Wikipedia, only Tiger Server included a universal DVD: (http://en.wikipedia.org/wiki/OS_X#Version_10.4:_.22Tiger.22):

  Mac OS X v10.4 "Tiger" was released on April 29, 2005. (...) On January 10, 2006, Apple released the first Intel-based Macs along with the 10.4.4 update to Tiger. (...) Only PowerPC Macs can be booted from retail copies of the Tiger client DVD, but there is a Universal DVD of Tiger Server 10.4.7 (8K1079) that can boot both PowerPC and Intel Macs.

I happen to have a retail Mac OS X Tiger DVD (part# 2Z691-5305-A) and my MacBook Pro didn't boot from it, which seems to confirm the information above.

That said, Apple may have released other Tiger DVDs. The short URL provided by the OP's in the comment below points to an auction of a purported free upgrade for Intel-based iMac owners with P/N 1001123:

I found here a very similar, if not the same, product:

I'm pretty sure this DVD won't boot from a PowerPC computer, nor will include drivers for any hardware other than the Intel-based iMacs it was intended for. Also notice that the auction is an upgrade, that means, you need Panther installed on your Mac.


MacPort - jslint fails to install due to incompatible spidermonkey installation Problem Description in Brief:
I am trying to install jslint which depends on the spidermonkey macport.  Installation of spidermonkey is successful, however, it appears to be incompatible with the installation of jslint.  Consequently, jslint is not installed.

Problem Description in Detail:
When I tried to install jslint, it successfully installed its dependency, spidermonkey, however, failed to install jslint.  Below is the error message that was returned, which I copied and pasted from the log that was produced.

:debug:configure configure phase started at Mon Nov 11 13:31:53 EST 2013
:notice:configure --->  Configuring jslint
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (jslint)
:error:configure You need to install spidermonkey with the +fileobject variant in order to use jslint.
:error:configure org.macports.configure for port jslint returned: incompatible spidermonkey installation
:debug:configure Error code: NONE
:debug:configure Backtrace: incompatible spidermonkey installation
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for jslint: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port jslint for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_jslint/jslint/main.log

This is a problem that has been reported to the MacPorts project, however, closed due to it being 'invalid'.  See the following link.

http://trac.macports.org/ticket/37053

So, my question is, how do I go about installing spidermonkey with the +fileobject variant in order to install and use jslint?  Furthermore, is there a way to configure macports so I don't have to do this each time I try to upgrade my macports?

Any advice/suggestions on how to resolve this would be appreciated.

If you don't have spidermonkey installed, use sudo port install jslint +fileobject. If you already have it installed, you need to rebuild it with the +fileobject variant: sudo port upgrade --enforce-variants spidermonkey +fileobject and re-try installing jslint.


Yosemite share internet via wifi I am using internet via wifi connection. Now I want to share my internet with my iphone. In the preferences, I found the option Internet Sharing, but there is no "wifi" option under "To computers using:". "Only ZTE WCDMA Tech" and "Thunderbolt Bridge".

What to do?

You can not bridge from WiFi to WiFi. You'll have to connect to the internet via a different port if you want to share the connection. I'm assuming the reason you don't connect to the network directly with your iPhone is some kind of client limit. You could use a Wireless Router to connect to the WiFi and repeat and reroute it. If you use an Apple Airport make sure you disable bridge mode.


freezes and hangs in macbook pro i have a 2009 macbook pro. it has been working fine till now. since the past 2 weeks when i open an application or browse the net it freezes. i see a message saying waiting for cache or waiting for Appcache. this happens almost every 5 minutes.

any ideas on how i can stop this and get my macbook back to normal?

can third party apps like mackeeper resolve this? anyone out there with a similar issue that has used it?

Is the waiting for cache message showing up in Google Chrome? If that is the case, then yes, that's a pretty common issue with Chrome itself not specific to OS X. I've had that issue a number of times and have yet to find any way to resolve it apart from a full wipe of the application.

As for the other applications you are talking about, are there some specific applications that freeze, or all apps in general? A screenshot of your Activity Monitor would be ver helpful.


Cannot mount/unmount external hard drive on Mac I have a 1TB external hard drive. It was used as backup disk for Time Machine. But from one day, my Mac cannot recognise it.

The problem may caused by my removing disk without ejecting it first.

I can see the disk by diskutil list:

$diskutil list
.... This is it.

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Chang                   999.9 GB   disk2s2

$diskutil eject disk2
Volume timed out while waiting to eject

$diskutil unmount /dev/disk2
disk2 was already unmounted or it has a partitioning scheme so use "diskutil unmountDisk" instead

$diskutil unmountDisk /dev/disk2
Unmount of disk2 failed: at least one volume could not be unmounted

$diskutil mount /dev/disk2
Volume on disk2 timed out waiting to mount

$diskutil mountDisk /dev/disk2
One or more volume(s) failed to mount

And the results:

$diskutil verifyDisk disk2
Started partition map verification on disk2
Checking prerequisites
Checking the partition list
Checking the partition map size
Checking for an EFI system partition
Checking the EFI system partition's size
Checking the EFI system partition's file system
Checking the EFI system partition's folder content
Checking all HFS data partition loader spaces
Checking booter partitions
Checking Core Storage Physical Volume partitions
The partition map appears to be OK
Finished partition map verification on disk2

$diskutil verifyVolume disk2s2
Started file system verification on disk2s2 Chang
Verifying file system
Checking Journaled HFS Plus volume
Detected a case-sensitive volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking multi-linked directories
Invalid parent for directory inode (id = 6286950)
(It should be 19 instead of 18)
Invalid name for directory inode (id = 6286950)
(It should be dir_6286950 instead of temp6286950)
Incorrect number of directory hard links
The volume Chang could not be verified completely
File system check exit code is 8
Error: -69845: File system verify or repair failed
Underlying error: 8: Exec format error

I just had this happen to me. If it won't repair on Disk Utility, you can try Disk Warrior. You might get lucky, however in my experience since the drive wouldn't mount, it was impossible to get anything.
I was able to get some data back through a data recovery service, which cost around $220, but I am discovering that some if the data is corrupt and won't restore.
I would recommend that you take the drive to a professional. Anything you can do might do more harm.
And have a double-backup plan.


What type of hash are a Mac's password stored in? On OS X 10.11 - I have opened up my user's .plist file, and have looked inside of the file.

I did this with the following command:

sudo defaults read /var/db/dslocal/nodes/Default/users/<username>.plist ShadowHashData|tr -dc 0-9a-f|xxd -r -p|plutil -convert xml1 - -o -

The file said SALTED-SHA512 in it, so I assumed it was a SHA512 hash.

But, I went to a few SHA512 hash generator sites, and I put in my password. I ended up getting a different hash than what was in the .plist file.

So, how do I convert what is in the .plist file into an actual hash, or exactly what type of hash is stored in the file?


Can sound be off every time I power off? I would like to config my Mac (10.8.5) to turn the sound off every time I power it off so that when I power it back on it is silent and doesn't produce that funny boot sound.  Can that be done?

The thing is, I come in to work late and, if I had the sound on before I turned the laptop off (e.g. watched YouTube at home) and forgot to turn the sound off before, my whole cube farm at work resonates and they are like "this guy just came in to work"...  LOL

You can set the audio value on boot using this:

sudo nvram SystemAudioVolume=%00

00 will set to 0% volume (i.e. mute)

You can reset this by resetting the NVRAM by booting with ⌘⌥PR, or running

sudo nvram -d SystemAudioVolume


Change Ctrl+Arrow and Ctrl+Shift+Arrow to jump/jump+select a single word rather than the whole line? In order to change the way home and end function on OS X so it matches other devices I frequently utilised this 'hack'. Is there a similar way to override the way Ctrl+arrow and Ctrl+Shift+arrow work?

I appreciate that if I was completely moving to OS X it's silly, however, when all other devices use these keys in this fashion it makes sense to reconfigure them on the one device that doesn't match.

In short, I want to make ctrl+left/right arrow jump by word/punctuation separator as it does on Ubuntu and Windows rather than to the end of line.

I would prefer to use a native override rather than installing an app to perform this task, but if that's not possible then please let me know of any apps.

Create ~/Library/KeyBindings/ and save a property list like this as DefaultKeyBinding.dict:

{
  "^\UF702" = moveWordLeft:;
  "^\UF703" = moveWordRight:;
  "^$\UF702" = moveWordLeftAndModifySelection:;
  "^$\UF703" = moveWordRightAndModifySelection:;
}

Then quit and reopen applications to apply the changes.

See http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html or http://lri.me/keybindings.html for more information.


New Files App on iPhone Showing 0 Files With the old iCloud App on my iPhone SE, I could always see my Macbook's Desktop and Documents folder.
That is no longer the case with the new Files App!  It will show the amount of free space available, but no files.
The size matches what is actually shown in iCloud.

In the Files App, it always shows 0 files.  My wife can still see all of the files from my MacBook's Desktop and Documents folder on her iPad (same iCloud account). However, I cannot.

I can create a new file/folder on my MacBook and it is viewable immediately on the iPad but not my iPhone.

What could be causing this and how would I resolve this issue?

You probably need to enable iCloud Drive in order to showcase the iCloud Drive files and folders.

  On your iPhone, iPad, and iPod touch

  Go to Settings > [your name].
  Tap iCloud.
  Swipe to turn on iCloud Drive.

  You can find your iCloud Drive files in the Files app.

  After you set up iCloud Drive, any documents that you've already
  stored in iCloud are automatically moved to iCloud Drive. Your iPhone,
  iPad, iPod touch, and iCloud.com keep your files in the Files app in
  addition to the Pages, Numbers, and Keynote apps. If you don't see
  your files in these apps, they might be on a device that doesn't have
  iCloud Drive turned on (or under a different Apple ID).

Set up iCloud Drive - https://support.apple.com/en-us/HT204025


MacOS Sierra - Cannot find what is using all disk space My Macbook Pro has run out of disk space, and I cannot find out why.

I have minimal Applications and user data.

Output from df -h

Filesystem      Size   Used  Avail Capacity  iused   ifree %iused  Mounted on
/dev/disk1     233Gi  227Gi  5.8Gi    98% 59462769 1518477   98%   /
devfs          182Ki  182Ki    0Bi   100%      630       0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%        0       0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%        0       0  100%   /home

As you can see here, it is reporting that I have around 6GB free space.

I then used ncdu to try get a better understanding of what was actually using the space

As you can see, ncdu is reporting that I have used about 30GB of space, which looks right to me.

I am obviously looking at something incorrectly here.

Any insights?

Try sudo ncdu instead. As a normal admin or user you are not allowed to scan the content of certain folders (all indicated by an error while scanning and in the final listing by a dot - if a subfolder can't be scanned - or an exclamation mark - if the whole folder is excluded from scanning due to missing read permissions!).

Examples (only the big six and the .Spotlight-V100 folder are shown here):

ncdu:

   10,7 GiB [##########] /Applications
.   4,8 GiB [####      ] /System
.   3,5 GiB [###       ] /Library
.   2,2 GiB [##        ] /usr
.   1,8 GiB [#         ] /private
.   1,1 GiB [#         ] /Users
             ...
!   0,0   B [          ] /.Spotlight-V100

sudo ncdu:

.  10,7 GiB [##########] /Applications
    6,3 GiB [#####     ] /System
    5,2 GiB [####      ] /Library
    2,6 GiB [##        ] /private
    2,4 GiB [##        ] /usr
    1,2 GiB [#         ] /Users
             ...
  310,7 MiB [          ] /.Spotlight-V100

Another nice perl hack is this command:

sudo perl -e'%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -h`;die@h{sort%h}'

It will sort all folders (not just those in the current folder) depending on size similar to Grand Perspective without bricks:

 29G    .
 11G    ./Applications
7,4G    ./Applications/Xcode.app
6,3G    ./System
5,2G    ./Library
2,4G    ./usr
1,9G    ./usr/local
966M    ./Users/user/Library
879M    ./System/Library/PrivateFrameworks
851M    ./Applications/MAMP
850M    ./private/var/db/dyld
805M    ./usr/local/mysql-5.7.11-osx10.9-x86_64/lib
778M    ./System/Library/Frameworks
...


How to check if the screen replacement part for iPhone 5s is an original one? I'm about to repair a broken screen for iPhone 5S at a non-official repair shop (as official repairs don't provide screen replacement in my region, only replace the whole phone for a fee).

How can I check that the replacement part is a genuine one made by Apple (no matter new or extracted from a used phone) rather than a third-party replica?

In all likelihood the screen won't be original. You'll be able to tell from a number of factors but none of them are conclusive as fake screens can exhibit any of these indicators...

The glass should be a deep black or neutral white, not grey, or cream.
The phone shouldn't feel heavier, often fake screens are much heavier.
The grille over the ear piece should have a fine black mesh not silver or with large holes, or missing.
After cleaning the screen, if you place the screen in a bright pin/spot light you should see a streaks of rainbow colours in a criss-crosssing diamond pattern.

The thickness should be the same as before, fake screens are often almost twice as thick as originals.

You shouldn't be able to see the proximity sensor in the glass, and if you can it should be a neutral grey not a blue transparent look.


iPhone sends iMessage, but doesn't show that it was "delivered", even though it is So after switching to my new iPhone 6s, I have been sending messages through iMessage. I haven't had any major issues. What has occurred though is that the messages send with the blue bubble (informing me that they are sending as iMessages) and the recipient receives the message and is able to respond without any issue. But the actual messages never displays the words "delivered" under them. While this isn't a major issue as they are sending without any problem, I am wondering why the words "delivered" do not show up.

P.S. the words "delivered" appear for the recipient when they respond to me.

iMessage lets you send free text, photo, and video messages to other
  iOS and OS X users anywhere in the world . Read receipts allow your
  contacts to see whether or not you've viewed a message. While some
  people may consider read receipts to be a bit stalker-ish, others may
  find them useful for work and business situations. Regardless of why
  you need them, we can help you turn them on or off no matter what iOS
  device or Mac you're using.

http://www.imore.com/how-turn-and-read-receipts-imessage

Just ask to your friends if they have disabled this feature ;)


Preventing Remote Desktop from reconnecting to lost connections after waking Throughout a given work day, I alternate between my Windows 7 desktop and MacBook Air, using my PC via Microsoft Remote Desktop on my Mac. When I swap from my Mac to my PC, I simply close my Mac's lid and log back in at my PC, ending the Remote Desktop session.

The problem is, when I log back into my Mac, Remote Desktop reconnects automatically, logging out at the PC.

Normally this would merely an inconvenience but lately I've noticed a few key programs crashing as the result of switching between single and dual displays (I have to first minimize them on my PC prior to switching to my Mac). Plus, I've had the desktop service irrecoverably crash and been forced to hard reboot.

Prior to buying my Mac, I used a Windows laptop. Whenever the laptop was put to sleep and the RDC connection lost, upon waking Remote Desktop would simply display the connection dialog.

Is there a way to prevent Microsoft Remote Desktop on my Mac from automatically reinitializing lost RDC connections?

Yes

You can edit the connection and under the login settings you can untick the Reconnect automatically if disconnected box. You can configure this in the Default.rdp file or alternatively in each connection if you save separate rdp files. However, as far as I am aware it will only worked if you have saved settings for that particular machine/server.


iTunes store search from iPhone When I go to search the iTunes store from my iPhone the page displays a "No Results for"...  I have been unable to find a way to perform another search.  This page is not responding to any input.  What should I do?

Here is a screenshot:

Restart the App Store app by double-clicking the Home button.

If that doesn't cut it, restart the iPhone and try again.


How can I remove the eject button from my menubar when cmd-drag won't work? I have an eject icon in my menubar that I cannot remove by command-dragging it out of the bar. Is there a command I can run in Terminal?

I have realized what the problem was

If you use Bartender.app, if the app is active, you cannot drag items out of the menubar. You need to quit Bartender first


Run app as a different user (automator) i'd like to be able to open an app as a different user.
For example PC1 is my main account and PC7 is my secondary one.

I can achieve the effect in terminal using

su - pc7
insert password
/Applications/Application.app/Contents/MacOS/ApplicationName

How can i use the automator to make a script/app whatever that does this by a simple doubleclick?

Thanks

You can not trivially launch graphical applications as another user.

A Proxy Process is Required

To launch a graphical application as another user, that user must be logged in to a graphical session and have a process running within their session able to launch your desired application.

Prior to OS X 10.9, this could be approximated via the launchctl command. See How to launch a GUI application in another user's graphical session? for a detailed discussion.


Xcode 4.1 not downloading - Lion I am trying to download Xcode 4.1 from the Mac App Store (I am on Lion, and I have Xcode 3 installed). The problem is that the download bar barely moved, and after being stuck there for an hour it reset to 0%.

You can remove the partial download by searching for Install in spotlight, then return to the purchased section and re-download the installer.

A reboot will ensure it's not paused or some temporary error has caused the slowness.


iCloud storage, Backup none of my photos are available anymore , they dont open properly (all blurry) and it says its because i dont have enough icloud storage, i went to check it through my iphone but it tells me "unable to load storage info" (i tried both on wifi and data) so i can do nothing about it. I checked with pc and i have 2GB free. I wanted to know how I can get my photos back or at least transfer them to my pc.

Go to settings -> Tap on your name -> Tap on iCloud -> Tap on Storage or Manage Storage and then you'll be able to see how much "iCloud storage you have available.

Your iPhone storage is different from your iCloud. What you can do though is while you are in iCloud settings, go to Photos (in iCloud) then put a check next to "Download and keep originals". That will make sure the photos save in full quality. This will also eat up your iPhone storage depending on how many photos you have.


Safari cannot be forced to quit I am trying to force to quit Safari but that doesn't work.

What is happening?

When looking at the Dock, the icon Safari is not accompany by a dot (meaning that the application is closed). However, on the Force Quit Application window Safari is visible. I can select it and press Force Quit but nothing happen. I can also make a secondary click on the icon on the Dock and click on Force Quit but again nothing happens. Under Activity Monitor there is no process that contain the word Safari and there is no process that are particularly demanding neither in terms of CPU nor in terms of RAM. When I try to restart my computer, I get a message saying that the computer cannot restart because I have to quit Safari first. When I try to open Safari (via the Dock or via the Applications folder), nothing happens.

How did this situation come to existence?

I already had a few troubles with Safari in the past months. New tabs and windows sometimes load forever and Safari is sometimes very slow. I went camping for a few days and I let my computer under sleep with the Safari, Sublime Text 2 and Preview open. I just came back from camping, I opened my computer and Safari was very very slow. I wanted to quit, I had to force to quit. I thought it worked out well at first place and I then realized that Safari is not "completely closed".

Extra info

My (almost 5 years old) MacBook Pro runs on OS X Yosemite 10.10.3

After @slick's answer the version of Safari:

$cat /Applications/Safari.app/Contents/version.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildVersion</key>
    <string>1</string>
    <key>CFBundleShortVersionString</key>
    <string>8.0.5</string>
    <key>CFBundleVersion</key>
    <string>10600.5.17</string>
    <key>ProjectName</key>
    <string>WebBrowser</string>
    <key>SourceVersion</key>
    <string>7600005017000000</string>
</dict>
</plist>

The only plug-in I have is AdBlock.

Question

What is happening? How can I solve this issue?

I've had this problem in the past, and what works for me is typing into the terminal, "pkill -f safari". That will kill the application no matter what.


MacOS Mojave 10.14.1 Captive Wi-Fi Problem This is the same/similar to this one, but I'm running the final version of 10.14.1. I can make the problem go away if I remove the following files from /Library/Preferences/SystemConfiguration/:

com.apple.airport.preferences.plist
com.apple.wifi.message-tracer.plist
NetworkInterfaces.plist
preferences.plist

After a reboot, the captive login window works, but at some point, it stops working again and looks like:

I haven't tested much - I don't have regular access to many captive Wi-Fi networks.

I can work around the problem by dismissing the error, closing the window and using Safari to go to https://captive.apple.com, but I would like to solve the problem rather than work around it if possible.

Has anyone figured this out or can anyone point me in the right direction?

It may be related to the Sophos antivirus scanner, see https://support.home.sophos.com/hc/en-us/articles/360020126572-Captive-Portal-Login-Page-does-not-load-on-MacOS-when-connecting-to-a-Public-Guest-Wi-Fi-Hotspot-


When plugged in, does the iPhone use the battery or the external source during heavy use? I love to play games and do other tasks that quickly drain the iPhone's battery. Sometimes I'll use the phone while plugged into a power supply. Does the iPhone still use the battery when performing these high-performance tasks while connected to the power source?

When you're plugged in to a power source, the iPhone will not use the battery unless for some reason you are using more power than the charging source can provide.

Normally, unless some process is hitting the CPU and GPU and all radios (such as a GPS mapping app), even a computer USB port at 500 mA will both power your games/apps and charge your battery at the same time.

Even if your game takes more current than the charge is providing, using all the wall power will reduce the amount of battery being consumed which will certainly save your battery.

Of course, you should expect hundreds of full charge/discharges and as long as you are one a month draining the battery, you don't need to keep the electrons moving otherwise for good battery lifespan and health.


Odd Red Lines in Windows 7 Games on 2013 rMBP Last September, I upgraded to a late 2013 model rMBP (Core i5 2.4ghz with Intel Iris 5100). It has largely been fantastic for gaming in Windows 7 — I've played through Bioshock Infinite, Dishonored, Dark Souls and others all without many problems and with a good performance and quality.

However, some games give me a really odd glitch when certain settings are enabled. Spec Ops: The Line, The Vanishing of Ethan Carter, and Borderlands 2 (so far) have all displayed odd red lines/artifacting, and though I can sometimes remove them by fiddling with settings, I was hoping someone would know if there is any root cause of this. I updated to the latest drivers this morning while trying to fix this, and there was no change.

Screenshot of the glitch in Borderlands, where the glitch is apparently tied to the Depth of Field setting:

Thanks to ScunnerDarkly's comments and this link, I found the correct settings in the Intel Iris Control Panel.

For any who have a similar issue:

In particular make sure to select "Custom Settings" on the right and set both to "Application Settings."


Mojave can't be installed but still boots to Installer partition I downloaded macOS Mojave from the App Store and, upon running it, it told me that my MBP (15-inch, Mid 2010, currently High Sierra) can't be upgraded to Mojave.

Then it restarted my Mac... into the same installer again. This time, the installer complained of some missing files.

I booted back into my Mac and deleted the .app file, but the boot menu (by pressing Option during boot) are still showing 3 partitions: mac OS Installer, OSX, and Recovery HD—in that order.

The weird thing is, both mac OS Installer and Recovery HD seem to open the same thing—a menu(?) where you can reinstall Lion(!!!).

My question: How do I remove mac OS Installer from the boot menu? Or, at least, reorder the menu so that OSX comes first.

I read on the internet to rerun the installer and cancel it there—well, I've deleted the file so I have to download it again, but now App Store prevents me from downloading it ("This version of macOS 10.14.5 cannot be installed on this computer."—I know! Why didn't you say so last time!)

You would have to get another Mac with an ethernet port, boot your Mac in Target Disk mode (Command T) and connect it via ethernet to the other Mac. You can also use the Thunderbolt 2 ports to network the two Macs.

Once it's up, you can access your Mac's HD as if it was an external HD, and you can remove the file from there.

Additionally, you could try booting into recovery Mode (Command R) and fix your HD's permissions with Disk Utility.

The thing is, the App store would have prevented you from even downloading Mojave, since it checks your hardware for compatibility. Mojave also lists its system requirements as well a the compatible systems on the website, as well as the App store.

So, I suppose you must have downloaded Mojave from somewhere else. The reason why we can't install Mojave in older systems is because of compatibility. Mojave also needs a lot of resources that only newer systems can handle. The oldest systems that can still handle Mojave are those released in 2012, whereas those from 2011 and below can only handle up to High Sierra.


Move a bunch of ical events at once I have got all the dates and times for my class seminars set in iCal, and I've also made week-long events that coincide with my colleges week numbering.

The thing is, I forgot to let out this Easter holidays, which are two weeks that should be blank.

What I want to do is select all events and move them two weeks. How can I do that?

Fast forward 7 years! iCal is now Apple Calendar.

You can now select multiple events and use the keyboard shortcuts:

⌃⌥ [ ↑ | ↓ ] to move the events 15min sooner or later.

⌃⌥ [ ← | → ] to move the events 1 day (in day/week view) or 1 week (in month view) sooner or later.


Unable to create iCloud-Backup i wanted to create an icloud backup for my iphone.
after i started i lost my wifi connection because i left my house.
after i came back i found out, that the backup failed.

since then i was not able to create another backup.

in one forum i found the answer, to delete all my previous updates. thats why there is written "last backup: never".

when i start my backup, it starts loading first but then stops again.

what can i do to make it work again?

does this problem even come from the failed connection?

The first step I would try after doing what you have done already would be to turn off iCloud backups and restart the phone before turning it back on again.

If that doesn't work, I would try to initiate the backup from iTunes using the Back Up Now button. (I'm assuming you were trying from the iPhone) Go to iTunes and select your device the you should see this:


Which problems can be expected by continuing to use a MacBook Pro Battery already due for replacement? I turned in my MacBook Pro 15" Late-2013 to a service shop. The battery indicator recently has said either "Condition: Replace Now" or "Condition: Service Battery" (I can't remember which).

The service shop returned a service cost proposal: after currency conversion $350 USD + VAT including work. Quite expensive.

The reason for the high price is – according to the shop – that the battery on this model is permanently attached to the so called "Top Case" (unibody case + keyboard + trackpad). To replace the battery, the Top Case assembly must be replaced.

I am inclined to reject the service offer, and keep on using the computer with the current battery. What sort of problems can be expected by doing so? Is the computer in any danger in the short or long term?

FYI, MacOS help about battery conditions:

  View your battery’s condition: Press and hold the Option key and click
  the battery icon  in the menu bar.

  You may see any of the following conditions:

  Normal: The battery is functioning normally.

  Replace Soon: The battery is functioning normally but holds less
  charge than it did when it was new.

  Replace Now: The battery is functioning normally but holds
  significantly less charge than it did when it was new. You can
  continue to use the battery until you replace it without harming your
  computer.

  Service Battery: The battery isn’t functioning normally, and you may
  or may not notice a change in its behavior or the amount of charge it
  holds. Take your computer in for service. You can continue to use your
  battery before it’s checked without harming your computer.

I use a similar model of MacBook Pro (15” Late 2013).

The batteries have something called charge cycle (1 charge cycle = 1 full charge and discharge). The MacBook Pro battery typically retain 80% charge holding capacity after completing 1000 cycles.

Although the advanced lithium-ion batteries in MacBook is meant to last for several years before they begin to lose their overall charge capacity, there will eventually be a time when it will need replacement.

This is reported by macOS by alerting you about battery condition. You can also view the current cycle count of the battery by going to Apple Menu → About This Mac → System Report... → Hardware → Power → Battery Information: → Health Information: → Cycle Count.

There are also various 3rd party apps which you can use to determine the current battery health status. coconutBattery is one such popular tool.

Once you are convinced that the battery need replacement, it is strongly advised to do so.

Also, the top case, keyboard, trackpad and the battery comprise of a single unit in the MacBook model you own. The entire unit will need replacement. (I got mine replaced a few months ago). That explains the hefty price tag.

  Which problems can be expected by continuing to use a MacBook Pro Battery already due for replacement?

Continuing to neglect replacement may end up damaging other components thereby leading to more expenses. In my case (pun intended :-D), the battery started swelling which could have also ended up damaging the logic board assembly.

Other obvious issues include, lesser backup than expected, random shutdown under load and possibility of reduced performance at times.

If you haven't done so in the last 5 years since you bought the MacBook and macOS is alerting you about it, it's highly recommended to get the battery replaced for extending the lifetime of your MacBook Pro.


Battery Cycles being used very fast I am using a 13-inch mid 2014 MacBook Pro with Retina Display.
It is about 3 weeks old and already has clocked 13 charge cycles.

Is this too high ?

I am using a 13-inch mid 2014 MacBook Pro with Retina Display. It is
  about 3 weeks old and already has clocked 13 charge cycles. Is this
  too high?

A charge cycle is just the process of using and then recharging the full capacity of the battery one time. From Apple:

  A charge cycle means using all of the battery’s power, but that
  doesn’t necessarily mean a single charge. For instance, you could use
  your notebook for an hour or more one day, using half its charge, and
  then recharge it fully. If you did the same thing the next day, it
  would count as one charge cycle, not two, so it may take several days
  to complete a cycle.

You can't really have "too many" charge cycles unless there's something wrong with the battery and it's unable to hold a charge. That seems unlikely since your computer is brand new (and OS X will notify you if your battery condition is abnormal).

Furthermore, your particular model is rated for 1,000 charge cycles before it's considered "consumed" (meaning it'll no longer hold a reasonable charge and will likely need to be replaced). If your current rate of 13 charge cycles per three weeks holds, that means you're good for 4.5 years – in other words, nothing to worry about!

  Also, I follow the practice of fully charging it and then using till
  about 40% before recharging without ever leaving it plugged in. Is
  this the best practice to follow or should I leave it plugged in while
  charging ?

Even if you leave your laptop plugged in at 100%, the system will actually silently discharge the battery to ~95% and back up to keep things moving. Apple used to recommend unplugging your laptop at least once a month, but their current guidelines make no mention of that, so I wouldn't worry about it.


change screen resolution with AppleScript How can I change change screen resolution using AppleScript? If AppleScript can't do it, what about Terminal?

I tried with examples at How to set screen resolution with a keyboard shortcut on Retina MBP?, but they don't work anymore. I'm on MacBookPro Retina.

This is how the script definitively should start:

    tell application "System Preferences"
        activate
        reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
    end tell
    tell application "System Events"
        tell application process "System Preferences"
          -- insert magic
        end tell
    end tell

Now I just need to click on "Scaled" and select different display resolutions, but I don't know how these buttons are "called".

We have created a python script, called Display Manager that allows you programmatically set resolution, bit depth, underscan, mirroring, etc.

Give it a try and let us know if you want additional functionality

https://github.com/univ-of-utah-marriott-library-apple/display_manager


I am trying to clone a 2TB drive that has mac os x 10.6.8 onto a smaller drive but dont know what I am doing I have a Mac Pro that I cant install an OS onto at the moment because I do not have snow leopard. I do have a bootable 2TB Western Digital drive that comes from an identical Mac Pro that has 10.6.8 loaded onto it. I have tested this drive onto the computer in question and it boots ok. I only have a 250 GB drive to use as a target disk. The 2TB drive has only about 65GB used space. When I try to shrink the partition via Gparted, a caution exclamation point w an orange box appears that says it can not read the contents of this drive while terminal indicates that gparted only supports 512 byte length sectors and the journaled drive is not 512 byte length. When I mount the drive, the exclamation point goes away but mounting it doesnt allow me to shrink the partition.

link to my previous related question: Mac Pro install disk keeps ejecting itself

Assuming your info is correct & there is going to be room on the 250, this should be simple in a Pro.

Put both drives in the Mac Pro.
Boot from the one that works.
Format the other [just to be certain] in Disk Utility as a single volume, GUID/HFS+ [Don't name it exactly as the other, to save confusion]
Get Carbon Copy Cloner*. Paid, but demo available - It's worth owning.
Clone one to the other.
Remove the old drive.
Boot to the new drive.
Change its name to that of the old drive
This will just fix anything that is using the actual volume name - it shouldn't, but it might be. You can skip this step & see if anything falls over, if you want to separate the names long-term.
Done.

* Looks like you will need an older version - 3.5.7 from the bottom of this page - https://bombich.com/download


fstab syntax for afp share with space and special characters? I have a share on a netatalk server that exporting "Don's home" - I want to add to fstab so that it's handled by autofs as an indirect mount.

I've tried using %60 and %20, quoting, escaping with backslash, \40, \040, etc. Anyone know the syntax?

When there are no special characters this works fine:

server:/share dummy url net,automounted,url==afp://user:pass@server/share 0 0

I've searched the whole Internet on this issue, and seems like you cannot automount points with spaces. I've tried all kinds of tricks on Yosemite to make myself sure.

However, you can use manual command to mount to such points, for SMB it will be:

mount_smbfs //user:password@server/share%20with%20spaces /Volumes/Network/Share\ With\ Spaces/

Probably this could exist in some Automator script and get executed at a startup time, but this is not automount, of course. So I ended up with underscore characters in mount point names.


Bootcamp says Disk Could Not Be Partitioned on Catalina Version 10.15.2 I have macbook air 2015 on Catalina Version 10.15.2 .
So previously I had ran into this issue MacBook filesystem FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF after deleting linux partition
 and thank god I fixed it but I was not able after that to boot into windows 10 it was entering in recovery screen with error code 0xc00000e. So I deleted bootcamp and tried to reinstall it. I download latest windows 10 64 bit iso file and when I tried to install it via bootcamp it says Disk Could Not Be Partitioned!  I tried running first aid from disk utility but it says that there are no problems. I just don't know what to do any help would be appreciated!

macbooks-MacBook-Air:~ macbook$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Data     145.4 GB   disk1s1
   2:                APFS Volume Preboot                 82.4 MB    disk1s2
   3:                APFS Volume Recovery                528.5 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4
   5:                APFS Volume Macintosh HD            11.0 GB    disk1s5

macbooks-MacBook-Air:~ macbook$

The same issue with the latest Cataline 10.15.3 and two SSD Fusion Drive (internal 24Gb + 512Gb WD placed instead of HDD), made with command "diskutil resetFusion" which is related to Catalina or later OS.

Hello Apple.


iPhone alarm doesn't go off sometimes! At times, the alarm in my iPhone 4S sometimes doesn't go off as set. Or actually, it goes off and I see the corresponding UI on the screen but there is NO sound.

This happens very randomly, may be once in ten times but is obviously not acceptable in an alarm application.

This mostly happens when the phone is in silent mode (which is still NOT expected behavior I am sure) but has also happened a couple times when the phone was non-silent.

How do I fix this?

This could have to do with a software issue on the phone. Try backing up your phone via iCloud or computer, then wipe and restore it as new. If it doesn’t fix the problem, take your device to Apple as it could be an internal hardware issue.


How can I insert an image in Keynote 09 that retains a link to an external file? Or even better, how can I embed another .key file inside a keynote presentation. There was support to a "linkback" PDF functionallity similar to what Omnigraffle offers but it doesn't seem to be supported in the latest version

When you add an image to Keynote it copies it into its package.  What I've done is open the package and replace the copy of the image with a link back to the external image.   What I am suggesting isn't simple but does work.


I don't have administrator account anymore - macOS 10.13.4 I tried the answers on the similar previous question but nothing worked.
Obviously Apple removed the critical file .AppleSetupDone in the last Security Update.
Is there anybody who could help getting my administrator account back?

The removal of file .AppleSetupDone to trigger Setup Assistant is still here and fully functional in High Sierra, even in the latest 10.13.5 Beta. You can remove this file either in Single User mode or in Terminal when booted in Recovery Partition.

Another way to restore your admin account is to boot in Recovery Partition, starting Terminal and using the resetpassword command to launch the helper app (see attached screenshot).


Macbook Air charging inconsistently I read the related entries. My Mac Air  11" from 2011 was charging intermittently when plugged in and shutting off suddenly regardless of battery charge level or adapter connection. This problem has been going on for at least a month. I have improved the condition and isolated the possibilities.  SO Now:

-I have reinstalled OSX 10.9 (this was updated for firmware etc)
-Virus Scanned and removed infected files
-cleaned magsafe and adapter connections
-replaced battery (which was working perfectly for months before this issue) it is still in very good condition.
-main disk has been cleaned out and has lots of space

After the cleanup and OSX reinstall this morning, sudden shutoffs seem to have stopped..  If I wiggle the adapter/Magsf connection it will switch its status on the menu bar.    The charging speed and efficiency are inconsistent... then on a hunch I plugged in a USB drive adjacent to the magsafe.  as soon as I did this the battery went into charging mode at what seemed like an average rate...  Magsafe area cooled off..  now after plugging and unplugging I have repeated similar result and my charge has reached 70%.

My only conclusion is possibly a physical problem with the magsafe i/o board (Ac adapter is also new).

What does someone more experienced reckon?

I'd like to know if there is some more direct way to verify that it is the Magsafe board?  (I live in Japan and they don't want to touch anything because I changed the battery, regardless that I had no warranty left)  also I/o boards are about $90 here,  so I want to exhaust options...

Thanks!

i CHANGED THE io board.  it mostly fixed it.  I did some sys maintenance which further improved things.  Finally I realized that my original surmise was correct but that the power supply also hd  faulty cable.  now it runs like new..  mgsfe, as convenient as it seems..  has been  nightmare of cable replacement for me.


Create subfolders, move files I'm trying to organize a bunch of audiobooks and would like to automate some of the work. I have just very basic knowledge of Applescript, but I can usually find a scriptlet online to do the work I want. This one I haven't gotten to work yet.
My files are like this:
Books/Author1/Book.mp3
Books/Author2 - Book.mp3
Books/Author3/Book.mp3
What I want to do is select the books that are not in an Author subfolder, create a subfolder with the Author name, rename the file to just the book title and finally move the book into the newly created folder. I have tried the following script and it works partly. It does everything except move the file at the end. It gives me an error saying: "error "Finder got an error: Handler can’t handle objects of this class." number -10010". Is there any way to change it so it will work? If it makes any difference, the files are on an attached drive (smb://NAS._smb._tcp-local/Audiobooks/Books). There are probably syntax errors for any purists, but as long as it works, I'm not picky :)
tell application "Finder"
    set selectedFiles to selection as alias list

    set containingFolder to container of item 1 of selectedFiles as alias

    repeat with f from 1 to count of selectedFiles
        set thisItem to item f of selectedFiles
        set oldName to thisItem's name

        set newFolderName to text 1 thru ((get offset of "-" in oldName) - 2) of oldName
        set newFileName to text ((get offset of "-" in oldName) + 2) thru end of oldName

        set name of thisItem to newFileName

        move newFileName to (make new folder at containingFolder with properties {name:newFolderName})
    end repeat
end tell

I would use the shell in such a case.
Open Terminal and enter cd path/to/Audiobooks/Books, then run
find . -type f -name '* - *' -maxdepth 1 \
    -exec bash -c 'mkdir -p "${1%% - *}"; mv "$1" "${1%% - *}/${1#* - }"' _ {} \;

PS: This assumes that you want to move all files in that folder and that Author and Title are always separated by - .

This uses find to find all matching (-name '* - *') files (-type f) in the current directory (-maxdepth 1) and then executes the bash ... \; part on each of them. The executed part is basically a bash script which gets the filename in $1 and then uses text substitution to extract author and title (${1%% - *} cuts off the part starting with -, ${1#* - } cuts of the part ending with it).


Weather widget in notification center of iOS5 Is there a way to put weather widget into notification center of iOS5 for iPad?

Considering that the iPod/iPhone Weather app has never existed on the iPad, the answer to this is an extremely simple, and extremely disappointing: "Nope".


Is it possible to bypass a proxy when the proxy settings are set to Auto Proxy Config? I've set up Automatic Proxy Configuration (PAC) in OSX Snow Leopard to point to a URL. I've also filled out the "Bypass proxy settings for these Hosts & Domains" box because I want to skip the proxy for certain sites. (I'm using pow which as far as I understand, works by creating a local mini dns server.)

If I use Apple's Web Proxy/Secure Web Proxy, it'll use my settings for bypassing the proxy, but apparently not for PAC. Any way to make this work?

Just ran into this as well and it doesn't seem to apply the "bypass" sites when using the auto proxy settings. I suppose that is the intended behavior, otherwise it wouldn't be very "automatic".

I just entered the proxy settings  manually and it worked for me.


Safari does not restore tabs / not Resuming It seems my Safari is not resuming correctly.

I open some tabs, then quit and when fire up Safari again it's opened like wasn't have any tabs opened before.

Is it some version bug, or i should look for something in Safari prefs?

Safari 5.1.7 (7534.57.2)
MOX 10.7.4 (Build 11E53)

EDIT:
In reaction to Michiel i've checked whether i have Resume turned on.

It's not a setting in Safari, but a general setting. Go to your System Preferences < General and make sure Restore windows when quitting and re-opening apps is checked on.

But you can install some 3th party apps too.

There is SafariRestore, which will basically do the same. But you have to disable the Restore windows when quitting and re-opening apps on the screenshot above!
You can also add the Sessions extension to Safari which will do the same.

I haven't any experience with neither of these apps, so please let me know if it works out!