How can I empty the trash with "rm -rf ~/.Trash/*" from Finder? Sometimes emptying the trash in Finder takes significantly longer than just running rm -rf ~/.Trash. Is there some way to remap the "right click on trash in dock + click to empty trash" button to a script?

It would be easier to use an alias like this:

alias et="(shopt -s nullglob; find ~/.Trash /Volumes/*/.Trashes/501 -mindepth 1 -delete)"

rm -rf ~/.Trash/* doesn't work if the list of filenames is longer than getconf ARG_MAX, and it doesn't include files that start with a period. Deleting files in trash folders often requires root permissions though.

tell app "finder" to empty and trash -e (see hasseg.org/trash) can be run silently or on the background, but they are just as slow as emptying the trash from the GUI, and they make Finder display error dialogs if for example files are in use.


How to take a screenshot on Mac while keeping the aspect ratio of the capture area I know I can open the Screenshot tool by pressing cmd + shift + 4.
I can drag the mouse around to specify the area I want to take a screenshot of, but I am wondering how I can keep the width and height ratio 1:1 when moving the mouse cursor.

In image editing software, the combination is usually to hold shift while dragging. On mac using the screenshot tool, this means to lock one of the axis depending on where you start your drag motion. It locks the width if you start dragging up or down, and locks the height if you start dragging left or right.

Pressing alt on the other hand makes the capture area grow in both direction.

holding either cmd or ctrl seems to do nothing.

I really hope there is a key combination to make the width and height scale the same, but I cannot figure out which key combination to use.

EDIT

My version of macOS is Mojave 10.14.5.

And just to clarify, I want to keep the selection area to grow and remain at 1:1 ratio while actually moving the cursor around, similar to this:

Alternatively resizing the area in equal proportion to each other, meaning the width and the height changes so that the original aspect ratio is intact. The resulting image itself does not have to be 1:1

As far as I know the exact thing you are trying to do is not natively possible in the current version of macOS Mojave. The current modifiers that do exist for the screenshot tool are as follows:

Holding shift  moves only one of the sides of the capture area.
Holding option scales up all sides of the capture area from the center.
Holding space  allows you to move the capture area around.

Alternatively you can use shiftcommand5    which will give you the onscreen capture controls with a few more options for resizing the capture area, however this doesn't include any options for locking the aspect ratio.


How to find a telephone number strored in contacts by searching for a substring on iPhone I'd like to search my iPhone contacts using a part of a telephone number as a key (search by substring). The integrated spotlight search, however, doesn't return any entries when searching for a full telephone number or for its part. The number formatting in search doesn't appear to make any difference.

Suppose there an entry in the Contacts.app (number is shown exactly as it apperars on the screen):

  John Smith

  mobile: +41 76 123 23 43

Neither of the following searches in spotlight returns "John Smith", as expected

  +41 76 123 23 43

  +41761232343

  2343

Is it possible to search for a number using spotlight or an alternative application?

Tested on iPhone 3GS with iOS 4.2.1

There is an app for that. :-)

One of the first apps I installed: Contact by Number.

Actually, there are a few others, and this one hasn't been updated since 2008, but it does what you want and has served me well.


Got app approved and "pending contract", but no buttons appear in Bank, Tax information The app status says that the "App approved, but one or more of your contracts is not yet in effect". So I went to the bank, tax information module: in here is a Request Contracts list, which shows one line for "Paid Apps" and one for "iAds". Next to it, my name stands as Legal Entity. There is a button "Request" on each line - but when I click it, it only shows my personal home address data in a simple form (but no bank accounts, no tax information etc.). Nothing else to click, nothing else to check, nothing else to view. Nothing. And there are no "Set Up" buttons either like shown in their video tutorial. No other buttons. I can do nothing here.

Is this just Apple doing administrative tasks on their side and I should just wait? Maybe it's because I'm fairly new as I registered this month (3 weeks ago) as an Apple developer...

Ok, this is ridiculous, but I accidentally found the solution: when clicking the "Request" button in the Taxes/Contracts module a form popped up displaying my address data. No agreement, contract texts, however.
Then I clicked "Save" to confirm this address data. Nothing happened, the form stayed.
Then I clicked "Save" again.
And again.
And again.
And again.
After the 5th time of clicking "Save" in a row - suddenly the agreement and contract window appeared!!!

Apple, you must be kidding! Really! I can reproduce this weird mechanic anytime. For anyone stumbling onto the same problem - make sure you DON'T click on "Cancel", or you will never see the requested agreement.


Can I save iCloud documents to the Documents folder as well as to iCloud? Basically, I want to be able to save a copy of my iCloud documents that I made in Pages (on both mac and iOS) to my documents folder, where all my pre-iCloud documents are still stored.
to note: I still want to be able to save a pages document to iCloud, but I would like to have a way of getting to them from the documents folder.
 I hope that makes sense :)
 Thanks!

You can save a document to as many places as you like by using "Save As". There is nothing special about iCloud on that level, it's just another "place" you can select in the Open/Save dialog.


Is there a reason to leave WebGL disabled in Safari? I know how to enable WebGL in Safari (8.0.7) for OS X (10.10.4) and I am able to visualize and interact with WebGL based content, however I'm concerned that it is disabled by default, given that the browser can actually support it.

Is there a reason (perhaps stability, or security) that WebGL is disabled by default in Safari?

If you're really scared, yes. WebGL allows web developers to code shaders which run unprotected in the GPU. This can cause many security issues because there aren't really any antiviruses to protect against GPU infections.

The risks aren't too great because there are organizations such as Google and Khronos working on making it much safer. These organizations are really quick in creating patches and fixes for issues and flaws.

I'm really not sure about how unsafe WebGL is in Safari, however, because it's based off of Webkit, I'm quite sure it's pretty similar to Chrome.


Can I know in what Mac macOS was installed for a given storage? I sometimes need to get some forensic information from Macs. One is this: I have a hard drive, SSD or flash storage that I removed from a mac and that has macOS installed, I then install it in another same mac or into an external enclosure so I can either start the mac from this storage or connect it to a USB port; can I get any information from that storage, such as from a log file, that would let me know in what mac the macOS was installed?, such as the serial number of the mac, or the MAC address (Physical address of the network card) or at least the Mac model of the Mac that was used to install the operating system?.

You could take a look at /private/var/log/install.log. If you search for "MAC address" you'll find output from configd detailing the MAC addresses of the network interfaces on the Mac at the time.

Note: If you're doing any serious type of forensics, it is bad practice to boot up from the storage you're examining. Instead take a copy of the disk and examine that from a separate computer (either by mounting it read-only, or by booting up on a duplicate of the copied image).


Using Tag how do I cut and parse file paths into tags I'm using Tag and Hazel and I'd like to recursively go through files on our server, obtain their file paths and filenames and parse the whole thing into tags to apply to the file.  Is there a shell script that can do this?  I can use Leap by Ironic Software to remove the trash tags system wide, but this gives me a real start into an automatic tagging system for all my files.

Basically I'm going to take a filename like

  /Volumes/media/Clientele/Stock/Purchased Sets/Vintage
  Bundle/vintage-bundle-7/offset/30_CIRCULAR_VECTOR_TEXTURES/C03.eps

Truncate the /Volumes/media/Clientele/Stock/ off the top, and the file extension .eps from the end, then cut the rest into separate tags:

Purchased Sets
Vintage Bundle
vintage
bundle
7
offset
30
CIRCULAR
VECTOR
TEXTURES
C03

...remove leading and trailing spaces, change to lowercase, then reapply those tags back to the file with tag.

Additionally, removing tags from the system that are just numbers would be helpful also.

Update: I need to do this specifically:

Hazel handles the recursion so for every file it finds:

Store the $working_folder and the $filepath
cut the $working_folder from the $filepath
cut the $result at the _-. <space> , characters and store into a list or array
loop through the list or array and sed 's/^[ \t]*//;s/[ \t]*$//' to remove leading and trailing whitespace (from http://sed.sourceforge.net/sed1line.txt)
convert the array to a comma separated string to feed into tag -s $comma_separated_tags $filepath

I just don't know how to put that into a bash script format.

run 'find' from a root directory searching for plain files (-type f?) and -exec a bash script on each file (or perhaps automator).

Looks like you'll need a bit of 'basename' and 'sed'.

Append to an empty string for each input path, and treat that as a list
for that file. I believe with 'tag' that you can pass a comma separated list, so you can append one (dealing with first having no comma) or post process using 'sed'. worst case loop over the list string and run 'tag'
each time.

'tag' might be smart enough to append tags it doesn't already have what's passed, otherwise the top of the script might want to bail if the file already contains tags.

Not trivial to write, but if you're not familiar with bash, tag and sed it
would be a good learning exercise.


How can I remove or disable Bonjour on OSX Lion, is it safe? I have the only one computer with OSX (wife hates OSX) so I have no other computer to bonjour with. I never needed neither network zero-configuration nor printer sharing or whatever it does. Windows it causes MDNSResponder problems.

How can I remove or disable Bonjour service?
Is it safe?

No you cannot remove Bonjour from MacOS X. There is no real good reason to do so anyway.

Also the "problem" you link to describes an issue with Bonjour installed on Windows 7, so it does not apply to you.


Can I control broken iPad from computer? My iPad's touch screen was broken about 1 year ago. I've dropped bottle on the screen and now the touch screen not working. I've sent it to service but the service hadn't repaired it, but the iPad is still working without touch.

Is it possible to control the iPad from my PC? if it's possible, I'd like to install an app called Duet Display to use my iPad as a second monitor.

My iPad Mini has the similar broken screen, why not go to the third party service to change a new screen, which works well.

You can transfer files between iPad and computer, however it can't work as the second monitor.


FTP Client with AppleScript support I'm looking for an FTP client with the following requirements.

File/Folder sync
Sftp/SSH tunnelling
Outstanding AppleScript support
Runs on Lion

The GUI interface is not overly important as it won't be the main interface used, however (and this is subjective) a better interface would be a bonus.

Have you tried Transmit? I think it'll do most of what you need.


What is 'currentHost' for, in defaults? There are many webpages given over to listing defaults commands in order to configure various parts of the OS. Some of them include the flag -currentHost.

The man page for the defaults command documents the option -currentHost, as "restricting preferences operations to the host that the user is currently logged in on."

Similarly, the -host flag allows a hostname to be specified for the preference.

What is the purpose of explicitly setting these flags? Under what circumstances would a preference affect some other host? (Or indeed, when would a user be logged in on a different host?)

In the case of networked accounts and networked home folders, a user can login to any Mac on for example a company network and see their own files and have their own preferences set.

This is the case where you can use the -host feature. Say that you want for example one wallpaper on your own desktop, but another when you login to the shared office Mac in the meeting room. Or any other type of setting than wall paper ofcourse.


Web clip widget in Notification Center With the old Dashboard it's possible to create a web clip widget from Safari.
As it seems like the Dashboard is getting phased out and the Notification Center is definitely a handy place to have widgets, is there any way to get this on macOS Sierra?

I can't seem to find an option for this in Safari and also cannot seem to find anything in the app store.
Does anyone know if there is a way to get web clip widgets in the Notification panel?

This app can do the same for the new Notifications Center:
https://apps.apple.com/cz/app/glimpse-2/id1524217845?l=cs


Boot Camp External Drive only able to connect to my computer I followed these instructions (Is it possible to use Boot Camp with Windows 10 from an external HDD?) to install Windows 10 to my external SSD (Samsung T3). I followed Alex Lambert's guide (the one with most upvotes & correct answer), and was able to install and boot Windows 10 successfully.

I ran to a problem today, as I was connecting the drive to another Mac I have until I noticed that my drive was not being seen from the boot menu (option key), although I could see both of my drives (my drives are partitioned in half: 250GB for Windows (NTFS) and 250GB for Data for both OSes, Windows and OS X (exFAT)) in OS X on the other computer.

Please help!

Thanks.

The general rule is that the 2015 and newer Macs can no longer boot operating systems using the BIOS method. This is the method used in the installation instructions you refer to. Also, generally 2011 and older Macs can not boot Windows from external drives. Therefore, the installation method, you refer to, generally only works for the 2012 through 2014 model year Mac computers.

But even if both computers qualify to BIOS boot Windows from external drives, you have the problem of the drivers. One of the steps, in the instruction you refer to, is to install the Boot Camp Support Software. This software installs the correct drives for your model Mac. If you then try to boot Windows using a different model Mac, the installed drivers will be wrong for the this Mac.


Application opens twice when file specified Typing open -a emacs opens one window.  Fine.
Typing open -a emacs foo.txt opens two windows, one as above, and one with foo.txt in it.

Why is that and what should I do to fix it?

You have to enclose the document you're trying to open in quotes

open -a emacs "/foo/bar/foobar.txt"


Display and change ratings in iTunes Mini Player Is there a way to display a song's ratings from the iTunes Mini Player? I know that I can right click in the display and view/change the ratings from there.

Can the ratings be added to the Mini Player view in some way? This would allow me to see the rating and check whether I have already rated that particular song.

The new iTunes 11 Mini Player has the option to view and change the ratings. In the Mini Player, hover over the player to show the controls instead of the title of the currently playing song. Then click the small arrow pointing to the right - not the forward control, but the one on the left of the player, next to the album artwork. It will open a menu, where the top entry is the current rating, allowing you to both view and change the rating. Exactly what I was looking for.


iPod Classic 5.5 160Gb Euro Volume Cap I've just bought an iPod Classic 5.5, and the volume is too low.
I have searched through google and, though i find a lot of people with the same problem, i can't seem to find a solution.

and no, it's not the 'volume limit' option in the settings.

Does anybody know how to hack this?
Thanks

Not loud enough for what application? I'd start by trying the iPod using different headphones because volume levels can vary greatly and, using earbuds with better isolation allow for lower listening levels. 20 years down the road your ears will thank you (by not ringing in an annoying way.)

If you can't find an acceptable pair of buds consider a portable headphone amplifier like the FiiO E5. It's available for $20 or so, and won't void your warranty.

I just realized that you specified a Euro iPod so I will also link to software that claims to remove the euro volume cap. I can't verify or guarantee it's function, I don't have ready access to Windows computer or a Euro-market iPod for testing. Do your own research and apply this patch at your own risk.


macOS High Sierra: Can't use Mouse and MacBook Trackpad at the same time Using a Mouse at the same time as being able to use the built-in Trackpad of a MacBook has worked in previous versions of macOS. But with macOS High Sierra, 10.13.0, they don't work in parallel anymore.

The issue exists both with all types of mice, including Bluetooth and USB, and third-party as well as Apple's original mice.

Is this a bug/issue or perhaps a new "feature", and can it be remedied?

I had the same problem, but find this solution that is working for me:

Go to System Preferences >> Accessibility >> Mouse and trackpad

Here, un-check the option "Ignore the integrated trackpad when a wireless trackpad or mouse is connected"... That's all!!!

I have my OS in Spanish, therefore I am not sure about the translation for the English version, but I really hope that this can help to solve your problem.

Best regards!!!


How can I open port 80 so a non-root process can bind to it? I want to run a web server on my Mac as a non-root process. Normally only root processes can bind to port 80 (or to any port below 1024).

Can I open port 80 specifically so that non-root processes can listen on it?

This is difficult to do by design, and unless you have root access to your machine none of the following will work as they require root to setup the changes.  Once changed, though, userspace programs will have access without having root.
There are two common ways to accomplish this, and which you choose will depend on why you're trying to work around the restriction:
Point port 80 to another port, such as 8080
By reconfiguring your machine to pass all port 80 traffic to port 8080, or any port of your choosing, then you can allow user space servers to receive root privilege ports in the area they are given access to.
The process is straightforward:

Step 1: View current firewall rules.
sudo ipfw show

Step 2: Add port forwarding rule (80 to 8080)
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in

If you want to remove your firewall rules run:
sudo ipfw flush

(source)
This is a temporary change, and will revert once you reboot, or flush as indicated int he last line.
You can make the change permanent, or you could add the command as a startup line prior to starting your server, which is probably safer from the standpoint of security.
Use Authbind
Authbind was designed specifically to allow one program access to lower level ports without giving it full root access.
There is a MacOSX port:
https://github.com/Castaglia/MacOSX-authbind
It may still be limited to IPv4 traffic, though, so you may have to do some additional investigation to find if it meets your needs


Quickly create screenshot, add border and cut & paste I often need to do screenshots of regions of the screen and paste them into mails, Jira, Confluence etc. On another OS, I use a screenshot tool which lets me select the region, add a nice border with one click, and put it into the clipboard with a second click.

I know how to take a screenshot, but I didn't find an onboard utility which puts a sleek border around it with a single (or very few) clicks, routinely.

(As an added bonus: ⇧ + ⌃ + ⌘ + 4 does not show a loupe while selecting the rectangle; if there is a tool or workflow which would include this in addition to the border, that would be great...).

What would be an easy way to achieve this?

I am technically inclined and not averse to scripting something with some tool... any solution based on that would be fine as well.

You should look at the App Store first: there are a number of screenshot apps available, some of which may have the features exactly as you want. Type 'screenshot' in the search field, and start poking around.

If you want something free and native, then it's easy enough to script this. You won't be able to get a loupe that way; Apple doesn't provide that option (though you can get exact pixel dimensions from the drag cursor).

Step 1: Copy this script into the script editor and save it as "Screenshot Padding.scpt" (or whatever, as long as it has the 'scpt' extension). It must be saved in '~/Library/Scripts/Folder Action Scripts/'.

on adding folder items to this_folder after receiving these_files
    repeat with this_file in these_files
        tell application "Image Events"
            set this_image to open this_file
            tell this_image
                set image_dims to dimensions
                -- increase dimensions by ten pixels
                repeat with a_dim in image_dims
                    set contents of a_dim to a_dim + 10
                end repeat
                -- set border with revised dimensions and black background
                pad to dimensions image_dims
                close saving yes
            end tell
        end tell
    end repeat
end adding folder items to

Step 2: Create a folder somewhere convenient called (say) Screenshot Folder

Step 3: Open Folder Actions Setup: that's a core service hidden way down deep in the file system, but you can find it through Spotlight. Enable Folder Action if they are disabled, and use the '+' on the lower left to add Screenshot Folder to the folders list. The app will prompt you to choose a script, and you should select the script you saved above. The end result should look something like this:

Step 4: If you are on OS 10.4 or later, open the Screenshot app (/Applications/Utilities/Screenshot.app), click the 'Options' menu on the utility window that appears, and set the save location to Screenshot Folder. Now whenever you take a screenshot, it will deposit it in that folder and automatically give it a border.

If you are on an earlier system, then you will have to do something more. There are three choices:

Manually or programmatically drag screenshots onto the Screenshot Folder so they are processed
Attach the folder action to the desktop folder, and add code so that it only processes items with titles that contain the word 'screenshot'
Script the unix 'screenshot' utility, which has the option to save screenshots in locations of your choice.

I'll provide details on those if you need them, otherwise I'll assume your OS is up to date.


AppleScript to quit Transmission App I need help fixing AppleScript for an app called "Transmission"

I am trying to write code to get it to quit once downloads are finished

Is this the proper code:

    -- Quit Transmission, if running
tell application "System Events"
    if ((count (every process whose name is "Transmission Download")) = 0) then
        tell application "Transmission"
            -- Quit Transmission
            quit
        end tell
    end if
end tell

Transmission does not support AppleScript specifically, so there is no way to use AppleScript to check if downloads are still active or not.

There's a concurrent discussion of this idea going on at
https://forum.keyboardmaestro.com/t/applescript-for-transmission-app/15789 but this is probably a better place for it, so I'll summarize my answer from there.

Install transmission-cli using brew: brew info transmission-cli
Enable the "Remote" feature of Transmission app:

You do not have to limit to 127.0.0.1 but unless you need to access from another computer, there's no harm in leaving that on.

Enable the feature to remove torrent from the Transmission list after seeding is done:

Now you can run this script periodically:

#!/usr/bin/env zsh -f

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    # the `pgrep` line says 'If Transmission is not running, exit immediately
    # just in case the script happens to be run when the app isn't even running
pgrep -qx Transmission || exit 0

`STATUS=$(transmission-remote --list | egrep -v '^(ID|Sum:) ')`

if [[ "$STATUS" == "" ]]
then
    osascript -e 'tell application "Transmission" to quit'
else
    echo "Transmission is still active:\n$STATUS"
fi

exit 0

If Transmission is running, but there are no items in the list, it will be quit.

There may be other ways of doing this, but I cannot think of any myself (other than just using Transmission's preference to run a script when a download is complete, and quitting the app then, but that will fail if there are multiple concurrent downloads active).


Shortcut to accept top spelling suggestion of the last word Say I'm typing into a document and I make a typo. I've got to the end of the misspelled word and it has a red line of dots under it. I right click and choose the top suggestion (which is nearly always right) and continue writing my document.

It there a way to do this without using the mouse to choose the suggestion?

EDIT:
I don't have auto correct spelling on as it's a massive pain. There are a lot of words that I don't want to have corrected. So I have it turned off. However there are regularly ones that I do want to correct and I want to be able to take a chance at correcting that last misspelled word.

I know that this cannot be done with the default OSX settings.

Edit:
If you want it to be automatically corrected, go to System preferences > Keyboard > Text and turn on "Correct spelling automatically".

Original answer:

Which OS X version are you on?
I'm on Mavericks and if I move the cursor so it touches the misspelled word, the suggestion pops up automatically and I can chose the correct one using the arrow keys.


how to activate internet tethering in iPhone 3G I am using an iPhone 3G and surfing internet on it. I want to connect this phone with my laptop so as to surf internet on it, but my iPhone carrier does not support the internet tethering option. It is invisible. Is there any way to enable that option.

it would involve jailbreaking your phone and using an app like MyWi


How to reset iOS Maps data Whenever I use maps to get directions to any destination, Maps notes that I have to go over a toll road (denoted with a small € symbol). Except: I live in the Netherlands and we have no toll roads.
Absolutely no road I take should be a toll road, but Maps thinks they are. It even helps by saying "Toll required".

Is there a way to reset my Maps data?

I've had this problem on an iOS 9 iPhone 4S, and I've restored a backup from that device to an iOS 10 iPhone 6s, both show the same toll roads. Every highway or fast lane route is denoted as a toll road.

Possibly related, while navigating, iOS will commonly add extra names to the proncuation.
So for instance "Karel de Groote laan" is pronounced "Karel de-yipiyajeej-laan". Whenever it mispronounces a street name, it always add "yipiyajeej"

Screenshot of route on iOS:

Screenshot of route on macOS:

I don't think that's a problem with your iOS as much as it is Apple's map data, unless of course this issue doesn't happen with other iDevices. The best way to correct an issue with Apple's map data however, is to click on the information button in the maps app, then click on "Report an Issue" and you can explain the issue there so Apple can fix it in future iOS releases.


How to edit binary InfoPlist.strings in Mountain Lion (for Finder to display folders before files)? The article Force your Mac to sort folders on top of files (windows style), lets the Finder change its sorting order to first show folders and next all files.

This trick doesn't seem to work with Mountain Lion, InfoPlist.strings seems to be a binary file.

Do you know how to edit InfoPlist.strings in Mountain Lion?

The InfoPlist.strings file you mention is a binary formatted property list. You can convert and edit these files with developer tools such as plutil.

The following article walks through the steps required, Show folders last in Finder.


Replace existing duplicate files on APFS with clones Is there a way to use the copy-on-write cloning feature of APFS to reclaim space from existing duplicate files?

When you copy a file on APFS, it doesn't actual duplicate the file blocks, instead it just clones the metadata. That prevents it from using any more space until you actually make an edit to the duplicate file. It seems like there should be some tool to find existing duplicates and replace them with clones, reclaiming the space used to store the duplicate.

Related questions on Apple Communities and the MacRumors Forums don't have anything.

As of June 2020, Jdupes can do this.
For example, this will find all duplicates in your Applications folder:
jdupes --recurse --dedupe /Applications/

WARNING: Versions before 1.19.0 will overwrite metadata (date, owner, permission), more recent versions preserve all metadata when using jdupes --dedupe on APFS filesystems.


How to remove the last character of a string if I know what the character is in AppleScript? So basically I was messing around with AppleScript and created a variable based on the app's path and it always has a forward slash at the end that I don't want. See my other question for more info. Basically thePath is set to /Applications/MyEpicApp.app/ with that extra / I don't want.What's the "opposite" of "sometext" & someVariable in AppleScript?Many thanks in advance, I appreaciate every piece of information.

To have a portion of the string returned, the format would be:

set StringVariable2 to (characters n through n of StringVariable1) as string

n is the character number of the string starting at 1
as string is important or otherwise you get a list of single characters returned

Just make sure that whenever you parse any text, list or other item inside AppleScript to have text item delimiters at their default value (an empty list {}) unless you want to include those characters in the result as well.

In your example of removing the last character, it would be:

set StringVariable2 to (characters 1 through ((length of StringVariable1) - 1) of StringVariable1) as string


Apple and iCloud encryption keys A friend of mine was arguing that Apple’s staunch pro-privacy and pro-security branding is disingenuous since they hold iCloud encryption keys.

To what extent is this true or an oversimplification?

iCloud is an umbrella term that encompasses a number of Apple services. How Apple handles encryption for various aspects of its services is detailed here: https://www.apple.com/business/docs/iOS_Security_Guide.pdf

Most relevant is the section on Internet Services, starting on p. 49. In general, keys are tied to your device(s) which are protected by your passcode (that only you know), and hopefully also with two-factor authentication.

If enabled, iCloud "Keychain items are transferred from device to device, traveling through Apple servers, but are encrypted in such a way that Apple and other devices can’t read their contents." Keychain Recovery is optional, and in the absence of two-factor, is protected by an iCloud Security Code that only you know.

iMessage is end-to-end encrypted using device-based public-private key pairs: "Apple can’t decrypt the data." Same for FaceTime.


Disk ejected but still show up in Disk Utility? I have this external (USB) drive that can't seem to be disconnected correctly.  Whenever I eject the drive, it won't disappear from Disk Utility.  Afterwards when the drive gets re-connected again, it cannot be mounted. At this stage, I would need to reboot the Mac to get the drive to mount again.

Ejecting from the Terminal via diskutil eject /dev/disk2 returns a Disk /dev/disk2 ejected message and unmounts the disk.  However the disk still shows up both in Disk Utility and diskutil list.

Furthermore even after the USB cable is disconnected, the disk still shows in both Disk Utility lists — GUI and command line.

How can I solve this?

OS: macOS Mojave 10.14.1 (18B75)

Weird as it is, this seems to be the solution:

Remove the disk from Time Machine's list of backup destination drives.
Remove file tmbootpicker.efi from the drive's root directory.
Remove file /var/db/volinfo.database
After restarting and able to mount the drive again, re-add the drive to Time Machine.

Ejecting the drive seems to work now — it finally disappears from Disk Utility's list after the USB cable is unplugged.


What's the envelope inside mac's box? When I opened the box of my new MacBook Pro (damn it smelled so uniquely!!), below the laptop there is a black case, where the charger and another long (looped) cable (I don't know what this is suppose to do..) lie.

There is also a black packet, with the sign:

  Designed by Apple in California

Inside that, 2 booklets lie with Instructions, etc. and a black soft envelope, which is inside transparent latex(?).

What is that soft envelope for?

The black piece of cloth is not an envelope, but a nicely folded display polishing cloth.
Apple mentions it in the manual:

Cleaning the MacBook Pro screen
To clean the MacBook Pro screen, first shut down
your MacBook Pro and unplug the power adapter. Then dampen the included cleaning
cloth with just water and wipe the screen. Do not spray liquid directly on the screen.

You can confirm the looks on this review. And the long cable is just an extender which you can plug into your charger.


How do I stop my external hard drive from using all my RAM? I'm running OSX Mavericks, and have an external 500Gb HD connected via firewire.

I have 24GB's of RAM, and fairly often my RAM usage will spike to 23.95 GBs in use and literally leave me with only 50 MB of RAM, or less, usable.

I know it's my external drive because when I eject it the memory usage goes back to normal, which is about 5GB used.

How do I stop the drive from using so much memory?

The external drive by itself won't use RAM. Check the processes that are running in Activity Monitor — you can sort by RAM usage.


iPhone 3GS how to enable or subscribe for free Find My iPhone the free Find My iPhone seems to require an iPhone 4 for setup, even though it will work on an iPhone 3GS. How can I set up the service without an iPhone 4?

The service is only free to users of the iPhone 4, and if I recall correctly users of the iPad.

  It’s a feature that’s part of MobileMe, but now it’s also free on every iPhone 4 with iOS 4.2.*

From the Apple Website, bold mine

To use this functionality on any other device requires a full MobileMe subscription. It is automatically active once you have the full subscription, along with a nice array of other nice features.

The Find My iPhone feature is available when you create a MobileMe account on your device, with a toggle option to switch it on or off.

I have been using the paid subscription for almost 4 years and have been extremely happy with it due to the amount of different devices I own.


Ecler NUO 2 mixer connected to MacBook Pro? I have maybe a silly question here. I have "Ecler NUO 2" mixer (and obviously turntables with it as well) and would like to ask you if it is anyhow possible to connect it to my "Mac" so as I would not need turntables (I know that it is possible to do so with "Serato Scratch Live" but it is not very practical)?

  Ecler NUO 2 Features

  Compact DJ Mixer. 2+1 channels, 6 inputs, isolator switches,
  adjustable VCA crossfader, balanced XLR output.

  -3 channels, 8 inputs (2 PHONO, 2 L-LINE, 3 H-LINE, 1 MIC)
  -2 independent outs (OUT 1, OUT 2, REC)
  -VCA Crossfader (ECLER PRO Fader, 4,000,000 operations)
  -3 band EQ (LO-MID-HI)
  -ISOLATOR switches
  -Adjustable curve x-fader
  -Adjustable curve upfaders
  -PFL monitoring system
  -VU meter monitoring
  -Effects loop with PRE/POST fader functions
  -Internal oversized switching power supply ±18V

From: http://www.djbooth.net/index/dj-equipment/review/ecler-nuo-2/

Thank you in advance.

The short answer: not without additional hardware.

To control Serato Scratch Live, you have to feed your computer some specially encoded signals from some special LPs that they produce. You need to buy Scratch Live, two or more of their special LPs (one for each deck) and then a special box like the Rane SL 2 for Scratch Live that sits between your mixer's mains output and your computer. This box converts the analog signal from the mixer (which, with the special Scratch Live LPs is not something you should try to listen to -- it's not human-friendly and can damage your speakers and hearing) in to a digital signal that Scratch Live uses to match the playback of audio on the computer, to the rotation of the LPs on your decks.


Bluetooth connects, but does not play sound I've got a Toyota Sienna that has a bluetooth connection for phone audio.  I purchased the GTA Car Kit to connect to the stereo.  This works great with Android devices.  However, I've recently switched to an iPhone 6.  While it will show that it is connected to GTA Car Kit, it almost never actually plays audio over it.  How can I resolve this?  It does work fine for the phone audio, and any other bluetooth device I connect it to.

I have the same problem.  I have a GTA Pure Bluetooth system in my 2007 Honda Civic. I have an iPhone 5S that connects automatically to play music about 5-10% of the time. To work around, I have to go into iPhone Settings, Bluetooth, select the ! symbol next to GTA Car Kit, Disconnect, back up one level and reselect GTA Car kit and it then connects 100% of the time. Kind of a pain.

It is almost like there are two levels of Bluetooth connectivity.  My phone connects perfectly 100% of the time but my music does not connect much at all.  In iPhones, look for the tiny headphone icon in the top-right corner of the screen when you have successfully connected to play music.


Screen backlight does not turn on during bootup, but turns on when accessing recovery partition I have a late-2011 15" MacBook Pro running Mavericks.  I normally don't reboot my computer and can leave it logged in for days on end.  I decided to reboot my computer and when it was booting, the screen backlight would not turn on, although I could faintly see the login screen where I could type my password.

I tried resetting the SMC, but that didn't do anything.

I also tried resetting the PRAM, but I'm guessing because I have a firmware password and the computer is FileVault-encrypted, instead of actually resetting the PRAM, I have the prompt to type in my firmware password (also really faint since the backlight isn't on).  If I type in my password, it boots into the recovery partition and the display backlight finally turns on. However upon reboot, the backlight will stop working again.

I tried using Disk Utility to check for any permissions/disk errors but didn't find any issues.

I haven't tried logging in with the faint login screen, only because I can't find my mouse cursor to select my account to login.  I've tried rebooting with both the power cable connected and disconnected.

How can I get my screen backlight to turn back on again?

I had the same problem. The dimmed screen happened during the reboot after turning on file vault. I was able to solve the problem by going into a darkroom. This allowed me to see the cursor and to log in to an account. Once I logged in the back light came on and everything was fine.

I had first tried to solve the problem by zapping the pram. This had no effect.


Unable to resolve hostnames inside macOS chroot jail I just created a chroot jail with inetutils, coreutils and bash. Most of the things seem to work. I can ping ip addresses and hosts that are inside /etc/hosts, however, I can't ping hosts that are not in /etc/hosts. I copied both resolv.conf and protocols to the chroot jail, but I still cannot ping hostnames. Which file am I supposed to put inside the jail so I can resolve hostnames? I have also read some stuff about scutil, but I want to avoid copying more binaries as much as possible.

$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=120 time=22.322 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=26.672 ms

$ ping google.com   # Host not in /etc/hosts
ping: unknown host

$ ping example.com  # Host in /etc/hosts
PING example.com (93.184.216.34): 56 data bytes
64 bytes from 93.184.216.34: icmp_seq=0 ttl=50 time=160.226 ms
64 bytes from 93.184.216.34: icmp_seq=1 ttl=50 time=147.602 ms

I was able to get it to work by making sure the /etc/resolver.conf existed in the chroot and then symlinking /var/run/mDNSResponder into the chroot.

$ sudo chroot -u user "/Users/user/Source/macos-mkjail/test_jail" /bin/bash
bash-4.4$ ping www.google.com
PING www.google.com (216.58.194.164): 56 data bytes
64 bytes from 216.58.194.164: icmp_seq=0 ttl=53 time=10326.366 ms
64 bytes from 216.58.194.164: icmp_seq=1 ttl=53 time=44.899 ms
64 bytes from 216.58.194.164: icmp_seq=2 ttl=53 time=39.388 ms
^C--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 39.388/3470.218/10326.366/4848.030 ms
bash-4.4$exit
$


Locating an app by its bundle identifier from the command line I am looking for a way to find an app's location on the system from the command line using its bundle identifier. I can open it like this:

open -b 'com.zerotier.ZeroTierOne'

... where com.zerotier.ZeroTierOne is my bundle ID, but what I want to do is locate where the app is actually installed. I want a command that will return (for example):

/Applications/ZeroTier One.app

in response to a query by identifier 'com.zerotier.ZeroTierOne'.

The "-R" option to open will reveal in finder but I want this to be completely non-interactive and done via a shell script.

The magic command is:

mdfind kMDItemCFBundleIdentifier = "com.zerotier.ZeroTierOne"

You can determine this by working backwards from mdls foo | grep kMDItemCF

So if you didn't know iPhoto's CF Bundle Identifier:

Mac:~ me$ mdls /Applications/iPhoto.app | grep kMDItemCF
kMDItemCFBundleIdentifier           = "com.apple.iPhoto"


Open-source password manager for OS X I am looking for a password manager that works on iOS and OS X (and syncs passwords between those) that is open-source.

Currently, I use mSecure on my iPhone, but I would like to switch to an open-source option.

Most notably KeePassX (port of KeePass) is released under the terms of the GNU General Public License.

It doesn't have a direct port to iOS, but the database format is standard across KeePass-family and you can use another client for iOS, like MiniKeePass (also GNU General Public License).


How to install plug-in in Gimp on OS X? I've got the Gimp for Mac OS X installed and working in my installation of Mac OS X 10.6.4. A very important tool I need is the David's Batch Processor plugin ( http://members.ozemail.com.au/~hodsond/dbp.html ) for batch auto-adjusting contrast/brightness/colour for my images.

There are no Mac specific instructions provided on the software's website saying how to install the python-based plugin. Can anyone please teach me how to install plugins for Gimp in Mac OS X?

You'll find the appropriate folders at /Users/username/Library/Application Support/Gimp/. There go in the scripts folder
and the presets go in the gimpressionist folder

I found these locations by looking at the GIMP preferences, and clicking on Scripts. The locations cited above were listed there.


Moving Folders using iCloud Can I move ENTIRE folders (Pages documents, Numbers spreadsheets, photos) to iCloud, or do I have to move each separately...documents to Pages app, spreadsheets to Numbers app and photos to iPhoto?  I have 10.7.5 OS...can I move entire Folder on new Mountain Lion OS?  Thanks.

This isn't the "supported" procedure, but there's a good chance it will work to move a large number of documents to iCloud.

You still have to move documents kind by kind, but not within particular programs.

In the Finder, select the documents (not a folder; the Pages (for instance) that are in the folder) that you want moved to iCloud.

Select Copy from the Edit menu.

Press ⌘⇧G to Go to Folder.

Type ~/Library/Mobile Documents/

If the folder com~apple~Pages exists, double-click it; if not, create it then double-click it.

Select Paste from the Edit menu.

Repeat for the different kinds of files you want to open in their respective apps via iCloud.


Folder Action to Convert Image Format after AirDrop? I often use AirDrop to move photos from my iPhone to my Mac, and I'd like to automatically convert any HEIC photos to JPEG. I created this folder action in Automator, and it works when a photo is dragged into the Downloads folder but not when it has arrived via AirDrop. Is there a trick to getting folder actions to work with AirDropped files?

This works for me, though the conversion is from jpeg as I have an oldish iPhone :(
I have added lots of notifications to confirm each step - simple debugging!

The pause is a hint I got sometime ago for AirDrop.  Your Get Selected Finder Items is either unneeded or wrong (not sure which).


Can't get 5120 x 1440 I bought a LG 49WL95C-W 49"  5120 x 1440, but I can't run it at this resolution with my MacBook Pro (15-inch, 2018) (it's work fine with my iMac 5K.

It's seems that max I can get is 3840 x 1080 (although the screen menu/information display a current resolution of 5120x1440 which is wrong according to MacOs)

I tried HDMI (2.1) and USB-C (same cable than the iMac 5K)
I install a third party software too, but I have the same 3840 x 1080 limit.

According to the computer specs, I should be able to run two monitor at this resolution.

Also, weirdly on system preference, I have two monitor listed (the same one)

What do I do wrong?

I still don't understand why the system detected two screen, but I noticed "miror display" was enable.
Disabled bring the monitor list to one and at full resolution


iPhone not showing any option of sync I have a iPhone 5 with iOS 6.1.3, I usually sync it with iTunes running on OS X 10.8.3 however for the last few days there is no option of sync , only the summary tab is shown and nothing else, please refer the screenshot, how can this behavior be repaired to what it used to be.

Your iPhone is in Recovery Mode.

Unplug it from your Mac/PC and exit the recovery mode.

Exit the recovery mode via:

  Hold down the home and power button for about 15 seconds, this shuts
  off the iPhone
  Press the power button to boot the iPhone

Now it should be rebooting. Connect it again with you Mac/PC and fire up iTunes. Everything should work as it meant to be.


iOS Spotlight search for, then edit a contact I can't for the life of me understand how, in iOS 10.3.1, I do what I've done many times before iOS 9/10, namely:

Spotlight search for a contact
Then edit that contact

This is what I see:

Best search hit

Cancel, Notes, Share Contact

I.e. no way to edit nor to view it in the contacts app. I don't have 3D Touch.

From your second screenshot, 3D Touch on the profile photo, then tap on the name at the top of the popup to open the contact in Contacts.app.

Without 3D Touch, this is not possible. To search contacts, you can use the Search bar at the top of the Contacts or Phone apps.


Launchd won't execute a bindfs command I want to use launchd to run bindfs commands at login, as root. I have a plist in /Library/LaunchAgents/loginsftpjailmount.plist (with chmod 600) and a shell script in /usr/local/bin/loginsftpjailmount.sh.

I should start by saying it works - if I change the bash script to run

mkdir /Users/Me/Desktop/itworks

then it successfully creates the directory "itworks", both on login and by running

sudo launchctl load /Library/launchAgents/loginsftpjailmount.plist

And the folder created is owned by root and I have to type in my password to delete it. When I manually run the bash script from the terminal using sudo, the bindfs command works.

So to summarize - I know the script works. I know the plist works. I know they work together with launchd. But the bindfs command doesn't run! I checked the system log with

sudo grep com.user /var/log/system.log

and it says it exits with error 127 (com.user is part of the label for my plist). I searched online and none of the solutions for error 127 work for me. For reference, two plists I have used are:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.user.loginitem</string>
<key>ProgramArguments</key>
<array>
    <string>bash</string>
    <string>-c</string>
    <string>bash -c "bindfs /Volumes/BRIGHTRED/ServedDocuments /sftpjail/Documents"</string>
</array>
<key>RunAtLoad</key>
<true/>

and also

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.user.loginitem</string>
        <key>Program</key>
        <string>/usr/local/bin/loginsftpjailmount.sh</string>
        <key>RunAtLoad</key>
        <true/>
    </dict>
</plist>

The bindfs process has to be started with root privileges. Launching it as agent would prevent this.

So sudo launchctl unload ... and sudo launchctl remove ... (the subcommand remove removes the agent from the launchd database - the file won't get deleted!) the plist, move the plist to /Library/LaunchDaemons/ and reload it with sudo launchctl load ....

A properly named and composed org.user.bindfs.sftpjail.plist would look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.user.bindfs.sftpjail</string>
        <key>ProgramArguments</key>
        <array>
                <string>/opt/local/bin/bindfs</string>
                <string>/Volumes/BRIGHTRED/ServedDocuments</string>
                <string>/sftpjail/Documents</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>StandardErrorPath</key>
        <string>/tmp/org.user.bindfs.sftpjail.err</string>
        <key>StandardOutPath</key>
        <string>/tmp/org.user.bindfs.sftpjail.out</string>
        <key>WatchPaths</key>
        <array>
                <string>/Volumes/BRIGHTRED</string>
        </array>
</dict>
</plist>

The WatchPath key is often required (it was in my case) to avoid timing problems. You may remove the keys StandardErrorPath/StandardOutPath and its strings after ensuring that everything works properly.


How do you turn off the iOS 11 feature of AUTOMATICALLY sending confetti? When you type “congratulations” or “congrats”, iMessage (iOS 11 is the first time I noticed this) automatically sends that confetti animation whether you want it or not. Same goes with the balloon animation when you type “happy birthday”. (Don’t know if any other specific phrases but there may be more)

How do you turn off these auto animations? I’m not talking about the manual feature of sending animations. I know about that. This is done automatically without prompting when you type the magic words.

You can’t turn it off universally for sending and receiving, but you can block it along with other motion on your device.

Open Settings app > General > Accessibility - turn on "Reduce Motion" and turn off "Auto-Play Message Effects"

If the receiver has a device running iOS 9 for example he/she won’t be able to see it and won’t receive any readable text that a special effect was used.


finder won't launch after Mojave upgrade ( high system cpu ) it appears my finder will not launch after I upgraded to Mojave. It is always unresponsive.  My system cpu load is constantly around 75% also.

I am unable to relaunch it even if I do a force quit from application monitor. Any ideas?

Also chrome will not render a webpage. Firefox and Safari work fine.

It turns out was Google Drive File Stream syncing issue. I removed that and cpu is back to normal... https://discussions.apple.com/thread/8555291 no eta from Google though on when will be fixed?

a temporary work around by forcing Finder to reload the extensions needed for the context menu by opening terminal and issuing a

killall Finder


monitor displays shows no picture in display settings and goes black randomly This is my first question so please pardon my mistakes.
I use a Mid 2017 MacBook Pro with a HP V270 Monitor. The monitor connects fine using a USB-C to HDMI cable but the issue I'm having currently is that my monitor randomly goes off and then comes back on after few seconds. IT seems to be a connection issue but I'm not sure how to verify that but an odd that I noticed in the settings is that there isn't a picture on the monitor  but my MacBook screen displays a picture. Please do not confuse the picture I'm referring to with the on the hardware screen. Hardware screen shows a picture but goes off randomly. The screen in the picture above remains black no matter how I tweaked the settings beside it. Also I'm currently running the Catalina beta but I do not think the issue is from the beta because I've seen other users experience same issues.

MacBook Pro Mid 2017. 4 USB-C Ports and I've connected with both my lid open and closed(using an app called InsomniaX). I'm also using a direct cable from my USB-C port to HDMI.

Assuming your cable is connected securely at both ends, the first thing to try is connecting the HP V270 display to a different USB-C port to see what difference, if any, this makes.

If this has no effect then I'd reset your NVRAM.

Resetting the NVRAM

Your Mac uses Non-Volatile Random-Access Memory (NVRAM). To reset the NVRAM on your MacBook Pro model follow these steps:

Shut down your machine. Yes, a full shut down, so go to Apple > Shut Down so you’re not just logging out.
Press the power button (in your case this is the Touch ID button) and then immediately press the commandoptionpr keys.
Keep these keys pressed down for at least 20 seconds!
Let go of the keys and let your Mac reboot normally.

Note: When you log back in you may need to readjust some of your system preferences (e.g. speaker volume, screen resolution, startup disk selection, time zone information, etc).

If you still have problems after doing this, let me know.

Since resetting the NVRAM and swapping the ports has had no real impact, I'd strongly recommend testing your display with another computer and/or trying a different cable.

In terms of the MacBook Pro itself, you could use Apple Diagnostics to test its hardware for some peace of mind. You can do this as follows:

Fully shut down your MBP
Restart your MBP
Immediately press the D key and keep it down until you see the Diagnostics screen appear
Wait for Diagnostics to finish (this typically only takes a few minutes)
Once complete, one of two things will appear on the screen:

a No issues found message
a brief description of any errors found plus further instructions

If the diagnostics test does find errors, take a note of what they are

Note: If pressing and holding the D key at Step 3 doesn't work, start again at Step 1 and, at Step 3 press and hold both the OptionD keys instead. This will try and run diagnostics from the internet instead, so you will need to allow more time for it to complete.


OS X partially freezes I have a 27-inch, late 2012 iMac. After I upgraded to El Capitan the user interface (UI) partially freezes at apparently random moments. Parts of the UI continue to work (e.g., I can close applications by clicking on the red cross button). But, as soon as I try to use the menu bar or the dock, the system starts to get worse and more unresponsive.

None of the shortcuts to kill applications or restart the system work. So, in the end, even if parts of the system are still functioning, nothing can be done and I need to do a hard reboot.

Does anyone have an idea about the potential source of this issue? I had a look at the logging console, but as far as I can tell there is nothing apparently connected to the freeze.

UPDATE

I have run the Apple Hardware Test (by pressing D while booting the computer). I chose to run the extended test. After more than one hour of tests, everything seemed to be okay. I also ran the HD first aid test and there were no errors detected either.

Last month I experienced something similar. I launched the Disk Utilities to test the hard drive, and the "S.M.A.R.T. state" warned me about critical failures. My guess: the system hanged up when it tried to reach files written on bad parts of the hard drive. I changed the hard drive.


Block opening of DMG files by non-admin user I set up Parental Control for a user but said user is still able to download and install additional software from DMG files (among other they downloaded TOR browser which bypasses parental control)..

I would block downloading in parental controls entirely however this would be a problem as certain downloaded files from the web are needed by the non-admin user.

-> Is there a solution to block the opening/downloading of DMG files by the non-admin user (maybe installers more broadly)?

Here is a solution that may work for you.

Paste this following AppleScript code into a new ScriptEditor.app document then save it as a .scpt file "AutoEjectFolderAction.scpt" to your /Users/your user name/Library/Workflows/Applications/Folder Actions/ ...folder

on adding folder items to theFolder after receiving theNewItems
    -- Add Names of Any USB, Flash Drive, or Disk Image to allow to be mounted
    set allowedDisks to {"Time Machine Backups", "Parallels Desktop 13.2.0 (43213)"} -- examples to be allowed
    tell application "Finder"
        set ejectableDisks to disks whose ejectable is true and local volume is true and name is not in allowedDisks
        eject ejectableDisks
    end tell
end adding folder items to

That new .scpt file will now be used as a folder action that we will attach to the folder... /Volumes

Now every time A new disk image gets mounted, it will trigger the folder action which will run the script that will automatically eject it.


Unable to update safari due to "Spotlight is using the SafariQuickLookPreview extension" Error message:

  Spotlight is using the SafariQuickLookPreview extension, which must be
  closed before the software can be installed.

I have already closed safari.

What do I need to do to update safari?

This seems to work for me.

Go to Activity and search for 'safari':

Pick the entry 'SafariQuickLookPreview (Spotlight)' entry and kill it.

Then use the 'Try Again' button in the 'Software Update' pane in System Preferences.


MBPR / OSX Lion system volume doesn't affect output I've got a 2013 MBP-Retina with Cinema and Thunderbolt Displays (1x each).  It used to be that the default audio output was one of the integrated audio devices in a display, and I could control the volume from the keyboard (or the slider) as usual.  However, somehow the system has gotten into a state whereby the audio indicators change with the keyboard, but the actual output volume does not.  I can change the output volume for a specific device from system settings, but the system volume controls seem not to affect it.

What's going on, and how do I get back to normal?

I had the same problem and was able to fix it by running this from the command line, which unloads the audio kernel:

sudo kextunload /System/Library/Extensions/AppleHDA.kext

When I load the kernel back up, as indicated in the link below, the problem comes back.

Also see "Restarting sound service?".


Templates folder on mac equivalent to in Ubuntu I recently switched from Ubuntu to Mac, but miss the templates folder. I've googled and surprisingly can't find anyone else asking about this. Is there a way to create an equivalent on Mac?

If you're not familiar with Ubuntu, this isn't the same as just creating a folder, I require being able to right-click in any finder/desktop location and have a Templates selection (like New Folder) drop-down, which offers to place any of your pre-configured templates in that location.

This is useful, for example, for creating readme.md files.

macOS does not have that exact functionality however you can create a folder with various source documents of the type and kind you need.

If you Get Info on any document in macOS there should be a checkbox under the "General" (first) heading that is called Stationary Pad. Checking that will tell macOS to open a copy of that document, by default (usually) named "____ copy" in that type of document's default application.

So a .docx file will open in MS Word. So not the same as Ubuntu but does that give you similar functionality?


Not able to store Wi-Fi network passwords in keychain A few years back I gave my laptop in to fix a charging problem, and though that was resolved pretty easily, when I got it back I seemed to be having problems with logging on to Wi-Fi. What happens is, the Wi-Fi network that was already saved before the reparation does not connect automatically, I have to click on the Wi-Fi icon and choose the network to connect, and it will connect, but it will say a keychain could not be found to store -network. So that's ok, but the really annoying thing is that with any new network I have to manually select it and then type in the password every time, and it will connect but still give me the same message.

I am using a mid 2012 MacBook Pro running OS X Yosemite 10.10.5.

Keychain First Aid may solve your problem. It has been removed in later Mac OS versions (starting with 10.11 El Capitan), but it should still be available for 10.10 Yosemite.

Launch the Keychain Access app, located in Applications > Utilities
From the Keychain app, go to the Keychain Access menu in the top-left and then select Keychain First Aid.
From the Keychain First Aid window, select Repair and click Start


Drag email from mail.app to create a shortcut, not eml The title is self-explainatory.
Once I succeeded, and there was .inetloc file including XML

<?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>URL</key>
    <string>message:%3CCAODRpat8f6Ca07rDHa+-uq23Cp1nk5E9MEReXbX8YaXfMcu8BA@mail.gmail.com%3E</string>
</dict>
</plist>

But now I can't recall how I did that. When you drag-and-drop an email from a list in Mail.App there is an .eml file created, which is totally what I don't want.

Found one way of doing this at Mac OS X Hints here.

Open the message in a new window (select it and press cmd-o or return).
Drag the proxy icon to the location where you would like the .inetloc file.  The proxy icon is the envelope icon in the window's title bar, to the left of the message title.


How do I use OS X Print/Save as Postscript to produce a custom sized page? I am trying to produce a press-quality CMYK PDF file from a Pages or MS Word document in OS X.  The canned Print/PDF options produce insufficient quality in the images, and do not allow conversion to CMYK.  I was following a recommendation to use Save as Postscript, and then Adobe Distiller (which I have on a separate, Windows machine) to get the right results.  It all works great EXCEPT that I need a custom page size.

When I use PDF/Save as Postscript, it produces a US Letter size document, irrespective of the Page Size settings in Pages or in MS Word.  In this case, I need to produce an 8.75 x 11.5" PDF (required by the publisher to support their workflow.

Any ideas?

After noodling on this question and worrying that my google-fu had atrophied, I sorted out something that works.

Edit the generic PPD file provided in Mac OS X to add the desired page size.  I found the generic PPD file here:
  /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Resources/Generic.ppd

Follow the directions here https://stackoverflow.com/questions/1028891/whats-the-easiest-way-to-add-custom-page-sizes-to-a-ppd to figure out what needs to be added.  (Thanks, SO).  In my case, the lines added were (they are non-contiguous in the file, just look to see where they go):

*PageSize LetterEx/US Letter Expanded: "2 dict dup /PageSize [630 810] put dup /ImagingBBox null put setpagedevice"
*ImageableArea LetterEx/US LetterExpanded: "18 18 612 792 "
*PageRegion LetterEx/US Letter Expanded: "2 dict dup /PageSize [630 810] put dup /ImagingBBox null put setpagedevice"
*PaperDimension LetterEx/US Letter Expanded: "630 810 "

Edit the generic PPD file to set the new settings as the Default in each case.  This seemed to be necessary in make case to get the desired PS output.  Note these are also non-contiguous in the file, but just replace them where each *Default occurs.

*DefaultPageSize: LetterEx
*DefaultImageableArea: LetterEx
*DefaultPageRegion: LetterEx
*DefaultPaperDimension: LetterEx

Reboot the system.  For whatever reason, my attempts to restart the printing system/CUPS/whatever didn't take.

Install a new printer, type IP, IP address = localhost or 127.0.0.1, and specify the Generic Postscript Printer type.

From your application (in my case, Word or Pages) do Print, select the 127.0.0.1 printer, select the Letter Expanded page size for your target document page size, and then do PDF/Save as Postscript.  It appears that the Postscript conversion engine silently makes use of the current printer profile when producing the PS, rather than the application's page size settings.


OSX Lion 10.7.1 - Safari, Textedit or Stickies in separate Mission Control Desktops I have various Safari windows, TextEdit docs, and Stickies notes that relate to different things (e.g. work, home). I want to split these across two Mission Control desktops depending on what they are for. On Mission Control, I can't seem to drag these separate windows or even whole apps (collection of windows via the icon) into a desktop - the drag action works, the plus square appears, but the item then just springs back. Same for hovering it at edge of screen.

Update: these apps had "Assign to All" set - changing to "Assign to None" via Dock did the trick :-)

If the item you're trying to move springs back then it's most likely already on the space / desktop you're trying to move it to.

You can also try moving something to another desktop in ways other than Mission Control:

Let's say you already setup two spaces, and you want something from
space one onto space two; Just drag the window of whatever it is to
the edge of the screen and hold it there until it moves over to the
other space.
Another way you can do this is to simply open whatever application or
file you want in that particular space.

Apps are automatically assigned to the Desktop / Space where they are launched for the very first time. You change this by Control clicking the apps icon in the
   dock, and assign to None.


Macbook Pro (mid-2012) detects adapter/battery but will not charge I had a pretty bad spill on my mid-2012, 13" Macbook Pro about a week ago (just water, but it got on the keyboard and the system shut itself off). Fearing the worst, I did everything I felt I could, dried it out with the "fan trick", opened it up, etc. It eventually powered back up with the battery inside but attaching the MagSafe adapter did not change the status of the battery and indeed the LED indicator light did not turn on. I was initially scared that it would not draw power from the adapter at all, but upon disconnecting the battery the MacBook boots up when the MagSafe is plugged in.

So I do not know where to go from here. I tried some easy things, like resetting the SMC, I tried every possible direction I could find for that (they seem to vary slightly based on who you ask, I definitely tried Apple's official directions). The orange LED light came on the adapter for a few minutes after one such attempt, but as soon as I restarted the computer it returned to not charging. I can confirm that when the battery is plugged in and the MagSafe is plugged in, the MagSafe draws no power (confirmed with a power meter). I think the only confirmed cases I've seen like this on support forums that were solved involved having Apple replace the logic board, which is not really logical from a cost perspective at this point.

I'm wondering exactly which part is messed up. My fear is that it's the logic board, and I just don't really know how to confirm it, but I'd hate to give up just because I don't know a lot about how the circuitry works. My bottom line question is: which piece of hardware would cause this problem to occur (if any)? I've noticed there's a DC-in board separate from the logic board in my disassembly (and looking at the pictures from ifixit) and potentially the cable itself could be problematic somehow, but I'm not sure how to confirm what's wrong or how to test it. Any help is appreciated!

As a note, I'm not going to bother with having Apple fix this, because they will know it's water-damaged and will want to replace the whole logic board. Admittedly that may be the problem, but I'd rather just bite the bullet and get a brand new computer at that point. I'm looking for a smaller fix, if such a fix exists.

After borrowing several different power adapters, I determined there was something inconsistent. The mid-2012 MBPs come with the MagSafe 1 "L" connector power adapter, but the pin layout is the same as the "T" connector models. I tried two of each and the L hasn't been able to charge my battery and the T charges consistently. Each time I made sure to use the right wattage adapter, which is 60W for this model.

I can't explain this, but it's charging now. Leaving this in case anyone else manages to dump water on their Macbook or have it fail in a similar fashion. I'd love to know why it works with only T connector adapters, but I'm guessing this is such a niche question it has not been looked into. I have also determined that in the "Power" section of System Report, it gives full power adapter info (serial number, model, etc.) for the T connector adapters I have used but not for the L connector adapters, so it seems to be an issue with the charge control (middle) pin on the MagSafe.

Long story short, always try another adapter if you have any others available. Switching to a different connector type fixed my issue.


Accessing files from Mac OS X in VMWare Fusion? I'm running VMWare Fusion on a Boot Camp partition. When I launch the virtual machine, I see the C:\ drive which is the BOOTCAMP partition, but I don't see the other hard drive (D:) which is visible when launching boot camp directly. I realize that I can drag and drop files between OS X and the virtual machine, but I was wondering if this is the only method of accessing OS X files from the virtual machine. Is there no way to have it show the second hard drive so that every file I want to access doesn't have to be copied over?

I recommend using the Shared Folders feature in VMware Fusion.

I have a Boot Camp partition as well running Windows 7. When I need to access files that are on the Mac OS X side from within Windows, I go the VM preferences and enable each folder I want to share (you can share multiple folders form different locations). All shared folders will then be shown on the Z:\ drive in Windows.

Hope this helps.


21.5" Late 2012 iMac | Display or GPU issue I purchased used iMac over auction. The iMac seems to show no picture. Could this be the display pin issue or it has the like of faulty GPU?
Since these iMacs don't have screen mirroring by default, is there any way to do that to see if its GPU or display issue. I am attaching the pictures below:

More then half screen is black.

Without putting hands on, it's impossible to know for sure if it's a GPU or an LCD issue. However, a screen that has a delineated bright area and a dead area will most likely be the display panel and not the GPU.
It's not clear what you mean by  a "display pin issue," but if you're referencing an issue with the display LVDS cable, then no, it won't be related to a faulty cable.
If you have another Mac available, you can put this one into Target Disk Mode and use that Mac to boot off the iMac's internal drive.  You can then configure display mirroring and remote control (VNC) so that the next time you boot the iMac (normally), you'll be able to better diagnose it


Pasting clipped screen capture into osx email can't be seen by recipients When I take a screen capture using 'capture selection from screen' or using 'control-command-shift-4' and then paste it in an email, the clip cannot be seen by the receiving party. Instead they see a blue question mark in a box.

Has anyone else struck this problem ?

Saving the screen capture direct to disk works fine.

The default file type for screencaps in OS X is .png format. Perhaps your recipients' email readers cannot process .png files.

You can change the default file type by executing these commands in Terminal.

To change the default format to JPEG, for example, use these commands:

defaults write com.apple.screencapture type jpg
killall SystemUIServer

Other formats you can choose: gif, pdf and tiff.


How can I list the IP addresses of all the AirPrint printers on a network? I am trying to make a list of all AirPrint printers on the network at a school. We have many of them because of all the classroom and office printers, but they have not been set up with meaningful names. I tried reading the DHCP allocation table in the router, but many of the printers do not report a host name. I can't check printers in-person because of the disruption to classes from going in to every room and playing with the 1-3 printers there.

The dns-sd command as in How to find IP address of my other Mac?
gives a column called Instance Name, rather than the host name. Using the dns-sd -G option on the instance names gave no such record.

dns-sd -Z is closer, since it gives host names to look up with the G option, but it doesn't give a complete list. There are many more printers in the Add Printer dialog on a Mac than there are in the output of dns-sd -Z.

Does anyone have some code or script to just find all the IP addresses of things advertising by Bonjour?

I do not have an AirPrint printer on my network. And never played with one either...

I cannot test with a real AirPrint device in my proximity right now.

But here is how I can list all the IPP-enabled printers (in this case they are all connected via CUPS):

First, browse for DNS-SD discoverable services (all types):

kp@zdv-wireless-43-219:> dns-sd  -B  _services._dns-sd._udp  local.

  Browsing for _services._dns-sd._udp.local.
  DATE: ---Fri 20 May 2016---
  23:54:37.797  ...STARTING...
  Timestamp     A/R Flags  if Domain  Service Type         Instance Name
  23:54:37.798  Add     3   4 .       _tcp.local.          _ssh
  23:54:37.798  Add     3   4 .       _tcp.local.          _sftp-ssh
  23:54:37.798  Add     3   4 .       _tcp.local.          _airplay
  23:54:37.798  Add     3   4 .       _tcp.local.          _raop
  23:54:37.798  Add     3   4 .       _tcp.local.          _googlecast
  23:54:37.798  Add     3   4 .       _tcp.local.          _nomachine
  23:54:37.798  Add     3   4 local.  _apple-mobdev2._tcp. _sub
  23:54:37.798  Add     3   4 .       _tcp.local.          _apple-mobdev2
  23:54:37.798  Add     3   4 .       _tcp.local.          _ipps
  23:54:37.798  Add     3   4 .       _tcp.local.          _ipp
  23:54:37.798  Add     3   4 .       _tcp.local.          _workstation
  23:54:37.798  Add     3   4 .       _tcp.local.          _http
  23:54:37.798  Add     3   4 .       _tcp.local.          _amzn-wplay
  23:54:37.798  Add     3   4 .       _tcp.local.          _rfb
  23:54:37.798  Add     3   4 .       _tcp.local.          _afpovertcp
  23:54:37.798  Add     3   4 .       _tcp.local.          _smb
  23:54:37.798  Add     3   4 .       _udp.local.          _net-assistant
  23:54:37.798  Add     2   4 .       _tcp.local.          _eppc
  ^C

So yes, there is indeed an IPP print service (but no AirPrint one, which would be marked by stand out being tagged as Service Type of _airprint._tcp in the list).

Second, browse for all present services of type "IPP":

kp@zdv-wireless-43-219:> dns-sd  -B  _ipp._tcp  local.

  Browsing for _ipp._tcp.local.
  DATE: ---Fri 20 May 2016---
  23:54:47.782  ...STARTING...
  Timestamp     A/R  Flags  if Domain  Service Type   Instance Name
  23:54:47.783  Add      3   4 local.  _ipp._tcp.     Officejet6500donna @ mbp
  23:54:47.783  Add      3   4 local.  _ipp._tcp.     raw2dir @ mbp
  23:54:47.783  Add      2   4 local.  _ipp._tcp.     Officejet 6600 @ mbp
  ^C

Ok, one of the instance names is "Officejet 6600 @ mbp".

Third, lookup specific info about the printer named "Officejet 6600 @ mbp":

kp@zdv-wireless-43-219:> dns-sd  -L  "Officejet 6600 @ mbp"  _ipp._tcp  local.

  Lookup Officejet 6600 @ mbp._ipp._tcp.local.
  DATE: ---Fri 20 May 2016---
  23:54:55.252  ...STARTING...
  23:54:55.253  Officejet\0326600\032@\032mbp._ipp._tcp.local. can be reached at mbp2-2.local.:631 (interface 4)
   txtvers=1 qtotal=1 rp=printers/Officejet_6600 ty=Unknown \
    adminurl=https://mbp2-2.local.:631/printers/Officejet_6600 \
     note=Büro\ im\ Keller priority=0 product=\(Officejet\ 6600\ e-All-in-One\) \
      pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster \
       UUID=e7d11337-a440-3f2d-7168-b53de4325791 TLS=1.2 Color=T Scan=T \
        printer-state=3 printer-type=0x480900E
  ^C

Half of the info you are looking for (hostname of the printer) is covered by the sentence "Officejet\0326600\032@\032mbp._ipp._tcp.local. can be reached at mbp2-2.local.:631"

This gives the current (Bonjour-)hostname of node offering the looked-up print service.

Fourth, look up the IPv4 and IPv6 addresses for a given hostname:

kp@zdv-wireless-43-219:> dns-sd -Gv4v6 mbp2-2.local

  DATE: ---Sat 21 May 2016---
  0:12:41.025  ...STARTING...
  Timestamp     A/R Flags if Hostname    Address                                      TTL
  0:12:41.025  Add  3  4 mbp2-2.local.   FE80:0000:0000:0000:AEBC:32FF:FEAE:CAEB%en0  120
  0:12:41.025  Add  3  4 mbp2-2.local.   FD00:0000:0000:0000:AEBC:32FF:FEAE:CAEB%  120
  0:12:41.025  Add  2  4 mbp2-2.local.   192.168.177.20                               120
  ^C

Summary

Assuming my first command had returned some _airprint service available in my network, then my guess is that one of the returned lines would read:

00:00:00.000  Add     3   4 .       _tcp.local.          _airprint

Thus, my second command would have to be:

kp@zdv-wireless-43-219:> dns-sd  -B  _airprint._tcp  local.

I assume this could return something like

200:00:00.000  Add    3   4 local.  _airprint._tcp.  Some AirPrinter @ somehost

Then my third command should read:

kp@zdv-wireless-43-219:> dns-sd  -L  "Some AirPrinter @ somehost"  local.

Which would return a line telling you "... can be reached at somewhere.local.:1234". From which to derive the fourth command:

kp@zdv-wireless-43-219:> dns-sd  -Gv4v6  somewhere.local.

Caveats: The last part, about AirPrint service discovery may be wrong. It could be the case that AirPrint services announce themselves just as standard IPP services do. You have to find out yourself. If you do, please report back.

Update

I've googled a bit for "_airprint._tcp".

I didn't find a single instance of anybody who reported in some forum their output from dns-sd -B listing this particular string.

However, there were lots + lots of _airplay._tcp and _ipp._tcp results. This means that "_airprint._tcp" does not seem to exist, and AirPrint printers must be using a different signature to make themselves known to potential clients. However, we already know that all AirPrint services use IPP for communication with their clients, so they also MUST be making the _ipp._tcp service type announcements.

Hence it is safe to conclude that...

...all AirPrint devices will announce themselves as _ipp._tcp (not _airprint._tcp). Also, it looks like...
...you can identify AirPrint devices by looking for the TXT record of urf="$anything" and pdl="$anything,image/urf".

To verify this, I checked with what the (fake) announcement from dns-sd.org tells about its AirPrint (warning, it is not permanently on the Internet, sometimes it goes away for hours...). It does return this:

kp@zdv-wireless-43-219:>  dns-sd -Z _ipp._tcp,_universal dns-sd.org.

  Browsing for _ipp._tcp,_universal.dns-sd.org.
  DATE: ---Sat 21 May 2016---
   1:40:45.688  ...STARTING...

  ; To direct clients to browse a different domain, substitute that domain in place of '@'
  lb._dns-sd._udp                                 PTR     @

  ; In the list of services below, the SRV records will typically reference dot-local Multicast DNS names.
  ; When transferring this zone file data to your unicast DNS server, you'll need to replace those dot-local
  ; names with the correct fully-qualified (unicast) domain name of the target host offering the service.

  _ipp._tcp                                       PTR     Stuart's\032Home\032AirPrint\032Printer._ipp._tcp
  Stuart's\032Home\032AirPrint\032Printer._ipp._tcp SRV     0 0 631 airprint.dns-sd.org. ; Replace with unicast FQDN of target host
  Stuart's\032Home\032AirPrint\032Printer._ipp._tcp TXT     "txtvers=1" "qtotal=1" "rp=ipp/printer" \
    "pdl=application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/pdf,image/urf" \
    "URF=CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1-2-4,MT1-2-3-5-12,MT1-2-3-5-12,RS600" \
    "ty=HP LaserJet 400 color M451nw" "product=(HP LaserJet 400 color M451nw)" \
    "priority=10" "adminurl=http://www.dns-sd.org/ServerStaticSetup.html" \
    "note=At Stuart's house" "Color=T" "Duplex=F" "Scan=F"
^C

Indeed, "Stuart's Home AirPrint Printer" mentions "URF" in its TXT records.

So, to summarize the answer to your question "How can I get the IP addresses of all AirPrint printers?"

First, list all IPP printers.
Second, exclude these IPP printers which do NOT enumerate the two above mentioned urf-entries in their TXT records.

Verify my statements

The following (minimal) command will announce a fake AirPrint device in your LAN (until you cancel the command with ^C):

dns-sd                                                                   \
    -R "Minimal AirPrint Demo (dummy+fake printer fooling iPad clients)" \
    _ipp._tcp.,_universal                                                \
    .                                                                    \
    631                                                                  \
    pdl="image/urf"                                                      \
    URF=""

Your iOS devices will now enumerate this printer amongst its auto-discovered AirPrint devices.

(BTW, you can announce the port as something different from 631 too -- the iOS clients will still identify it as an AirPrint device...)

Now repeat this little experiment, just leave one of the two image/urf or URF="" statements off your command:

The fake device will still appear as an IPP printer in the DNS-SD/Bonjour browse lists.
But iOS clients will only list as AirPrint-capable these (fake or real) devices with the "URF"-related entries.


How to allow install of non app store or identified developers on MacOS Sierra I'm getting this error trying to install software on MacOS Sierra (10.12.5):

Your security preferences allow installation of only apps from the App Store and identified developers.

I'd like to change the settings so that these types of installations are allowed. Similar to what is shown here:

http://www.synergy.com/wordpress_650164087/faqs/if-you-get-the-following-error-trying-to-install-kg-under-os-10-8-your-security-preferences-allow-installation-of-only-apps-from-the-mac-app-store-and-identified-developers/

However, my system doesn't seem to have the Anywhere option (screen shot below). This option is also not available if the Advanced button is selected.

From: How to Allow Apps from Anywhere in macOS Sierra Gatekeeper

Quit  out of System Preferences

Open the Terminal app from the /Applications/Utilities/ folder and then enter the following command syntax:
sudo spctl --master-disable

Hit return and authenticate with an admin password

Relaunch System Preferences and go to “Security & Privacy” and the “General” tab

You will now see the “Anywhere” option under ‘Allow apps downloaded from:’ Gatekeeper options


Where are the brightness/volume icons for BezelUI stored in Sierra / High Sierra? As the title states. I'm using OSDisplay (as a sort of answer to my question here). I've noticed that in Sierra (or so it seems), the OS's icon for the brightness HUD changed some—longer and thinner rays, thinner inner circle, etc. I would like to change the file that OSDisplay uses so that it matches the default icon.

Apparently in the past these images were stored as PDF files in /System/Library/LoginPlugins/BezelServices.loginPlugin/Contents/Resources/BelzelUI/HiDPI, but I do not see them there any more. The Contents/Resources/ folder just contains a bunch of .lproj folders.

Asked on Reddit, was directed to the new location: /System/Library/CoreServices/OSDUIHelper.app/Contents/Resources.


is there a shortcut to expand folders in Finder while being in Cover Flow mode? in Finder I can use the arrow keys to go up and down and with "left arrow" and "right arrow" I can expand a folder while being in List View mode.
However, when I'm in Cover Flow mode the "left arrow" and "right arrow" do the same as "up arrow" and "down arrow", i.e. just go up and down in the list.
How can I expand a folder while being in Cover Flow?

aaaand while typing the question I just played around and figured it out:

In order to expand a folder you need to use COMMAND+"left arrow" and COMMAND+"right arrow" respectively.


How to Add All Songs of Apple Music Playlist to My Music at Once? When browsing through Apple Music, there are curated Apple Music Playlists.

Now, I can add each song of the Apple Music Playlist to "My Music" by right clicking and selecting "Add to my Music". That's very inconvenient, when I want to add all songs of that playlist to "My Music".

Is there any easier way? Any one-click solution?

Yes you can, on both iTunes and your Apple device. You didn't mention which device specifically, but on iTunes, look for the + icon or the ..., which you can click and Add to My Music as well.

Check out these screenshots below on iTunes. I boxed the + icon on both pictures because that is the simpler approach, but you can also click the ...:


Remove desktop folder which is on the desktop and contains everything on the desktop I don't how this happend, but I feel like my machine is experiencing a Being John Malkovich syndrome.

There is a folder on my Desktop called Desktop which contains all the other folders on my Desktop. I want to get rid of this folder, but not the contents of my desktop.

Any advice?

Open the folder. Select All. Copy. Click on the Desktop. Paste. Delete the folder.


Want to Install Windows 10 onto MacBookPro (15", Early 2011) running Sierra 10.12.6 My early 2011 15 inch MacBook Pro has 2.3 Intel Core i7, 8 GB memory, 750 GB SATA Disk and a SuperDrive. I completely erased the hard drive with Disk Utility and reinstalled os 10.12.6. My goal is to use this computer to run Windows with BootCamp, because my late 2009 iMac has become very burdened running Windows 7 in Parallels. I need Windows to use my accounting program. I will continue to use my iMac for everything else.

So my first problem was that my Windows 7 key will not work. I purchased a Windows10 Home full version USB flash drive.Using Boot Camp I downloaded the Windows Drivers to the USB. The point was reached where a password was asked for, indicating that the installation of Windows was successful. But after I gave the password, the message was "The installer disk could not be found. Insert Windows installer disk and wait for it to be recognized."

Next I received some advice to burn the iso files to a DVD. I purchased a HD DVD-R with 15 GB. However, neither my iMac nor the MacBook Pro will perform the task. So I am seeing a lot of posts from people experiencing problems with the SuperDrive under Sierra.I would rather not go down this rabbit hole, so I am hoping there might be an answer that will work using the flash drive that I already have.

Some of the answers that I read to similar questions seem really complicated; I hope that there might be a relatively easy fix

In 2011, Windows was still being installed to BIOS boot on Macs. The drivers provided by Apple assume you will be installing for a BIOS booting Windows. You can not directly install a BIOS booting Windows on any model Mac using a flash drive. The easiest solution would be to burn a Windows 10 iso file to a DVD-R DL.

Creating a burnable iso image from Windows 10 USB flash drive installer.

According to the instructions provided by Apple, you are suppose to download the ISO from Microsoft. Read Step 2 in the document I have linked to.

However, you may be able to burn the ISO file from the USB flash drive Windows 10 installer you purchased to the DVD by using the command given below.

Using a machine running Windows 10, I created a Windows 10 USB flash drive installer. After inserting the flash drive in a 2011 iMac running High Sierra, I was able to enter the following command to create a bootable Windows 10 ISO file. You will need to burn the image stored in the windows10.iso file to a DVD. The image was only 4.15 GB in size so I was able to use a DVD-RW.

hdiutil makehybrid -o windows10.iso /Volumes/ESD-USB -no-emul-boot -boot-load-size 8 -eltorito-boot /Volumes/ESD-USB/boot/etfsboot.com

The name of the flash drive shown in the finder was ESD-USB. The -boot-load-size was set to 8 sectors, because the size of the etfsboot.com file was 4096 bytes and the sector size is 512 bytes. ( 8 * 512 = 4096 )

To boot from the DVD, do the following.

Insert the DVD
Restart
Immediately hold down the option key until the Startup Manager icons appears.
Select the DVD icon labeled Windows.


My Mac 3,1 isn't recognizing one CPU - Dual Xeon I have a mac 3,1 with dual Xeon's. It definitely has 2 CPUs because when I bought it I checked system information and is said 2 CPUs and I put better thermal paste on both of them just just to improve thermals which weren't bad but I figured it wouldn't hurt.
When I put everything back together it booted and I think I remember checking to make sure both cpu's where working correctly which, if I did ally check, they both where.
I recently downloaded cinabench and saw that is only recognized 1 cpu but I thought nothing of it and assumed it was just cinabench being weird.
Today I purchased a used hd 5570 and once I had installed the card and booted the computer I saw that in the system info it too only recognized one cpu. (I am fairly certain it had nothing to do with the card because in hindsight it seemed slower than when normal.
If you need any more information just ask, I'm happy to give it to you. I'd really appreciate some help, thanks.

Model Name: Mac Pro
Model Identifier: MacPro3,1
Processor Name: Quad-Core Intel Xeon
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache: 12 MB
Memory: 16 GB
Bus Speed: 1.6 GHz
macOS

This is almost certainly a hardware problem. As you're not sure that your second CPU was recognized after you unplugged and replugged it, it is likely that this is the event that caused the problem.
I would suggest shutting down the Mac, unplug power - and then remove the second CPU. Boot the system up and check that it works, and that System Information says 1 processor.
Then shut the Mac down again, unplug power - and carefully replug the second CPU. Boot up again and check System Information for the Processor Count.
If it still says 1 CPU, your problem is most likely either a defective CPU or a defective socket. The easiest way to check if to try with a different CPU. Perhaps you can get one cheap off eBay or perhaps you have access to one.
If it is a defective socket, then your options are very limited. With reasonable cost the only you can really do is to exchange the whole board.


Trouble generating a p12 certificate for wallet signing I've been trying to replace an expired p12 certificate which is used for signing AppleWallet passes in PHP.
The problem I'm having is nothing to do with the PHP end of things but getting and exporting the certificates as P12.
Here are the steps I have taken, along with the original url for the instructions for each step

create a csr (see https://help.apple.com/developer-account/#/devbfa00fef7)

Launch Keychain Access located in /Applications/Utilities.

Choose Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.

In the Certificate Assistant dialog, enter an email address in the User Email Address field.

In the Common Name field, enter a name for the key (for example, Gita Kumar Dev Key).

Leave the CA Email Address field empty.

Choose “Saved to disk”, and click Continue.

Go to Apple Developer portal and under Certificates, Identifiers & Profiles create an Identifier

In Certificates, Identifiers & Profiles, select Identifiers.

Under Identifiers, select Pass Type IDs.

Click the plus (+) button.

Enter the description and pass type identifier, and click Submit.

note: I first tried the existing identifier from the previous certificate.  That didn't work so I deleted it and created a new one.

Create the Certificate
(see https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/YourFirst.html)

In Certificates, Identifiers & Profiles, select Identifiers.

Under Identifiers, select Pass Type IDs.

Select the pass type identifier, then click Edit.

click the Create Certificate button, then follow the instructions to create a pass signing certificate.

Download that certificate and the double click it to import into my Key Chain

When I import it, it appears as just a single certificate and not a group like the previous one, so I cannot then export it as a .p12.  See attached screen shot where top cert is the new single cert and second cert is the expired group of certs.
Where am I going wrong that the imported certificate does not contain the self signed certificate that I uploaded as part of the creation in step 3)

I have tried using variations of different common names and leaving the cert name blank in step 3?

Another thing I noticed in Keychain Access is that the new cert doesn't appear under the "My Certificates" group, only under the "Certificates" group, so it almost looks like my identity is screwed.  I did just upgrade to Catalina!

The problem was the way that I was importing the cert into KeyChain Access.  I needed to filter by login > certificates and then import.


Photos on multiple computers Here's my scenario: I have around 60Gig of photos on my desktop Mac. That mac is backed up regularly and I consider it safe for my photos. However I would like to be able to use my iPad to decide which photos to keep, to favorite, or delete.

I could use Apple's iCloud Photos but I have two problems:

I don't want to pay for space that I already have at home
I want to know for sure that all my masters are in my possession

I can sync my iPad with the desktop, asking for all photos, collections, etc to be synced. Now my iPad has all of them. But if I delete one on my iPad it won't delete it on my deskop. I'm not even sure that if I favorite it on my iPad that it will be favorited on my desktop.

Is there a way to get this done without giving Apple control over all my photos?

Use iCloud Photos. It's really nice having a single shared iCloud Photos Library between your Mac and iOS devices.

Once you're using iCloud Photos, any favorites / edits / deletes that you make on your iPad will be synced to your Mac.

  I don't want to pay for space that I already have at home

You're paying for it, but consider Apple's iCloud as another offsite backup, of which you can never have enough. Consider the cost of the subscription similar to the cost of another backup HDD at home. And it's a better backup for the photos stored on your iOS devices.

  I want to know for sure that all my masters are in my possession

There is a Download Originals to this Mac setting in Photos for the Mac that allows you to keep all original photos on the Mac (as opposed to downloading them on demand from the Cloud / optimizing storage).

Using this setting should keep your current Mac / backup setup roughly the same. Local backups of your computer will continue to back up ALL of your photos.

The originals will still be stored and backed up on your Mac.


OS X 10.11.1 El Capitan has disabled the keyboard sound keys All setting are correct. Tried following some other site's suggestions but nothing has resolved the problem, so now what should I do? Keys worked before the install.

MacBook Pro (Retina, early 2105)
2.7 GHz
8 GB

What happened here is that your FN key settings got reverted - there's an option that the F-keys either transmit their assigned key (so F10 means F10), or the additional function (so F10 means mute).

Normally, this is set to function mode, so F10 means mute. You can change this in your Keyboard settings in system preferences.

If the "Use as standard function keys" option is turned on, you will need to hit Fn to access the mute key. If it's turned off, you will not need to hit Fn, but if you want to send an actual F10, then you need to hold Fn.