What causes the popup alternate characters from showing?

Are there any background applications or kernel extensions that could disable the popovers? For example KeyRemap4MacBook disables them.

What input method do you use? The popovers don't work with all input methods, or custom keyboard layouts that are not saved in the bundle format.

You could also try to run defaults write -g ApplePressAndHoldEnabled -bool true and reopen applications. Or delete ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist and restart.

Does it work on other accounts, or did it work in earlier versions of OS X? Is there a process named PressAndHold?

Related questions:

Character Picker stopped working in OS X Lion


AppleScript: Move files via drag and drop

Change the following line of code from:

move a to folderSpool

To:

move theCurrentDroppedItem to folderSpool

In your code, a is an integer, indexed from 1 to length of theDroppedItems, so you were trying to move an integer (which of course you can't) not the file, which is theCurrentDroppedItem.


Go to Mac App Store page for macOS High Sierra and download the installer.

Create a bootable installer for macOS High Sierra by following the instructions in the support document, How to create a bootable installer for macOS:

Use a USB flash drive with at-leat 12 GB of free storage space and run the following command:

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ High\ Sierra.app

Once you have the installer ready, use it to install a fresh copy of macOS High Sierra. Once installed restore your data from Time Machine backup.

Now turn-off automatic updates in System Preferences and manually check for updates. Under Updates in Mac App Store do not choose to update Safari.


Excuse the large picture, but I have used Screen Sharing to share the screen of an iMac running Lion and Pages '09 over the virtual display, and it works just fine.  I suspect that the assumed problem of with pages inability to work over a virtual VNC connection is not accurate, but there is something more local to your machine that needs attention.


the login command is used to login to the unix system of OSX.
to learn more about it type

  man login

As an example if you have a terminal window open and you are also logged into the GUI desktop you are logged in 2 times.
you can see how many sessions you have open by typing uptime
example:

7:52  up 23:49, 2 users, load averages: 1.43 1.53 1.50

the 2 users are your terminal window and your OS X gui.

if you open another terminal window and run uptime again you will see 3 users.

17:53  up 23:50, 3 users, load averages: 1.47 1.51 1.50

The command shown in the inspector is the command used for the terminal to login to UNIX.  Not what command is running in the terminal session.
You can see what programs the terminal is running in the process info section of the inspector. You are only running login and bash in the screen shot you have uploaded.

To see the command of a running process select it in the inspector click the gear and click copy command. Paste it somewhere else.


What is the resolution of the Apple Thunderbolt Display's built-in camera?

4:3 or 16:10 or 16:9 is aspect ratio.  As for maximum resolution, open Quicktime to do a video recording thru the camera and set the quality to maximum.  You don't have to hit record, just do ⌘+i for the movie inspector and you will see the recording resolution there.  The camera will record at the highest possible resolution it can.


Why does email from an iPhone have the wrong time zone in the Date field?

The problem, I think, is with your mail client. The times in the headers are consistent, that is, the chronological sequence is correct. The issue is that your mail client is not translating the time given in the header into local time for display. This means that an email to you from, say, New Zealand would be shown in your mail client with a time that hasn't happened yet for you locally.

Verizon's cellphone equipment (e.g., ENodeB) is almost certainly set for UTC (alias GMT). That greatly simplifies their data aggregation issues.


Terminal command to force-install Mac OS High Sierra onto a specified drive?

This is independent of the RAID problem and may be independent of any APFS problem as well.

The core of this question is that the commanline will not allow you to redirect the install away from the booted drive. Therefore this answer covers the question as presented in the question headline.

The startosinstall command offers the switch --volume to redirect the installer onto a specified volume.

Try it:

..path/to/startosinstall --usage

and find that option missing.

It is there for any High Sierra installer.

BUT

This option is only presented when SIP is disabled!

The -–volume argument will be hidden, because startosinstall requires – at least – either CSR_ALLOW_UNRESTRICTED_NVRAM/0x40/64 or CSR_ALLOW_ANY_RECOVERY_OS/0x100/256.
Without one of these, the --volume argument won’t be supported.

That means also that using that switch from the Recovery partition it will be present every time.

This trickery is documented at Comparison of startosinstall's available options depending on boot OS environment

So in the case of this question:

/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --converttoapfs NO --volume /Volumes/YourChoice


The iTunes currently-playing track is blank; how do I get it back?

Apparently a lot of people are seeing this problem. Poster "musicelect" on this Apple discussion thread at least provided a work-around:

Close the main iTunes window with ⌘+W
Then reopen it with ⌘+Opt+1


How to know if the new MacBook is charging while turned off?

Curiously, Mac portables has been designed to be put to sleep instead of shutdown for very long time (I occasionally reboot, but never shutdown my iBook G4, which is from 2004)

So the solution would be using it as how it was designed, put it to sleep, open lid to check.

Yay, that's the USB standard's issue. They should have spec in optional indicator and signaling to the USB connector.


Deleting files in this circumstance is relatively easy but you will need to be at least a little conversant with Unix/Linux command line operations.

Boot your Mac holding down Command ⌘-S, this will pop you into single-user mode. A black screen with white text scrolling by. Eventually you will get a prompt with some instructions on what to do directly above it. I don't remember exactly but the commands mount the filesystem so you can access it. Then enter this:

cd /Users/[USERNAME]/Movies

Where [USERNAME] is your short username that appears on your home folder. Once in the movies folder you can proceed to delete movies. remember a couple of things.

The command line is Case Sensitive. So MySpecialMovie.mov is a different file than myspecialmovie.mov. At least at the command line level. (The Mac preserves case but in Finder operations is not case sensitive)
The Tab key is your friend. Press Tab when typing a file name and it will autocomplete.

Start by listing the files in your ~/Movies folder like this:

ls

Or you could get a longer listing (which I prefer).

ls -al

That will give you a list of all the deletable files.

The second method will give you file size.

To remove one of the files:

rm MySpecialMovie.mov

Now it is a matter of going through the ~/Movies folder using ls and rm to view and remove un-needed files.

Note that pressing the Up Arrow will scroll back in command history allowing you to easily review what you have done and/or repeat previous commands. Down Arrow scrolls forward in command history.

One you are done you can issue the reboot (restart?) command and allow your Mac to boot normally.


How can i extend my partition further than the limit? Disk Utility

Your Mac officially doesn't support Mountain Lion so the how-to below may fail!

You can't move ("backward-expand") the beginning of an existing partition to "lower" physical block numbers (with 0: the first block and 234441647: the last block and your Mountain Lion partition starts somewhere in the middle) with Disk Utility.

You will be able to create a new partition in the unallocated disk space and restore your existing Mountain Lion partition to it though. Then remove the old partition and expand the new one to the full size.

Since your Mac can't boot to Internet Recovery Mode, you need a second boot media (e.g. a thumb drive) with a basic system or a full fledged system.

Create a bootable Lion thumb drive
Boot to the thumb drive
Open Terminal and enter diskutil list and (assuming your internal disk has the disk identifier disk0) sudo gpt -r show disk0 to get an overview
Unmount your internal disk:

diskutil umountDisk disk0

Add a partition in the unallocated disk space:

sudo gpt add -i 4 -b 409640 -s 117650752 -t 48465300-0000-11AA-AA11-00306543ECAC disk0

Enter diskutil list and get the identifier of the new partition with the size 60.2 GB (your original ML volume has the size 57.1 GB). This may be disk0s2 or disk0s4
Format the partition with newfs_hfs:

newfs_hfs -v "New" -J /dev/disk0sX #use the proper identifier here

Close Terminal and open Disk Utility
Restore the Mountain Lion volume to New.
Boot to the restored Mountain Lion volume (AFAIR you will see two volumes with the name Mountain Lion in StartVolume, so boot to the proper one!) to check if it works.
If everything works open Disks Utility and remove the second Mountain Lion partition. Expand the first Mountain Lion to the full size.


These files are not, in fact, encrypted. The id3 tags are still intact. If you re-add the files to iTunes, the proper names and artists should show up, assuming they were tagged correctly in the first place.

If you have "copy files to iTunes media folder when adding to library" and "Keep iTunes Media Folder Organized" checked in advanced preferences, it should rename the files and put them in folders by artist in your music folder when you add the files to iTunes.


How to connect to an AFP server from a Windows PC?

Installing Bonjour (aka Zeroconf) doesn't help. Bonjour only announces existing services.

If the server only serves AFP the client needs to understand AFP. The only Windows AFP client I knew was PC MacLan (http://store.ca.com/miramar/miramar.aspx) which seems not to be sold any more. (I still have it installed on an XP box.)

The often cited Microsoft Services for Macintosh was just an AFP server for Windows NT Server.

I think there were efforts at some time to create a FUSE driver as an AFP client on Linux which could in principle be ported to OSX but I haven't heard of that in a long time.

I would love to hear of an AFP client solution though.


Windows 10 runs extremely slowly in Parallels 10

I've had a better experience with Parallels 11 than I did with 10 so you might be worth considering an upgrade to improve the experienced.


How do I enable the visual menu when changing language inputs?

There's probably something I'm missing, but it seems to be shown only for the shortcut for selecting the previous input source (⌘␣ by default). If the shortcut is an F-key, it is only shown if you hold the key and only for a split second.


Make Solid-state scrolling trackpad behave like Multi-Touch trackpad

You could try with some software like Better Touch Tool, but that's not guarantied it will work, since it's more of a hardware limitation.

Another solution would be to buy a Magic Trackpad.


Copy between 10.9 host and guest in Parallels

you have to update your parallels tools, to do so as i remember you have to select Window install parallels tools, then follow the on screen instructions


Edited to add

Based on the comments on this answer, it appears that Xcode updates via the system Software Update were delayed, appearing quite a bit after they became available for manual download from the developer portal.

It may even be that Apple fits them into times when their network usage was low, which could delay an update even if you clear out your old copy and reinstall the not-quite-up-to-date version. Perhaps the update would appear if you waited several days.

Previous answer

Xcode has never, ever updated for me through Software Update, and it's never updated for the dozen or so developers I work with. The Apple employees that I follow on Twitter -- guys like Jake Behrens, Michael Jurewitz (the dev tools evangelist), Chris Hanson, and Bill Bumgarner -- along with former Apple employees who are devs and other high-profile devs I follow, all tweet something along the lines of, "hey devs, time to visit the developer portal to download the new version of Xcode" when an update comes out.

Are you absolutely certain Xcode updates are arriving automatically for your coworkers? Have you seen it happen? Are you sure they're not pulling your leg? I've certainly never heard of it and consistently hear the opposite, so it sure seems unlikely to me.

The only automatic Xcode updating I'm aware of for Xcode 4, and only then if it was purchased through the Mac App Store and not downloaded from the portal, and only then if you launch the App Store and click on the update, which really isn't very automatic.


I created a new (iCloud) backup, wiped the phone and restored my backup.
Not really a decent solution, but iMessages works again and I didn't lose anything.


starting mysql from the console and my.cnf

To start mysql, run mysqld_safe &. The ampersand at the end starts the process in the background, so you can continue to work while it runs. Most likely, it needs root privileges to run, so add sudo to the front if it doesn't work without (you will need to be logged in as an administrator).

By default, there is no my.cnf file. Defaults are used automatically. There are a few different starting files in the support-files folder, for different usage styles. You can copy any of them to start with, and place the file in any of these locations (in order searched): /etc/my.cnf /etc/mysql/my.cnf $MYSQL_DIR/etc/my.cnf ~/.my.cnf


Do I have 2 routers for my wireless network?

I presume you have Verizon (FiOS) for your service provider, as they use Actiontec routers.  Another router (such as an Airport Time Capsule) can be connected to your Actiontec router, but you cannot substitute another router in place of your Actiontec router.

I recommend turning off WiFi on your Actiontec router, as it has known security issues which enable it to be easily hacked into.  For example, WEP cannot be disabled.  Your ATC can be used as a WiFi "access point" instead, providing superior security and speed.

To know whether you are connected to your ATC, you could try unplugging it to see if you still have access through your Actiontec.

To configure your Actiontec and ATC together, as I've described, is too complex to explain here, as you seem to be a novice user based upon your past questions.  You can be forgiven for not knowing the differences between modems, routers, gateways, LANs, WANs, etc.  Such things are complicated, and weren't designed to be user-friendly.


Have you tried all startup commands to try to get to the recovery screen? One of these should get you out of the black screen.

Command+R

Command+Option+R

Command+Shift+Option+R

Or

Just the option Key

Hopefully you will get into recovery mode to use terminal.
- Open Terminal and type the following command (without quotes) “diskutil list”

-Terminal should give you a breakdown of the disks and volumes that are currently on your Mac that you may not see in disk utility.

Anyway you can post the picture of diskutil list?

Also what Mac version do you have?


How do I remove messages that sometimes keep showing up in the Flagged-folder in Mail although they are unflagged?

The only solution I found is moving the messages to Trash manually. Afterwards move them to the Inbox again.


How can iMessage send from my old phone number that doesn't have service anymore?

I think there is only a solution for this and is the one that you have found on internet.

More precisely, no matter if you are not using you iPhone or even your number configurate to iMessage in your phone, if you mom's phone marks the message from iPad under your name this mean only one thing and the thing is that the iMessage account on your iPad is configure with the same iCloud account (email) that you have on the iMessage of your iPhone.

You can always change this settings. The interesting thing's for you is to figure out who did this ;-)


"iPhoto cannot be opened because of a problem"

Based on the error message, it sounds like MobileDevice.Framework is necessary for iPhoto (probably because of its ability to pull photos from a mobile device.) I'm inclined to believe that since it's crashing at launch, this library needs to be loaded at start time. While it might be possible to maintain two different versions in a separate location, figuring out how to point each application to the right version really doesn't seem like the best idea to me. My recommendation would be one of the following:

Update macOS and...

Switch to Photos (IMO it's actually much better than iPhoto.)
Continue to use iPhoto. Though it won't launch normally, if you right click it, hit "Show Package Contents" and navigate to Contents/MacOS/iPhoto and double click, it should launch.

Downgrade iTunes and restore your library from a backup (either Time Machine/whatever backup service you use, or the automatic backups iTunes creates when upgrading) or simply reimport your music.
Wait and see if Apple releases a new version of iTunes without this issue.


All sounds are .aiff and you'll find many by going to:

Mcintosh HD>system>library>components>

Then right click on CoreAudio.component and click 'show package contents'

Then go into Contents>Resources>SystemSounds>finder>

Note that this is different in El Capitan but is what I used in several OS's before, ie: Yosemite, Maverick, etc


A property is a bit different than a variable - it is more like a getter/setter declaration, where its usage performs the get/set handler of the specified script object and returns the result.

A global also has scope across script objects, but since it doesn’t have a value until one is assigned, you need to run the remote script to do that.  In addition, you should probably define the same variable(s) as global in your second script, for example:

First script:

property myName : "Kevin"
global test, one, more

doSomething() -- set globals

on doSomething()
  set test to "testing"
  set one to 1
  set more to {2, 3}
end doSomething

Second script:

global test, one, more

set remoteScript to (load script "/Users/you/path/to/First.scpt")
run remoteScript

log myName of remoteScript
log test
log one
log more


One approach that's forward compatible and will not get overwritten in an OSX update is to create a script that does ls -l Screen*.png (on the correct directory of course, I'm writing generically) if the list is empty the script exits, if not it uses mv to rename the file (and optionally move it if you also want to, you wouldn't need to since the renamed files won't match Screen*.png (the next time the script runs that is).  I would look at using an xargs to pipe the ls to mv. (I'll admit this would take me a minute to cook up, but it's do-able.)

Once you have the script working correctly use cron on a one minute schedule (hint * * * * *).  Since most of the time the script will exit after one command this will not use any measurable resources.

Previous answer:

One option would be to use fswatch to rename screenshot files as they are created.  This option really has the most forward compatibility as well.

fswatch as the name implies allows you to WATCH for File System changes within a script, and then pipe the output to some other command.   In this case probably xargs calling mv to change the name the way you want it to read.

I would reccomend this type of solution, as it is more update proof that modifying the way OSX names the file.  (i.e. that is let OSX do it's thing, then just have a script that watches and renames immediately).


What is the Unknown (0) process with 232 threads on my iPhone?

pid 0 is always kernel_task in xnu. Further corroborated by being owned by root and having a lot of threads. It’s a synthetic process structure that represents the kernel. It isn’t malware.


How do I keep the new line/line break/end of line in a file consistent across mac and windows

Which editors and viewers do you use?

This topic describes how to set newline in BBedit and Textmate. Also you can use TextWrangler and Notepad++ which are freeware

PS: I commonly use Vim in Windows and Mac (MacVim). In this editor I do ":set fileformat=dos" to convert to CR-LF


Deleted all partitions on Fusion Drive. Don't know how to recover

Could you manually erase the drives via terminal, then recreate a fusion drive.

To manually erase the drives, go into terminal and do diskutil cs list. Then you'll need to do diskutil cs delete (lvgUUID). Here's more details: http://www.macworld.com/article/2015664/storage-flash/how-to-split-up-a-fusion-drive.html

After you delete it, you can recreate it: http://www.macworld.com/article/2014011/how-to-make-your-own-fusion-drive.html


Do Mac installs become progressively more 'crufty' by using Migration Assistant?

You may get a lot of opinions about this but I have been migrating from one Mac to another since the original Mac O/S public beta with nary a problem.

On occasion I will make a quick pass through the root and user level Application Support folders and remove anything associated with an app I know has been removed. Same with the Preferences folder (both User and Root).

Utilities that show you file sizes so you can find disk space wasters are handy here as are utilities like CleanMyMac or Onyx to get rid of cache and other temporary files.

But my days of poring through the file system for stray files ended when I had more disk space on my Macs that I could ever possibly use, so I don't sweat the small stuff. Much of it takes up very little space and I have better things to do than manually remove a thousand (or more) preference/settings/support files.

If you have a Mac with limited disk space that may not apply. In that case keeping on top of the disk space used with cache cleaners and utilities to spot the largest files/folders are your best friends.

When buying a Mac I go with the old engineer's rule of thumb, "buy as much RAM and disk space as you can afford."


Connecting MySQL DB to Apple iWork Numbers?

There is no way to make Numbers get data from a database. (It's more of a consumer tool.) https://discussions.apple.com/thread/1827581

A workaround: you can use Excel to grab the data, and import the XLS file to Numbers for prettier chart-making.


Large ping times in normal mode, okay ping times in safe mode

This issue affected several people after upgrading to Mountain Lion. For many, reducing their MTU size solved the issue:

Open System Preferences.
Select Network.
Select your connection and choose Advanced...
Select Hardware.
Change Configuration to Manually
Reduce the MTU size to 1300. Most people had good experiences with this value.
Observe how ping behaves over time. You can further reduce the MTU size in steps of 4.

However, there seems to be another issue: Proxies. The solution suggested here is:

Open System Preferences.
Select Network.
Select your connection and choose Advanced...
Select Proxies.
Turn off Auto Discovery Proxies.
Apply the settings.

But this should be fixed with an upgrade to OS X 10.8.1 (not sure if an upgrade to Mountain Lion directly brings you to the latest upgrade, or to 10.8.0).

Actually, I would first try the upgrade to 10.8.1. If this does not work, try the proxy solution. If this does not work, try the MTU size reduction.


How to fix macOS High Sierra Boot Failure on iMac Apple 21.5-inch Computer?

Have you tried using disk utility to delete all partitions and create a new one when installing? That might work, I bet there's an error on your disk, since it was probably was writing someting to it when you forced it to shut down, that's bad. It's ok to do that when reading data, not writing.

Alternatively, take the disk out (or tryt slave mode) and use paragon partition manager on some windows pc to check for errors. (paragon is not free)


Full Screen with Microsoft's Mac OS X RDP client?

Click View menu > Full Screen at the very top of the screen. Or press Command-2.


There is no simple command to revert everything to default.

Depending on the number of installed apps besides Apple's own standard apps, it's probably faster to reinstall OS X or restore a backup.

.osx alone modifies about 200 settings - assuming one mod per 4 lines.

Next time better use a hypervisor like VMware or Virtual Box, set up your preferred OS X in a VM and test dotfiles using the snapshot feature.


How can I make my very own OS X Lion Install DVD/USB Stick?

Open Terminal, and type this command to list all partitions on your hard drive or SSD:

diskutil list

Identify the "Recovery HD." For example:

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *120.0 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Filesystem              119.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

Then run the following (replacing [ID] with your identifier (will most often be disk0s3).

diskutil mount readOnly /dev/[ID]

So the following would look like:

diskutil mount readOnly /dev/disk0s3

The disk image inside the Recovery HD partition has been marked invisible, so use the Terminal command to mount it:

hdiutil attach /Volumes/Recovery HD/com.apple.recovery.boot/BaseSystem.dmg

Now, from the newly mounted Mac OS X Base System Image, double-click the 'Install Mac OS X' application and proceed past the licensing agreement.

Choose the external drive or spare partition when the installer asks where you'd like to install OS X Lion.

Once the installer completes the download, do not restart your system. Rather, quit the installer. If you restart, you'll likely lose the local Lion installer. Once you have the InstallESD.dmg in the Mac OS X Install Data folder, you can burn it to a DVD, or image it to a USB flash drive to create your very own Lion boot disk.

This article was adapted from: How to get a full Lion install disc for a new MacBook Air or Pro
All credits go to: CharlesS


How to change email settings on iPad so as not to show images by default

Go into Settings.app and then go to Mail, Contacts, Calendars.

Scroll down the to Mail section...

I hope this helps!


When will app reviewed from apple after rejection of app due to metadata rejection?

Normally, a metadata resubmission takes less than a day.

But that is extremely misleading.

Many think you have to resubmit after correcting the data. This is wrong. Clicking "Submit for Review" puts your app in the back of the queue. Meaning it will take another week or so.

The correct way is to reply to the resolution center message saying you corrected the error. Follow this guide for details.


Can Safari receive desktop notifications from YouTube or Facebook?

If you go to your Messenger messages on Facebook, at the bottom, click on "show in Messenger". Then click on the gear icon and go to settings. You can enable notifications there, but I don't know if this will also enable Facebook messages, it will ask you if you want to receive messages from "facebook.com", so I guess it should work.
Most websites ask you if they can send messages the first time you open that website, but for some reason Facebook and YouTube don't do that.


MacBook Air (2015) Trackpad and keyboard not working

It is likely that the internal connectors for keyboard and Trackpad have lost contact from the main logic board. It is advisable to get it inspected by an authorised Apple technician.


How can I force my iMac to use iMessage NOT SMS

Couple of things to try:

On your iPhone, choose Settings > Messages > Send as SMS and toggle the setting to Off.
When sending an iMessage to your wife, try using her Apple ID instead of her phone number. You can check what numbers or email addresses she can use in Settings > Messages > Send & Receive.
Check your wife's mobile data connectivity/data roaming. She won't be able to access iMessage if she has no internet. See Settings > Mobile > Mobile Data and make sure the setting is On (it may be Cellular in the US if she has changed locale).
Probably obvious, but make sure your wife has iMessage enabled. Check Settings > Messages > iMessage and make sure the setting is On.

Note with the second point there. There used to be an issue whereby Messages on macOS would group the chats separately if you've sent messages to different addresses of the same contact. Not sure if this has been resolved, but it was frustrating.


diskutil  erasevolume  "Free Space"  ""  /dev/disk0s4
diskutil  resizevolume  /dev/disk0s2  R

The first command will remove partition /dev/disk0s4.

The second command will move /dev/disk0s3 to the bottom of disk0 while resizing /dev/disk0s2 to maximum size.


Disable automatic alt text in Word for Mac

For me it is at Preferences > General > Automatic Alt Text (Word 16.30 at the moment)


iTunes 12: Is there a way to increase album art size in the Album View

I have the same question but no solution.

Someone somewhere advised an app: Swinian. It has the slider for changing the artwork. Very nice app. one month free trial.

Other (obvious)workaround is changing the screen resolution. I use an app Switchres.Easy and fast but ofcourse it changes the resolution everywhere and not just iTunes album view.

It works but not ideal or perfect.


Does the MacBook Air Support 5.1 Surround Sound

Not natively, no. The headphone jack is a standard TRS with no optical component.

You can buy a USB sound "card" with 5.1 audio output such as this one:

http://www.amazon.com/Zalman-ZM-RSSC-External-Sound-Card/dp/B0001OZ2K8

That's just the first one I found, so a little more market research might be in order. Something similar to it should get the job done though.


How to open a new blank document in Pages from spotlight?

Part of the problem can be eliminated by selecting a default template in the Preferences.

Then, when opening from Spotlight or Alfred, a click on the new document button opens your default template.  [Blank in the case of the setting shown above.]

Then, one could create an Automator or Applescript workflow that is attached to a service evoked by a keystroke combination.

Edit: OP @Rusl added this Applescript to a keystroke combination.

tell application "Pages"
  activate
  make new document
end tell


why does my iMac has two IP addresses registered?

I have 4 IP addresses on some of my Mac's network interfaces since I set them up in network preferences control panel.

You could go there and delete all un-needed IP addresses or at least know it's not something that was intended.


Full screen application causes screen saver to not start (Lion)

A workaround would be to assign a Hot Corner to start the screen saver. To do this, go to System Preferences > Desktop & Screen Saver > Screen Saver > Hot Corners… and select "Start Screen Saver" in the drop down menu of your choice.

(Side note: Hot Corners is also accessible from the Mission Control prefpane.)


I was getting the above error and a suis premount dissented error. I was eventually able to mount it by with:

sudo /sbin/mount_ntfs /dev/disk3s1


how to opn jnlp files automatically after download

You could try this

right click a jnlp file
chose "Open With"
select "Other"
navigate to "System", "Library", "CoreServices"
scroll the list and pick "Java Web Start" (you may need to chose "Enable All Applications" in order to make that choice possible.
tick the "Always Open With" box.

It is not recommended to have a generic set up to open files downloaded from the web.

But you can set up a exception.

Specify the Folder for the jnpl files download.

Then create a Folder action to

1- monitor for new files

2-open them


The message is self explanatory. iCloud for photos syncing is "on". You should access the photos using iCloud for Windows and iPhone's Photos.app.

https://support.apple.com/en-us/HT204283
https://www.microsoft.com/en-us/p/icloud/9pktq5699m62?activetab=pivot:overviewtab

See these for more info.

https://support.apple.com/en-in/HT205323
How to download orginal photos from iCloud Photo Library to PC?


How can I open certain links in Google Chrome, which is not my default browser?

I don't have or use the app but I believe Choosy can do this for you. You configure it to be your default browser, and via rules you set within Choosy determine which actual browser it then hands the URL off to.


AMFI: allowing exception handler - because the handler was set by master-entitled process ´launchd´, VirtualBox

I found my problem!

I was using in VirtualBox 5.1.14. Type:Mac OS X and Version:Mac OS X 10.11 El Capitan (64-bit) the problem raise up!

But using Version:Mac OS X (64-bit) works perfectly.


The only way I've ever seen this done on OS X is via the Fluid app. Fluid is just a WebKit wrapper around a specific URL and without the browser navigation tidbits in the windowing. It presents the website as an "app" but it's still running in a browser window, albeit one with fewer decorations.

  Fluid lets you create a Real Mac App (or "Fluid App") out of any website or web application, effectively turning your favorite web apps into OS X desktop apps.

It's free to use but for $4.99 you can get some features that make it a little cooler. Most importantly you can get per-instance cookie stores so you don't cross-pollute your apps.

I used to use it for Fogbugz and it was alright. Not great, but decent. And I used to get all kinds of questions about the Fogbugz icon in my dock from my colleagues. It's still possible to click away from the main app in the Fluid-ized version of it, leaving you on an unintended web page with not a lot of nav options to get back to the main app. That was probably my biggest gripe with it.


Repair an exFAT drive on Mac OS X after it's been improperly disconnected

I've been having the same problem with my 128GB thumb drive. Turns out, it just takes a while (10-15m) for it to appear in Disk Utility, almost certainly on account of its size. Running First Aid after that gives me no errors (though it takes a similar amount of time to run). Try waiting longer next time, and avoid disconnecting the drive without ejecting first.


You are basically correct. Information about the APTicket can be found here, and SHSH information can be found here. And here is a slideshow from iH8sn0w from JailbreakCon in 2012 that describes everything else that you could ever want to know about the process. The JailbreakCon link has a list of all talks and links to their videos and/or slides (if publicly available) should you be hungry for even more information.

As far as actually how the nonce is generated, the bootloaders have been dumped, but they're proprietary and protected by copyright law, so publishing their contents is illegal. You can, however, dump them yourself, and investigate on your own.


Intermittent DNS drops with Mavericks 10.9.1

This is not a solution, per se; but possible further refining of the problem.

I have an iMac 7,1 4GB with 3 different external system drives - 2 10.9.1 (1 primary, 1 backup) and 1 10.6.8.
The 10.9 I used as primary system started dropping the wifi connection randomly; but repeatedly.
Running a ping in terminal made no difference; neither did downloads in progress.
I even moved the router to 2 feet from the computer and there are times the computer does not even SEE it.

It DOES NOT happen with either the backup 10.9.1 or 10.6.8.

Tried running Wireless Diagnostics - not sure what to look for; but logs just say dropped.

I tried reinstalling 10.9 on primary (without initializing drive) - no joy, so just doing a basic reinstall hasn't help me.

I have either downloaded/installed something or parts of the communication framework have been corrupted somehow. Whatever it is, it is something that is not repaired with a basic reinstall or something that the diagnostic tool makes obvious to me.


Ability to give away iOS application, usually for sale

No. Apple allows for only a very limited number of promo codes for the lifetime of an application (versions 1.0 - n.0). The exact number escapes me at the moment but somewhere around 100 comes to mind. You are allowed to have more beta testers, but that requires manual management of every user and isn't scalable should you need to go beyond your limit.

At the same time, there are pricing strategies you are free to implement, like free for the first 30 days, holiday and back-to-school sales, and the like.


How do you create an OS X ISO if you already have access to an iMac?

The only option you have is to have your friend download the installer and create a ISO image. The other options are p2p.

However, when you click 'I Agree' on the EULA, you are stating that you have a legal license, i.e the VM running OS X is hosted on a Mac.


Turn on a iOS hotspot without 3G connection

In short, No.

The iPhone's hotspot only works with your carrier, 3G, 4G etc, it doesn't operate over Wifi.

I've never Jailbroken, so I don't know if that would help.


What is the correct way to use an iPhone and iPhoto and PhotoStream?

Photostream will store the previous 30 days worth of photos automatically. That means, every photo you take on your iOS devices will be sent to Photostream, but only the last 30 days worth of photos will be available there.

If you enable 'Automatic Import' of Photostream in iPhoto (Preferences > Photostream > Automatic Import) then when you launch iPhoto, it will automatically download a copy of any photos that are in your Photostream, and automatically create an Event titled: {MMM YYYY} Photo Stream (eg. "Jul 2012 Photo Stream")

This Event will be automatically kept up to date, as long as iPhoto is open long enough to sync everything required (depends on your connection).

In effect, as long as you open iPhoto once every 30 days and leave it open long enough for your Photostream to be imported, you should never have to manually import a photo from your iOS device at all.

As for removing items from your Camera Roll on your iOS device, as long as you see that they are present in Photostream (or in iPhoto), then it is safe to delete them from your device. (There is no way around this but to do it manually as far as I know.)

Currently, Photostream does not support videos. To import videos, connect your iOS device to iPhoto and import these manually.

As a side note, in order to keep some photos on the device, you can create a smart album in iPhoto along the lines of "Photos taken within the last 30 days" or "Photos rated 4 stars or more", and configure iTunes to sync these to your device. That way, you can be sure that no matter if you clear your Camera Roll on your device, or delete certain photos, you maintain some convenience.


Share iPhone internet connection with entire network through router

I'm no network engineer, but I found that this could most easily be accomplished with two routers. One that can be configured as a repeater, which will connect to the iPhone's wifi access point, and another that will just treat the first router as "the internet":
Internet --(3G/4G)--> iPhone --(Wifi)--> Router 1 in repeater mode --(Ethernet)-->[WAN socket] Router 2 ==(Ethernet, Wifi)==> Additional devices

Connect to your iPhone's wifi as usual with your computer, and write down the gateway address and subnet mask that your computer's wifi connection gets assigned (e.g. in advanced wifi settings on macOS). In my case it was 172.20.10.1/255.255.255.240 -- the iPhone's own address.

Configure router 1 as a repeater, which includes providing it the iPhone's wifi name and password that it should use to connect, as well as the IP address and subnetmask it should use on the iPhone's own wifi network. My subnet mask ends in 240 meaning I can choose from addresses 172.20.10.0-172.20.10.15. After excluding the special case 15 I chose 172.20.10.14 so as to minimize the chance of a collision with addresses that the iPhone might assign to new devices on the network.
The iPhone's shared network should now be extended to router 1's ethernet ports, with the iPhone acting as the DHCP server and gateway.

Since the network on router 1 now depends on the iPhone for dynamic assignment of addresses, I needed another router in order to create a stable LAN if I want to avoid having to manually configure the address of every single device in the network when the iPhone is not connected. Router 2 just operates as usual, creating its own LAN and providing DHCP on it.
The iPhone will act as the ISP and assign router 2 an "external" IP (in my case 172.20.10.10) as soon as router 1 connects to the WAN socket of router 2.


If you have a large library, it will take a while for it to get the contents over Home Sharing, particularly depending on the wireless connection speed. Home Sharing is the expected way to do what you're trying to accomplish, simply let it finish doing the initial library transfer. If it's not giving an error, saying it is unable to connect or activate Home Sharing, then it is working.

The other options would be to sync the music to the iPad (wired or wirelessly), use iTunes Match to get the content directly (it, too will have to load the library data like Home Sharing does), or use a third-party method of sharing content from the computer to the iPad (like Plex).

It's also possible you're encountering network errors of some sort if you are receiving an error message of any kind (or if it succeeds but just takes a crazy long amount of time). It may help to review http://support.apple.com/kb/TS2972 or http://support.apple.com/kb/TS1629, depending on your network setup. Home Sharing requires UDP port 5353 to be open, which normally should not be an issue inside your network unless you have a very unusual setup.


Note that iTunes Match is fairly precise in how it matches songs.  A unique recording will probably be uploaded, not matched -- certainly, if the unique recording has a different length than the standard ones, it won't be matched.  If you are willing to potentially lose $25, get iTunes Match and see what is matched.  If stuff that you want to be uploaded is matched instead, don't use iTunes Match.


How to make Finder search within the contents of files

I'll put some pictures to the reply answers given.

Add something to the search field to get the search options to show up. I just used a space in this example.
Click the + button to the right of save.

Choose contents from the left drop down menu and then type in your search term. You may need to clear out whatever you added in the main search field to not limit your results.

You can instead type content:search term in the main search field.


You haven't specified your Brother printer, but there is a known issue that affects how some of Brother's printers communicate with macOS systems. When I say it's a known issue, you'll be hard pressed to find it documented in writing, although you will have this confirmed if you get the right Brother support person on the phone.

There are some workarounds you can try, but these are not guaranteed to work 100% of the time. The only option I've found that will work 100% of the time (based on my experience with a limited number of networks using Brother printers), is to disable IGMP snooping. However, if your modem/router does not provide configuration settings for IGMP, then you'll have to purchase one that does.

So, your options are:

Disable IGMP snooping if your modem/router supports this
Try connecting to the Brother printer using CUPS (i.e. do not use AirPrint when you add the printer to macOS)
Use your modem/router to allocate a static IP address to the printer (using the printer's MAC Address1 to identify it) and also configuring the printer's network settings to give it the IP address you've set at the modem/router end
Connect the printer via USB cable instead of Wi-Fi to your MBP when printing

If you still get no joy, then your best bet (assuming you want to keep using the Brother printer) is to purchase a modem/router that supports IGMP and ensure you disable IGMP snooping.

Regardless of what you opt for, I strongly suggest you actually reset the printing system on your MBP before trying each of the above options. To do this:

Got to Apple > System Preferences
Click on the Printers & Scanners preference pane
Right-click on the list of printers on the left-hand side and select Reset printing system...
At the next prompt, click on the Reset button

Remember: Make sure when you add the printer back that you use the CUPS option and not the AirPrint option. (Don't worry, you should still be able to print to your Brother printer from your iPhone and iPad).

1Not to be confused with your Mac computer. See MAC address for more info. You can obtain your printer's MAC address from its configuration menu.


Remote Desktop 10.2.3 Database Creation Error; 10.2.1 runs fine; 10.2.2 crashes: how to find actual cause(s)?

For some reason, it looks like the new versions don't like some formats of the old application library. I made my work again after rebuilding the data in the library, forcing a kind of fresh install:

Delete the faulty app. (Microsoft Remote Desktop)

I rename the folder com.microsoft.rdc.macos
inside directory /Users/myusername/Library/Containers/ to something like old_com.microsoft.rdc.macos

e.g.:

mv /Users/myusername/Library/Containers/com.microsoft.rdc.macos /Users/myusername/Library/Containers/old_com.microsoft.rdc.macos

Reinstall Microsoft RDC and test.

If everything works fine, you can go back and delete the moved folder to just keep it clean. In my case Users/myusername/Library/Containers/old_com.microsoft.rdc.macos

Note: I bet if you only execute the step 2, while the application has been closed, it will work.


12" MacBook (early 2015) problems with ethernet adapters toUSB type c

Here's how I troubleshoot a device over USB with the MacBook:

Open System Information
Select the USB section (it's in hardware)
Expand all the triangles to see all the connected devices.
Open Network system preferences (since you want to see an ethernet port appear)
Connect the device and watch for changes. After 60 seconds, refresh the System Information window if it doesn't self-refresh.

If you see the device connected in System Information but no network interface, you can try adding the interface explicitly. If that doesn't work, you would contact the vendor to see if/when their drivers are included with Apple's OS or if you need third party drivers. Or you could return the adapter and get a Belkin or kanex adapter, both of which work out of the box with all models of MacBook and Pro with USB C.

Also, consider upgrading to 10.12 if you don't have a good reason to not get the latest and greatest drivers direct from Apple.


MacBook Pro 2011 miniDisplay port VS Hdmi - Best Adapter?

Your MacBook Pro is officially capable of displaying an external resolution of 2560 x 1600 pixels. Using a HDMI cable is not going to improve on this.

As far as the type of MiniDisplay port > HDMI adapter you opt for, we can't comment on one of those cheap HDMI adaptors you can find on Amazon as there are countless cheap adapters around and you'd really have to specify a specific model. However, what I can tell you is:

You don't need to buy the more expensive Apple one.
You should opt for a reputable well known brand if you're not going to buy an Apple one, not just a cheap and nasty brand you've never heard of before, as the quality of cable/connector can make a real difference.


As of Mountain Lion, Google Chrome has asked for permission to view my contacts. Does this mean that it has likely had unrestricted access before?

To turn this off and eliminate the error messages, you can do the following:

Click the Chrome menu  on the browser toolbar. Select Settings.
Click Show advanced settings and find the "Passwords and forms" section.
Click "Manage Autofill Settings"
Deselect the "Include addresses from my Address Book card" checkbox.


osascript is a tool to execute AppleScript within a shell/script.

Here is Apple's introductory guide:
https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html

Additionally, you can open Script Editor.app (in /Applications/Utilities if your on OS X 10.11).  From the menu bar select Window > Library to browse library documentation.


Distribute in App Store from a country without Online App Store?

If Apple accept your enrolment as a Moroccan based developer, you can then distribute your software worldwide through Apple's App Store.


How do I find all files categorized movies on my disk?

In a Terminal, use the following command:

mdfind "kMDItemKind == '*movie'"

This will output the fully qualified pathnames of files in which the metadata stores used by Spotlight classify it as some type of movie.

Example output from a movie taken on my iPhone and transferred to iPhotos on my Mac, one of the lines outputted by mdls is:

kMDItemKind                    = "QuickTime movie"

"QuickTime movie", which have a .mov extension was just one of extension types that showed as "$some_type_of movie". So you will probably see other file extensions as well.


Where are the popcorn time temporary files stored on OS X Mavericks?

I found the answer here.

Open Terminal.app and enter the following command:

open $TMPDIR/Popcorn-Time

This will open the Popcorn-Time storage directory, and from there you can copy the file away to where you want it.

Edit:

Now

open $TMPDIR/Butter

Edit:

Changed again,

open $TMPDIR/Popcorn\ Time


Growl notifications when a user logs in to Minecraft server?

The minecraft server writes a log file into the directory minecraft_server.jar is installed in. From there you can use something like

tail -f server.log |
  while read m_date m_time m_type m_user m_ip m_action m_rest; do
    if [[ $m_action == logged ]]; then
      growlnotify -n Minecraft -m "$m_user logged in at $m_date $m_time" Minecraft;
    fi
  done

Starting this automatically together with your Minecraft server is possible but depends on the way you do start it.

To install this (without going too deep into Unix territory, ask an expert if it fails):

open Terminal.app
change to the directory where minecraft_server.jar is installed by typing cd followed by drag&dropping the folder with the server into the terminal window followed by return
nano mc2growl
write #!/bin/bash and press return (twice)
paste the code from above
press ^X and say Y at the prompt
chmod +x mc2growl
./mc2growl &


Bug with square screen capture in Lion OS X

I tried it in Lion 10.7.1 and can't confirm that issue. Creating two screen shoots (150x150 and 637x637) and both did have the expected size. Checked it with the Preview application.

Do you use a mouse or a touch pad? I find it rather challenging creating a square selection by using the Magic Trackpad. Especially since the size of the selection disappears after a second or so and is replaced by the absolut coordinates.


Does an app's bundle ID change after App Transfer in the developer program and itunes connect?

Yes the app identifier changes and no the bundle remains in your scenario. Unless you copied the information wrong from the portal, 5E4D3C2B1A.com.company.app is what you’ll ship next iteration.

When you submit and the app goes to sale, only the Team ID part of the app identifier will change and you’ll have the one time loss of keychain data the app stored.

This could be minor or major depending on how the app was designed.

https://developer.apple.com/library/ios/technotes/tn2311/_index.html#//apple_ref/doc/uid/DTS40014135-CH1-A_ONE_TIME_LOSS_IN_KEYCHAIN_DATA_WILL_OCCUR_IF_YOU_SWITCH_YOUR_APP_ID_PREFIX

If you have thousands of users or can’t be sure you are safe after talking to the previous Dev or inspecting the code, you might burn one of your paid support incidents with Apple to review the code and be sure you’re safe to go with the change.


Go to Settings > General > Date & Time Untoggle "Set Automatically"
Manually set the date a year or two in the past
Open "Photos"
Select "Albums"

If, like me, you had already cleared out everything from the
Camera Roll and "Recently Deleted" folder, you'll smile to see that
your "Recently Deleted" folder now has thousands of images back.
Those are your phantom photos Open it, "Select" and start deleting
Return to "Date & Time" and fix your clock

Now, go back into Settings > General > Usage > Storage > Manage Storage. You'll notice your Photo & Camera is empty if you deleted everything


Golden Rule of Backups: Keep it simple!

Swapping disks and storing one of them off-site is a good backup strategy. But it also means that there are some manual steps every time you swap disks and sooner or later you will get it wrong. To avoid unnecessary data loss you don't

use one external backup drive for several computers
mix backup and other use on the same disk

Given the low costs of adding two additional hard disks to your pool I don't think it's worth the risk to avoid these costs.


How can my Windows 10 connect to 'Personal Hotspot' of my iPhone automatically

The problem is with the iOS Personal Hotspot feature. By design, the network is discoverable only when the Hotspot screen is open. This means that your PC can't find the network when waking up/rebooting. Unfortunately there seems to be no workaround, I was looking for the same thing for my old car stereo, and I ultimately ended up getting a dedicated personal hotspot for it.

The only workaround is to open the Personal Hotspot screen every time you restart/wake up the PC.


How can I make preview stop wrapping around when paging?

As discovered, this issue currently only exists with Preview when the Key Repeat slider on the Keyboard tab of the Keyboard pane in System Preferences is set to Fast, where the slider is all the way to the right. By default it's one position from the right.
This is a workaround solution that sets the Key Repeat slider to the default position when Preview is activated, and to Fast when it's deactivated, (i.e. given/lost keyboard/mouse focus).
It uses the third-party application Hammerspoon along with a bit of Lua code to watch for Preview being activated/deactivated, and an AppleScript script using UI Scripting to adjust the Key Repeat slider on the Keyboard tab of the Keyboard pane in System Preferences.
The example Lua code and exampleAppleScript code, shown further below, was tested under macOS High Sierra and macOS Catalina with Language & Region settings in System Preferences set to English (US) — Primary and worked for me without issue1.

1  Assumes necessary and appropriate setting in System Preferences > Security & Privacy > Privacy > Accessibility have been set/addressed as needed.

Note that the download and install instructions assume Safari and default preference [√] Open “safe” files after downloading checked.

Download Hammerspoon

https://github.com/Hammerspoon/hammerspoon/releases/latest

Click the Hammerspoon-n.n.nn.zip link.

Install Hammerspoon

Open the Downloads folder and drag and drop the Hammerspoon application bundle into Applications.

Before you open Hammerspoon, add it to: System Preferences > Security & Privacy > Privacy > Accessibility

Open Hammerspoon from Applications or Spotlight, then:
From the Hammerspoon menu,  on the menu bar, click it, then click Preferences…, and set them as follows:
Hammerspoon Preferences
Behavior:

[√] Launch Hammerspoon at login
[√] Check for updates
[ ] Show dock icon
[√] Show menu icon
[ ] Keep Console window on top
[ ] Send crash data (requires restart)

Accessibility: Accessibility is enabled. Your all set!
         Enable Accessibility (Should be grayed out.)
Close Hammerspoon Preferences.

Adding the Lua code to Hammerspoon
Open the Hammerspoon configuration file by clicking the Open Config command from the Hammerspoon menu,  on the menu bar.
Add the example Lua code to the init.lua configuration file and save the document, then close it.

Example Lua code:
function applicationPreviewWatcher(appName, eventType, appObject)
    if (eventType == hs.application.watcher.activated) then
        if (appName == "Preview") then
            local asFile = "/.hammerspoon/Scripts/ChangeKeyRepeatValue.applescript"
            local ok, status = hs.osascript.applescriptFromFile(os.getenv("HOME") .. asFile)
        end
    end
    if (eventType == hs.application.watcher.deactivated) then
        if (appName == "Preview") then
            local asFile = "/.hammerspoon/Scripts/ChangeKeyRepeatValue.applescript"
            local ok, status = hs.osascript.applescriptFromFile(os.getenv("HOME") .. asFile)
        end
    end
end
appPreviewWatcher = hs.application.watcher.new(applicationPreviewWatcher)
appPreviewWatcher:start()
-- appPreviewWatcher:stop()

Adding the AppleScript script to Hammerspoon
In Terminal:
mkdir -p ~/.hammerspoon/Scripts
touch ~/.hammerspoon/Scripts/ChangeKeyRepeatValue.applescript
open ~/.hammerspoon/Scripts/ChangeKeyRepeatValue.applescript

Close: Terminal (Assumes no errors from previous commands.)

In Script Editor:
Add the example AppleScript code, shown below, to the opened ChangeKeyRepeatValue.applescript document, then save it, and close the document.
Close: Script Editor
NOTE: With that done, you can now click the Reload Config command on the Hammerspoon menu,  on the menu bar.
This should now toggle the Key Repeat slider on the Keyboard tab of the Keyboard pane in System Preferences as Preview is activated/deactivated.

Example AppleScript code:
--  #
--  # NOTE: Hammerspoon does not allow the use of the
--  #       AppleScript line continuation character.
--  #       Therefore code must be written in long form.
--  #       It also doesn't like the use of some characters
--  #       such as symbols for modifier keys and others
--  #       in comments and possibly in code as well.
--  #
--  # ChangeKeyRepeatValue.applescript
--  #
--  # Change the value of Key Repeat on the Keyboard tab
--  # of the Keyboard pane in System Preferences.
--  #

--  # Check to see if System Preferences is
--  # running and if yes, then close it.
--  #
--  # This is done so the script will not fail
--  # if it is running and a modal sheet is
--  # showing, hence the use of 'killall'
--  # as 'quit' fails when done so, if it is.
--  #
--  # This is also done to allow default behaviors
--  # to be predictable from a clean occurrence.

if running of application "System Preferences" then
    try
        tell application "System Preferences" to quit
    on error
        do shell script "killall 'System Preferences'"
    end try
    delay 0.1
end if

--  # Make sure System Preferences is not running before
--  # opening it again. Otherwise there can be an issue
--  # when trying to reopen it while it's actually closing.

repeat while running of application "System Preferences" is true
    delay 0.1
end repeat

--  # Get the name of the frontmost application.

tell application "System Events"
    set appName to name of process 1 whose frontmost is true
end tell

--  # Open System Preferences to the Keyboard tab of the Keyboard pane.

tell application "System Preferences"
    reveal anchor "keyboardTab" of pane id "com.apple.preference.keyboard"
end tell

--  # Change the value of Key Repeat as coded.

tell application "System Events"
    tell application process "System Preferences"
        set i to 0
        repeat until exists slider 2 of tab group 1 of window 1
            delay 0.1
            set i to i + 1
            if i > 30 then return
        end repeat
        if appName = "Preview" then
            set value of slider 2 of tab group 1 of window 1 to 6.0
        else
            set value of slider 2 of tab group 1 of window 1 to 7.0
        end if
    end tell
end tell

delay 0.1
tell application "System Preferences" to quit

Notes:
As currently coded, it assumes when Hammerspoon is first loaded that the Key Repeat slider on the Keyboard tab of the Keyboard pane in System Preferences is set to Fast and Preview is not frontmost.
It is normal to see the System Preferences icon on the Dock bounce once briefly showing the open indicator under it when Hammerspoon sees that Preview has been activated/deactivated. It's running the AppleScript script to change the position of the Key Repeat slider on the Keyboard tab of the Keyboard pane in System Preferences. This on my system takes less than a second. If I can find a way to programmatically behind the scene make this change without having to use UI Scripting with AppleScript I will update the code and notify the OP.
There is an issue with this workaround when manually clicking on System Preferences in the Dock when Preview is frontmost. To manually open System Preferences from the Dock when Preview is frontmost you need to set focus away from Preview first before clicking on System Preferences in the Dock. The behavior when Preview is frontmost and  manually trying to open System Preferences from the Dock results in System Preferences being opened and closed, bouncing on the Dock, without further user interaction. (I'll see what I can do to resolve this issue, although I think it's a nature of the beast type bug that one will just need to be aware of and live with for the benefit of what this solution provides.)
I am not affiliated with the developers of Hammerspoon, just a satisfied user of the product.

Note: The example Lua and AppleScript code is just that and sans any included error handling does not contain any additional error handling as may be appropriate. The onus is upon the user to add any error handling as may be appropriate, needed or wanted.


How do I set it so Apple Notes checklist items don't move when completed?

Found it.

Settings > Notes > Sort Checked Items > Manually


Use AirPods with the Vonage Phone service on my Mac

If the headphones work with FaceTime and other audio apps then you can conclude the program you’re using for Vonage need some set up or you need to find a different program that respects the capabilities of macos to switch between multiple sound in and out options.

You have done all you can by using the sound preference pane to select a  choice and it’s up to the third-party software to respect your choices.


How can I make a macOS Mojave bootable USB installer in Windows 10?

It is generally not possible to create a macOS bootable installer using Windows or Linux computer.

You can consider installing macOS via Internet Recovery.


Facebook not showing map for places anymore on iPad

I am not really sure if this is the case but sometimes Facebook tests new features and GUI with some users, often without notification. I haven't heard of that being done with places, but it is the only thing I can think of.


Defaults utility: how to get xcode project info

I didn't know that the domain parameter is a full path to a file with .plist extension

So, the correct way to pass parameter domain which points to specific project is this:

> defaults read ~/FULLPATHTOPROJECT/Project.plist

But I will glad to see your answers of defaults-utility best practices


How to disable Location Services using Siri?

Siri is currently unable to enable/disable Location Services. You'll have to use Settings.


If the connector is 'ripped out', the only way to access the data would be to 1) hope the internals are still intact after all that falling--and other--damage, and 2) find another iPhone 4s, and transfer the 'old' inner stuff to the new phone and go from there. This is not a trivial operation (see the iFixit guides), and I would only attempt this if 1) the data is irreplaceable, and 2) you have familiarity with such work.


Sync Outlook mails with iPad 2 via iTunes or any without Internet connection?

I think there is no ways, and I found this for u. http://office.microsoft.com/en-001/mac-outlook-help/some-outlook-items-aren-t-synchronizing-with-other-mac-applications-HA102928388.aspx?CTT=5&origin=HA102928396


Can I play audio from my iPhone on my Mac?

Simple, and simply surprising:

First, check that you have enabled the iPhone/iPad as an audio input device in Audio Midi Setup.app:

Plug in your iPhone to your Mac using your Lightning Cable (doesn't work with 30 pin iPhones, sorry. [Yes I know you said 3GS])

Launch QuickTime Player

Choose File> New Audio Recording

Click the hard-to-see down arrow next to the Record 'button', choose iPhone under 'Microphone'

Play your music, game whatever on your iPhone, sound will come thru your Mac.

No need to hit record, the sound will play even if you don't record. Just turn up the volume.

Note: for those who want a louder volume, go to the system preferences on your Mac. Then go to the sound settings and you can increase the output volume so it is louder.


Do MacAlly keyboards require drivers to function?

I severely doubt that you will need any drivers to make it work out of the box, as nearly all keyboards are just plug-and-play with the Mac, although it seems with this one you only need install drivers if you want to activate volume control and eject functionality. (if it's any help, the driver is located here). This driver appears to be rubbish, not very friendly and unreliable, so if volume control and eject keys are important to you, and you really want to avoid installing drivers, then you had better avoid this keyboard, in my opinion.

Replacements wise, Apple do great keyboards themselves, particularly the newer slimline style keyboards. These go for about £30-£45 on eBay. They do not, however, come in a wireless form with the numerical keypad, which I know will be a problem for some people.
Apple keyboards come in laptop MacBook layout (wireless), MacBook layout (wired with extra USB port), and MacBook layout with numerical keypad (wired with extra USB port) variations. These all work right out of the box.

If you really want an Apple wireless keyboard with the numerical keypad, you can get help with that here.

In terms of others besides Apple's, I know logitech do some nice ones that work very well, but thats about all I can tell you I'm afraid.

Hope this helps.


Xcode 10 Not Always Jumps to Location of Warning/Error

From Stack Overflow:

  In the left hand panel, click on the "Show the log navigator", its the button which looks like a speech bubble. Now underneath will show the logs for every build. This is like the old Xcode, and will show errors/warnings. When you double click on the errors it will open the file to the line of the error.


No, only purchases that are not Tier 0 (Free) will cause an email to be sent.


How to remove disabled Google account from Macbook?

One simple means would be to make a new user account on the Mac.

You can verify the undesired account isn't in the systems preferences and then start using the google services you wish.

If the accounts are still tied together, you know it's coming from google and the servers in the "cloud" and not your settings.

If everything is good on the new account, then start going app by app and removing saved passwords, saved accounts, cookies and session caches until you clear up all the automation you have accumulated for the old and now undesired account.

App by app might start with: Safari, Keychain, Chrome, System Preferences (accounts)


Please explain: are you attempting to update your TV's firmware? If so, check the TV's manual - I'm pretty sure it's done by loading from your Macbook to a USB drive. HDMI over ethernet is a system built to provide  a digital television signal over two cat5 cables. It requires extra hardware on each end, and is quite likely not what you are looking for.
If all you need is that internet connection, go to the "Sharing" preferences and turn on internet sharing by sharing your WIFI connection and checking the Ethernet box. Now connect the laptop and TV's ethernet ports.


Black screen when using 4 ram sticks on brand new iMac 5K

Not all RAM is created equal. The way motherboards handle things is radically different. For example where an ASUS PC motherboard might take mismatched RAM, the iMac will not. To ensure compatibility use RAM that has the same:

Clock Speed
Voltage Requirement
Latency timings

It's best to buy identical RAM sticks. They should be the same manufacturer and the same model number. Occasionally even RAM with the same model number can have different modules on the chip. (This is very rare )

Can you update your question with details about the Manufacturer, Model number, Clock speed, voltage Requirement, and latency timings of your RAM?

UPDATE:
According to the Apple website, the RAM you bought should be compatible:
https://support.apple.com/en-us/HT201191

Might be time for the genius bar.


In Mountain Lion how do I set, in one place, the PATH environment variable for all newly launched applications?

After many trials with different options I conclude:

Is there a unified way to set the PATH for applications launched by different means (like shell script, Finder and Spotlight)? Well, yes and no:

No: Setting PATH in shell start up scripts (e.g. .bashrc) works only for apps launched by shells.
No: Setting PATH for the current launchd process via launchctl setenv PATH <...> does not work for me at all.
Yes: Setting PATH in /etc/launchd.conf (and restarting the system) will make the appropriate PATH visible in  applications launched by Spotlight, Dock and Finder and subsequently (local) shells.
No: Remotely invoked shells do not inherit the environment. (See ...why do remote shells via ssh do NOT inherit the environment..)

Notes for set-up of shells:

For correct functioning in local shells it is important to switch off the use of /usr/libexec/path_helper, because the default paths in /etc/paths might change the order of the paths in PATH.**
To accommodate remote shells you need to re-import the launchd environment into the shell. Use something like this in your .bashrc:

# the vexatious path stuff
eval $(launchctl export)

Unfortunate consequences of the whole issue are:

No way to have these unified settings on a per user basis. (~/.launchd.conf does not work.)
No easy way to construct the PATH from different sources using techniques like home directory expansion et al.


When running 10.7.5 and using Google Chrome I cannot change the name of new folders created using bookmark manager

I would highly advice against re-installing chrome.

What I've found is that this feature is hidden and not very intuitive, but it's there. All you have to do, believe it or not, is:

Open Bookmark manager (Ctrl+Shift+O)
Click on the name of the folder(right above your google icon)
Rename to your liking

For the official instructions.

That's it. You can't hit F2 when a folder is selected, which is a mystery to me. Renaming can also be done in a more painful manner through the bookmarks bar:

Open Bookmarks Bar (Crtl+Shift+B)
Right click on the folder
Choose rename

These are the only two ways about it to my knowledge.


I connected my iTunes account to another computer, and it's only showing purchased music? Where did my music go?

You have to copy the music from the other computer (by flash drive or from a backup disk)
iPhones and iPods are doesn't allow to transfer music from device to computer


Is there an app available from the App Store (iOS) to find out the LAN speed?

If you want to measure the speed (bandwidth) between your iPad and your PC, take a look at iperf.  It is available for computers and there are versions on the App Store for iOS too (the one I use seems to have gone away, but searching the App Store for "iperf" reveals several possible options).

You run an iperf server at one end (eg the PC), and a client at the other (eg the iPad).  It runs for a configurable amount of time (I think the default is 1 minute), and then tells you how much data it managed to transfer.

Compared to eg copying a file, the figures you get this way are a more accurate reflection of the available network speed, because copying a file requires retrieving the data from a hard drive, writing it at the other end, sending acknowledgements, the overhead of the file transfer protocol etc... iPerf is simpler than that: it just transfers data as fast as it can.


"A descriptive string set at run-time. Don't localize."?

It appears to be an internal testing message for localization. Are you using a beta version of Safari? or have you in the past? It may be a case of resetting safari content if so.


How can I restore Spotlight to menu bar?

Just to make an official answer.

User M K referenced an article in osXDaily that explains how to both hide and un-hide the Spotlight icon.

  Show the Spotlight Menu Again

  Getting the Spotlight icon back is a matter of bringing the permissions back to their default setting in OS
  X. Go back to the Terminal app by relaunching it from
  /Applications/Utilities/, and then enter the exact command syntax
  below: sudo chmod 755
  /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search

  Hit the return key, then follow this up with killing the
  SystemUIServer process again: killall SystemUIServer The system menu
  bar will refresh, and the Spotlight menu will be visible again.

I just tested this on OS X Yosemite 10.10.5 with success.


Keyboard's brightness controll buttons are disabled

According to OS X Daily, it's because your light sensor is detecting that you are in too bright of an environment to use the backlit keyboard. Try moving to a darker area, or covering your light sensor to see if it then lets you turn it on.


You can hold down the keys [cmd] + [r] while the mini is shut down and then push the power button. This should lead you to the recovery via the Mac App Store.

Take a look at:

http://support.apple.com/kb/HT4718?viewlocale=en_US&locale=en_US


Two computers to one new one using time machine

(It probably goes without saying, but I haven't actually tried this myself. YMMV. Make backups before you start this. Use at your own risk, etc.)

You probably can, but if there are conflicts between them, one of them will have to be the designated 'winner'.

The easiest way to do this is probably to run /Applications/Utilities/Migration Assistant.app twice. Whichever one you run last will overwrite any of the existing settings from the other one.

A more complicated way to do this would be to use rsync to move the files to the same destination, however it should be noted that rsync is one of the Un*x tools which is hugely powerful and very easy to misuse to disastrous effect. Be sure that you have a separate backup of these files before you try to use rsync on them.

A third option would be to use Transmit which has the ability to move folders and merge them. You'll have to decide which one 'wins' but it’s probably a more granular approach than Migration Assistant without getting into the complexity of rsync.


In iOS 8.3, Apple revoked the user's ability to access a downloaded app's files (Documents & Data). Further, third party apps don’t natively provide a way to delete their "Documents & Data". It's an inconvenient feature in the OS, yet it exists, even from the beta stages.

However, in an attempt to defend Apple, this could have been an extra security measure to prevent users from hacking apps. Another possibility is that the cleaning apps you mentioned are simply not up-to-date with the new OS.

Sadly, you will have to delete the app off of your iDevice, and reinstall it, to remove any app data. You can do this either from the iDevice itself, or using iTunes on a computer.

You could jailbreak your iDevice which would give you access to multiple cleaning tools, but a jailbreak could be difficult to keep up with. You also don't want to accidentally mess with something serious.

It's a sad but certain truth that apps must be removed and reinstalled. Good luck!


Remove applications from Software Update

Somebody asked about it on Apple Discussion Groups here. The answer is:

For the software update you would like to hide - make sure the full description of the update is shown - click "More..." if needed to show the full description

Right click on the update window.  Select "Hide update"

This will hide the update and it will not show in the App Store Updates Window or counted on the dock icon.

To restore - select "Show all software updates.." which is now shown in the App store "Store" menu.  Then "Reload Page" from the Store menu.


Can't boot up mac stuck in 'No Bootable Device error' Mac Book Pro Late 2011

This is a rare case when no keyboard works to enter the test / reset / restore screens one of two things is happening.

The Main logic board is not able to process keyboard input from any source - you need a repair to the internals.
The USB bus that sends keyboard signals is broken or the physical keyboard is issuing key down commands so fast that the processing is unable to read legitimate key presses. You need a repair to the internals.

Both paths lead to a hardware issue if you can't bring an external USB keyboard to get the system to let you attempt to choose an OS or start internet recovery. There's no third way to get in since you would need the OS to boot and a network to ssh in via a working system and keyboard.


How can you install Windows 7 on a 2017 MacBook Air running macOS Catalina?

Windows 7 has to be installed to BIOS boot. Your 2017 MacBook Air does not have a BIOS in the firmware. Therefore, you can not install Windows 7 on a physical 2017 MacBook Air.

You should be able to install Windows 7 in a virtual machine. VirtualBox happens to be a free product that can be used to run Windows 7 as a virtual machine. Usually the older operating systems run adequately fast in virtual machines on newer Macs.

The latest version of Windows 7 with SP1 can be downloaded from Download Windows 7 Disc Images (ISO Files). You will need a product key to download. This ISO can be installed in VirtualBox without entering a product key, if you want to test before committing. Of course, after a trial period, you would need to provide a product key. VirtualBox does provide all the required Windows 7 drivers, which can be installed after installing Windows 7.


Can Apple Watch Series 2 control Homekit devices with Siri?

Yes, even W original can!
Check this video https://youtu.be/pyQuP5MKsUs @4.05


Removing only birth years from a group in my Address Book

Ok.
   Since you have your group already you group.

set targetGroup to "BD"
tell application "Contacts"
    set thePeople to people of group targetGroup
    repeat with i from 1 to number of items in thePeople
        set this_item to item i of thePeople
        set thisDate to birth date of this_item
        set year of thisDate to 1604

        set birth date of this_item to thisDate
        save
    end repeat

end tell

I tried to set the year to "" . But it changes the whole date. day and month to something else.

So I checked what a yearless birth date 'date' looked like and they all had 1604 in the year position.

setting the year to this seems to work.


Can I configure Mission Control so any space can be summoned on any monitor?

System Preferences → Mission Control and enable Displays have separate Spaces.

Mission Control will show different Spaces on each monitor. To move a space between monitors with this enabled, open Mission Control and drag the space to your desired monitor.


How can I make macOS require my password once per day, before Touch ID?

If you've not already set your security preferences to require a password after some amount of sleep and/or screensaver, there's really no benefit to forcing a login at the beginning of the day - it's been vulnerable all that time and locking it at 6:00am only to be unlocked again for the rest of the day makes it a moot security policy.

But, if you want to force an authentication event every day at 6:00am you'll need to do the following:

write a bash script that locks the computer.  There are two methods...

pmset
CGSession

have that script run every day at a prescribed time using launchd

A note about the scripts/terminal commands

I encourage you to test them out first before handing them over to launchd.  Just type out the command(s) in Terminal to see if they work.
You must set the script to be executable by using the command chmod +x <nameofscript> or this won't work at all.

Using pmset

Assuming that you have "Require Password" after some amount of time after you lock the screen or activate your screen saver, you can use the following command in a bash script to sleep your computer once per day:

pmset sleepnow

The script can be saved in ~/Library/Scripts and can be called whatever you like.  Let's use sleep1.sh for this example

#!/bin/bash
#
/usr/bin/pmset sleepnow

Run that script and your Mac will immediately go to sleep and if you have a password set, depending on the time interval you set, once you wake it, it will ask you for a password.

Using CGSession

This uses the "Fast User Switching" mechanism to lock your desktop.  You can test it out by issuing the following command:

/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

When you execute this command, your desktop will be locked and you should be greeted with a login screen where you have to select a user (if you have multiple) or enter a username and password.

The script, like the previous example can be saved in ~/Library/Scripts and can also be called whatever you like.  Let's use sleep2.sh for this example.

#!/bin/bash
#
# Get User ID
id=$(id -u <username>

# Put the system to sleep but switch to current user
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend -switchToUserID $id

Note: If you intend to do this for all logged in users (if you have multiple users on your machine), change the id line to look like this:

id=$(id -u `whoami`)

This will ensure that the command uses the user id of the currently logged in user.

Using launchd to make this run every day

To get this to run every day, we need to have an daemon kick it off at a prescribed time.  macOS comes with such a tool and it's called launchd.  I go into further detail about it in the post
launchd plist format for running a command at a specific time on a weekday.  However, for our purposes here, we'll use a basic .plist to start this script every morning.  I like to use the file naming convention com.user.XXXX.plist  Replace "XXX" with whatever you like, for this example, I'm using com.user.lockmachine.plist.

Also be sure to reference the script you plan to use, script1.sh or script2.sh

<?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.lockmachine</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/<username>/Library/Scripts/script1.sh</string>
    </array>
    <key>StartCalendarInterval</key>
    <dict>
      <key>Hour</key>
      <integer>6</integer>
      <key>Minute</key>
      <integer>0</integer>
    </dict>
</dict>
</plist>

How do you want to run this daemon?

Where you put the script matters.  See the linked post for more details, but decide if you want this to be for just you or for all users.  Here's a quick summary:

Just you - put it in ~/Library/LaunchAgents
For all users - put it in /Library/LaunchAgents

Then from the directory where you put the newly created .plist, load it using launchctl

sudo lauchctl load com.user.lockmachine.plist

Authenticate away!

You're done.  Once per day at 6AM your machine will be forced to go to sleep or have the session switched (depending on the script you selected) where you'll be forced to authenticate.  There's no point in doing this on login or at boot because if you're this concerned about security, you wouldn't have auto login enabled bypassing authentication.


How to prevent sending of hostname via DHCP?

I was trying to answer the opposite question: why does my Mac NOT send a hostname in DHCP requests.

After discovering that some Macs send hostnames and others do not, I found the cause in my case: spaces in the Computer Name.

For the gory details, see my Server Fault posting. if you don't want your computer to send a hostname, you could put a space or another unusual character in the Computer Name, and that should do it.


I can only suggest that you have a faulty ram. Try installing just one stick of ram to see if it boots.
Have a look at this document. Hope it helps
http://support.apple.com/kb/HT4432


The downloadable version of Windows 8.1 is upgrade only, not full install, the one with the EXE is for upgrading from Windows 7 or 8... the key being from Windows 8 here..

Simple solution, if a little bodgy...

Download the Windows 8 demo here: http://www.soft-zilla.com/2013/01/windows-8-iso-download.html

Then upgrade to 8.1 from that using our EXE file.


Is 65 celsius temperature on a MacBook Pro 2017 okay?

If you're talking about the CPU temperature, then yes 65°C is okay.

The 2017 MacBook Pro 15" model was available with three different CPU's with processor speeds of 2.8, 2.9, or 3.1 GHz.

All three are rated to 100°C for the maximum temperature allowed at the processor die.

See TJUNCTION in the Package Specifications section of the documentation for the Intel Core i7 7700HQ, 7820HQ, and 7920HQ Processors.


The stored passwords for Wi-Fi networks (as well as many other things) are stored in your keychain file.  the easiest way to get stuff out of this is if you have a MobileMe account which has the option to synchronize the keychain, so it will appear automatically just by logging in to MobileMe.

There are 2 drawbacks to this:

You need network connectivity to login, and so if you don't have an available network because you don't have the key you are out of luck,
MobileMe is deprecated, and the functionality is not subsequently available through it's replacement iCloud.

You could always boot from your Time Machine backup, open up the Keychain Access command and export the keys you want.  They will be stored as files within the backup, but are encrypted so not a lot of use. It may be possible to import the keychain if you can find it (I'm not at a Mac right now so can't check for location) and you know the administrator password for the system is came from, but I'll leave that for another user to comment on or provide an answer for.


What photo management application can I migrate to that would preserve iPhoto's face detection data?

I haven't used it yet, but apparently the new Photos app will continue the face detection or 'Faces' work they've had for some time in iPhoto and Aperture:

http://www.cheatsheet.com/technology/how-apple-is-reinventing-iphoto-with-the-new-mac-photos-app.html/?a=viewall


I have had this happen a few times myself.  If I was to guess, at the time you closed you lid on your computer you had the power supply hookup and running. After the lid was closed you removed the power plug.  Later you open the lid, without the power plug and it was a blank screen.  If this is your case, you have two options,

unplug first before closing the lid
plug into power before you open the unit later.

I have found if I give my Mac a few seconds after closing the lid, before removing the power, it will not freeze later when I open the lid.

Still not sure of the problem, just a work around that I found after a little time with this type of problem.


Downloading a previously purchased app to iTunes on another computer

It is possible, there are a few steps required.

The other computer must be authorised to access that Apple ID.

On the iTunes store page on the right hand side, there is a Purchased option, click on this and all previous apps, movies, music, etc purchased will be shown. You can then download it from there.

Apple has a help page about this that can be viewed at http://support.apple.com/kb/HT2519. It is the bottom section.


automating "Reset Advertising Identifier" is it possible?

Example #1 - via Googling

Googling I found this Reddit thread titled: I want to write auto reset script for Advertising Identifier.

The script from one of the replies in that thread is below.

NOTE: I did not test this, am merely sharing it as something that may help steer you in the right direction to ultimately getting a workable solution for you problem.

  FYI, I created a small script for this. It's not perfect, and doesn't
  reliably run in the background, but in case it helps anyone:

-- TODO: make this run reliably in the background...
set isRunning to false
if application "System Preferences" is running then set isRunning to true

tell application "System Preferences"
  activate
  reveal anchor "Privacy" of pane "com.apple.preference.security"
end tell

tell application "System Events" to tell process "System Preferences"
  delay 0.3
  click button "Reset Advertising Identifier" of group 1 of tab group 1 of window "Security & Privacy"
  delay 0.2
  click button "Reset identifier" of sheet 1 of window "Security & Privacy"
end tell

if isRunning is false then
  quit application "System Preferences"
end if

Script appears to be AppleScript.

Example #2 - I made using Automator

This is the first script I've ever done using Automator (be kind). I used the record button and clicked through the steps to construct a Workflow.

Automator Workflow

Once I made he workflow I copy/pasted it into ScriptEditor.

Automator with steps

Copy/Paste from Automator → ScriptEditor

In ScriptEditor I could click the play button to run the script to debug it and see that it was working correctly.

ScriptEditor Play Button

One I had it working reasonably well, I put it into a Bash shell script so that I could run it standalone from a terminal.

And here's the finished Bash script with the osascript embedded within:

$ cat reset_advertisement_id.sh
#!/bin/bash

osascript <<HERE
-- Click the “Apple” menu.
delay 4.598414
set timeoutSeconds to 2.0
set uiScript to "click menu bar item \"Apple\" of menu bar 1 of application process \"Finder\""
my doWithTimeout(uiScript, timeoutSeconds)

-- System Preferences…
delay 1.185682
set timeoutSeconds to 2.0
set uiScript to "click menu item 4 of menu 1 of menu bar item \"Apple\" of menu bar 1 of application process \"Finder\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “View” menu.
delay 4.124994
set timeoutSeconds to 2.0
set uiScript to "click menu bar item \"View\" of menu bar 1 of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Security & Privacy
delay 2.306638
set timeoutSeconds to 2.0
set uiScript to "click menu item \"Security & Privacy\" of menu 1 of menu bar item \"View\" of menu bar 1 of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “Privacy” tab.
delay 4.31466
set timeoutSeconds to 2.0
set uiScript to "click radio button \"Privacy\" of tab group 1 of window \"Security & Privacy\" of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the text “Advertising”
delay 1.997132
set timeoutSeconds to 2.0
set uiScript to "click static text 1 of UI Element 1 of row 12 of table 1 of scroll area 1 of tab group 1 of window \"Security & Privacy\" of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “Reset Advertising Identifier” button.
delay 1.234389
set timeoutSeconds to 2.0
set uiScript to "click UI Element \"Reset Advertising Identifier\" of group 1 of tab group 1 of window \"Security & Privacy\" of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “Reset identifier” button.
delay 1.2831
set timeoutSeconds to 2.0
set uiScript to "click UI Element \"Reset identifier\" of sheet 1 of window \"Security & Privacy\" of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “<fill in title>” button.
delay 1.436771
set timeoutSeconds to 2.0
set uiScript to "click UI Element 6 of window \"Security & Privacy\" of application process \"System Preferences\""
my doWithTimeout(uiScript, timeoutSeconds)

on doWithTimeout(uiScript, timeoutSeconds)
    set endDate to (current date) + timeoutSeconds
    repeat
        try
            run script "tell application \"System Events\"
" & uiScript & "
end tell"
            exit repeat
        on error errorMessage
            if ((current date) > endDate) then
                error "Can not " & uiScript
            end if
        end try
    end repeat
end doWithTimeout
HERE

# REFS
# - https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/AutomatetheUserInterface.html
# - https://apple.stackexchange.com/questions/40944/a-programmatic-method-for-disabling-all-sharing-services
# - https://github.com/herrbischoff/awesome-macos-command-line
# - https://www.macobserver.com/tips/quick-tip/reset-mac-advertising-identifier/
# - https://scriptingosx.com/2018/08/user-interaction-from-bash-scripts/
# - https://www.macworld.com/article/1157370/applescriptsystempreferences.html

To run this:

$ ./reset_advertisement_id.sh

References

https://en.wikipedia.org/wiki/AppleScript_Editor
https://en.wikipedia.org/wiki/AppleScript


Can I install Compass in Yosemite WITHOUT installing Xcode or Command Line Developer Tools?

Compass

Compass shouldn't require the Command Line Developer Tools, just a compatible ruby environment.

I suggest a ruby version tool instead of using the system ruby, so that you can control your ruby version/environment. I favor chruby, but any of these works well and can be installed without needing the Command Line Dev Tools:

chruby
rbenv
RVM

Once you have a ruby env with the version you want you should be able to install Compass from the command line (as detailed on the compass site):

$ gem install compass

Note: the "$" isn't part of the command, just an indicator of the terminal prompt

Command Line Developer Tools

While the above works for Compass, it sounds like you are asking about general package management with OS X as well. Homebrew is a very popular tool for this, but depends on the Command Line Dev Tools. MacPorts is an alternative but has the same dependency. I'm not aware of a package manager for OS X that doesn't depend on the Command Line Dev Tools.

In case you haven't tried one of these methods to install the tools I'm throwing them out there:

Download directly from https://developer.apple.com/downloads/ (you need to login with Apple ID). The URLs provided there may be resumable if the download is interrupted, and may be more reliable than installing without Xcode via the terminal.
Install without Xcode via the terminal:

$ xcode-select --install

Having the tools definitely makes things easier; I personally love Homebrew (and it's offspring Cask) for managing both CLI and GUI packages.


Yes it will work, although it's always better to have the same latency and MHz kits.


Device name in Mac Terminal is a random person's iPhone?

Check your $PS environment variable for setting prompt:

echo $PS1

It might be

"\h:\W \u$ "

If so, your computer name is changed and you can edit it. If not, change it to that form by editing ~/.bash_profile

Also check that you are really on your Mac and not on an iPhone by this command:

uname -m

It should be x86_64 and not iPhone...


Missing HDD space after removing Boot Camp partition

This is a very common question. Generally, the commands below should work.

sudo diskutil erasevolume free none disk0s4
sudo diskutil resizevolume disk0s2 R


Atomic Webbrowser
This is a very advanced web browser with a Download Manager.

Download a file or image in the background.
Simultaneous downloads.
Suspend and resume downloads.


Any way to put Mac mini to sleep remotely?

I'm pretty sure you can do this with a hot-corner and the built-in VNC server. (You would need a VNC viewer for iOS, there are LOTS of them.

You could also create an applescript:
tell application "System Events" to sleep
and run it using the VNC connection.

Alternatively, you can turn on ssh, ssh in, and issue the command:
pmset sleepnow (See the pmset man page)
to put the mac to sleep.

This would require a ssh client for iOS. Again, there are a LOT of them. Personally, I have used iSSH, and it works fine.

As @mankoff stated in a comment, RowMote states in it's store description:

  SLEEP AND WAKE: Put your Mac to sleep by holding the Play button for 3 seconds while controlling any Apple application, just like the
  hardware remote. Rowmote automatically wakes up sleeping machines
  which are connected via Ethernet!


Perhaps not exactly what you were looking for, but if you load Google's main page and it redirects to your local version, you could force it to use .com just by tapping the button on the bottom of the page.


Not an expert on fabrics either, but you can look for a thin microfibre cleaning cloth, similar to the one bundled by Apple with new Macs.

I am not sure if Apple is still bundling it with current generation of Macs.


I know it may seem totally unrelated, but if you have the Pushbullet extension installed for chrome, try disabling "Universal copy & paste".  You may need a restart afterwards.