Why is extracting this tgz throwing an error on my Mac but not on Linux? I'm experiencing a rather odd problem, and I can't figure out what's going on. I have a tgz file, scip-3.2.0.tgz, that is throwing an error when I attempt to unpack it. The error is only occurring on OS X (I'm on 10.10.4). I can extract the file without error on a Linux box running CentOS 6.6. The error occurs when both using the command line tar command and when using the archive utility. I emailed the SCIP mailing list, and I have the same SHA-1 hash as another user (e085a4a3591eddf945dcb365d97d2512c267e374), so there wasn't a download error. They aren't sure what's going on.

Here's the error I get when I try to unpack using the archive utility:

In case the image ever gets broken, the text in the image says this:

  Unable to expand "scip-3.2.0.tgz" into "Desktop".
  (Error 1 - Operation not permitted.)

And when I try to unpack via the command line, this is the output I get. It's the last line (tar: Error exit delayed from previous errors.) that concerns me. I don't see what's causing it. The archive appears to extract without problem, but I don't trust it with that error being thrown.

Does anyone know what's causing this?

[edit]
Looking a little closer at the output, line 1108 contains the error:

x scip-3.2.0/applications/Coloring/Makefile: Can't create 'scip-3.2.0/applications/Coloring/Makefile'

This should help identify what is going on in Johnny's answer, as well as answer the question of why this works on Linux but not Mac.

The problem lies in the fact that Mac OS X uses bsdtar, whereas most Linux systems use gnutar.

You can install gnutar on a Mac with Homebrew, using brew install gnu-tar, which will symlink gnutar into /usr/local/bin as gtar.

If you install gnutar, then you can reproduce the problem using the steps in Johnny's answer.

$ brew install gnu-tar
==> Downloading https://homebrew.bintray.com/bottles/gnu-tar-1.28.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring gnu-tar-1.28.yosemite.bottle.2.tar.gz
==> Caveats
gnu-tar has been installed as "gtar".

If you really need to use it as "tar", you can add a "gnubin" directory
to your PATH from your bashrc like:

    PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
==> Summary
  /usr/local/Cellar/gnu-tar/1.28: 13 files, 1.6M
$ mkdir test
$ touch test/a test/b
$ gtar -zcvf test.tar.gz test test/a # make the archive with gnutar
test/
test/a
test/b
test/a
$ gtar -ztvf test.tar.gz
drwxr-xr-x adamliter/staff   0 2015-07-28 22:41 test/
-rw-r--r-- adamliter/staff   0 2015-07-28 22:41 test/a
-rw-r--r-- adamliter/staff   0 2015-07-28 22:41 test/b
hrw-r--r-- adamliter/staff   0 2015-07-28 22:41 test/a link to test/a
$ rm -r test
$ tar -xvf test.tar.gz # try to unpack the archive with bsdtar
x test/
x test/a
x test/b
x test/a: Can't create 'test/a'
tar: Error exit delayed from previous errors.
$ echo $?
1

So obviously gnutar archives things differently in a way that causes bsdtar to choke on duplicates. The fact that gtar -ztvf test.tar.gz indciates that the second instance of test/a is archived as a link to test/a is relevant. As Johnny points out in the comments, gnutar will store duplicates as hard links rather than the actual file, which can be disabled with --hard-dereference.

That is, you could do the following:

$ mkdir test
$ touch test/a test/b
$ gtar -zcvf test.tar.gz test test/a --hard-dereference
test/
test/a
test/b
test/a
$ gtar -ztvf test.tar.gz test
drwxr-xr-x adamliter/staff   0 2015-07-28 23:49 test/
-rw-r--r-- adamliter/staff   0 2015-07-28 23:49 test/a
-rw-r--r-- adamliter/staff   0 2015-07-28 23:49 test/b
-rw-r--r-- adamliter/staff   0 2015-07-28 23:49 test/a # note that this is no longer a link
$ rm -r test
$ tar -xvf test.tar.gz # unpack with bsdtar
x test/
x test/a
x test/b
x test/a
$ echo $?
0
$ ls test/
a b

However, in this case, you obviously don't control the creation of the tarball, so --hard-dereference is not an option. Luckily, based on the OP's answer, it seems that this problem has been fixed by upstream.

Nonetheless, if anybody else runs into this problem in the future and is in need of a quick fix or has an unresponsive upstream maintainer, there is a workaround.

Once you identify what the duplicate file is, you can use the --fast-read option of bsdtar (note that this option is only part of bsdtar, not gnutar):

 -q (--fast-read)
         (x and t mode only) Extract or list only the first archive entry that matches each pattern or filename operand.  Exit as soon as each specified pat-
         tern or filename has been matched.  By default, the archive is always read to the very end, since there can be multiple entries with the same name
         and, by convention, later entries overwrite earlier entries.  This option is provided as a performance optimization.

So, in the toy example that I've created following the toy example in Johnny's answer, the duplicate file is test/a. Thus, you could avoid this problem by doing the following:

# this set of commands picks up from the first set of commands
# i.e., the following assumes a tarball that was *not* made with
# the --hard-dereference option, although this will work just as well
# with one that was
$ tar -xvqf test.tar.gz test/a # unarchive the first instance of test/a
x test/a
$ tar -xvf test.tar.gz --exclude test/a # unarchive everything except test/a
x test/
x test/b
$ echo $?
0
$ ls test/
a b

Note, moreover, that gnutar is perfectly happy to unpack an archive with duplicates that was created by itself, even when the --hard-dereference option was not used:

$ rm -r test
$ gtar -xvf test.tar.gz
test/
test/a
test/b
test/a
$ echo $?
0
$ ls test/
a b

So this answers your question of why an error is thrown on Mac but not Linux. (Most) Linux distros ship with gnutar, and since the tarball was presumably packaged with gnutar, there will be no error when unpacking with gnutar, but there will be an error when unpacking with bsdtar.

For further reading and reference, one might want to look at What are the differences between bsdtar and GNU tar? on Unix.SE.


Does deleting Mac App Store apps in Launchpad delete related files in the Library folders too? When I delete Mac App Store apps in Launchpad, does it delete related files in the Library folders too? I mean files like preferences, application support files etc.

I tried uninstalling some applications, and files in these folders or the corresponding folders in ~/Library/Containers/ were sometimes deleted and sometimes not:

~/Library/Caches/ (deleted for most applications)
~/Library/Application Support/

Files in these folders weren't deleted for any of the applications I tested with:

~/Library/Preferences/
~/Library/Saved Application State/
/var/db/receipts/
~/Library/Logs/DiagnosticReports/
~/Library/Application Support/CrashReporter/
~/Library/Caches/com.plausiblelabs.crashreporter.data/
~/Library/Application Support/Growl/Tickets/

For example Kindle books or the database for notes in JustNotes were not deleted.

You can see what files are accessed by uninstalld with sudo opensnoop -n uninstalld and search for support files with mdfind $(osascript -e 'id of app "AppName"'). If you want to uninstall applications more completely, it's probably safe to just delete the whole sandbox containers in ~/Library/Containers/.


How to download WWDC 2011 session_310__whats_new_in_instruments I can not download WWDC 2011 session_310 whats_new_in_instruments well. I do not know why.

Other WWDC sessions are downloaded as expected , As you can see

Any Tips?

I guess to inspect element and adjust JavaScript is OK.

I try to inspect the html element

HD Video

and fint the HD resource is demaged . So I downloaded the SD m4v.


Mac OS and Facebook Integration: Select Push notifications from Facebook Is it possible to selectively turn off the notifications I receive from Facebook on Mac OS? In the system settings "Internet Accounts" I can only enable or disable the entire notification function.

Currently I am using an app for Facebook messages and I am receiving double notifications each time a message comes in.

The setting in macOS is an all or nothing.

It shows the Facebook notifications received through the API, using your settings from the website, so you may be able to change your notification preferences at:

https://www.facebook.com/settings?tab=notifications&section=on_facebook&view


OS X Server website not loading I'm trying to make a local website using OS X Server (4.0.3), and am following the tutorial that comes with Server. When I use Safari on another Mac, when I try to go to the website (myserver.local) the website doesn't load/is stuck 1/3 of the way loading.

The Server Tutorial is in the help menu (Help > Server Tutorials > Host a website > Lesson 1):

I've summarized the steps I took, and there didn't seem to be anything wrong following each step:

https://help.apple.com/serverapp/mac/getstarted/4.0/#/apd9a7f7c98f

  Lesson 1: Create a private, local, dynamic website

  In this lesson, you’ll learn:

  How to create a private website on your local network that uses a web app to produce webpages
  How to enable and select Python web apps
  How to use a built-in Python web app as a default webpage

  Step 1. Select Websites

  Open the Server app to see the list of services available in OS X Server. Select Websites.

  Step 2. Enable Python web apps

  Select “Enable Python web applications.”

  Step 3. Add a website

  Click the Add button .

  Enter the following information in the website creation pane:

  Enter the server’s local host name—for example, “myserver.local.”

  This is the name that Safari users on your local network use to view the website.
  Select the server’s local network IP address from the pop-up menu.
  Leave the SSL certificate as “None.”

  Don’t click Create yet.

  Step 4. Enable the sample Python web app to generate the webpages

  Click Edit Advanced Settings, then select “Python ‘Hello World’ app at /wsgi.” Then click OK.

  Note: Once you get this working, you could add your own web apps written in Python.

  Step 5. Make the Python page the default index page

  Return to the website creation pane, and click Edit next to Index Files. Add an index called “/wsgi” and drag it to the top of the list, then click OK.

  Step 6. Create the site

  After the configuration is finished, click Create to make the new site.

  Step 7. Test your configuration

  Open Safari and go to the site URL (myserver.local, in this lesson) to see the generated page.

However, the test is failing with Safari stuck 1/3 of the way loading by looking at the progress in the address/search field. How can I figure out what's wrong with my server and/or setup?

Here's how I'd troubleshoot things using terminal. You can use the console app as well to look at logs, but the serveradmin commands are more detailed than the server app allows currently and historically.

curl localhost - this tests that port 80 is listening and a web server is running.
sudo serveradmin status web - this tests the service named web - n.b. you could have the curl command work and have apache running on port 80 but have your web status STOPPED as several other "services" start up apache such as Xcode, Profile Manager, etc...
Depending if the status was stopped, issue a start sudo serveradmin start web or issue an orderly shutdown and restart sudo serveradmin stop web && sleep 15 && sudo serveradmin start web

If you are not getting anything that makes sense from curl - perhaps look over the web logs:

tail /var/log/apache2/access_log
tail -20 /var/log/apache2/error_log

Once you've narrowed down if the problem is running apache and basic networking/DNS to get localhost to work or if there are problems with the code/content you can take next steps.

Also, looking over the tutorial/lesson - it looks like the selection was on HTTPS and not HTTP, so go back and ensure you are using https://myserver.local and https://localhost or http:// throughout and the server app is configuring the port (80 for http and 443 for https). For simplicity, I've just used port 80 for this answer and my server setup.


I recently got my iPhone 4 unlocked from att I have some issues and want to erase and rest all setings, can this effect my unlocked status? I recently got my iPhone 4 unlocked from att I have some issues from before the unlock that persist (microphone, home button, internet connections).

I did not have to restore or set up the iPhone as new, as soon as the unlocked message appeared in iTunes I disconnected the phone, there were no resulting problems but I still have the problems from before the unlock.

I simply did not restore or set up the phone as new because I did not want to loose all my data,  my phone is jailbroken and before the unlock I was using a gevey sim.

I want to erase and rest all setings, to start fresh, can this effect my unlocked status?
I don't want to loose my unlock as I live in Costa Rica
Thanx

If the phone was unlocked 'legally' (as is true in your case) then factory resetting will not affect the unlock status.


Run a script before shutdown I want to run a script every time when I shutdown my computer. I know this is maybe a duplicate and I really read a lot of similar threads but either the answer isn't working anymore or I don't see how the answer is working.

I already figured out that apple wants me to use launchd. Most of the other solutions don't work anymore anyway.

So I found this answer but as far as I see launchd does everything when the system starts. I will copy the code below

<?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>boot.shutdown.script.name</string>

<key>ProgramArguments</key>
<array>
  <string>SCRIPT_PATH/boot-shutdown.sh</string>
</array>

<key>RunAtLoad</key>
<true/>

<key>StandardOutPath</key>
<string>LOG_PATH/boot-shutdown.log</string>

<key>StandardErrorPath</key>
<string>LOG_PATH/boot-shutdown.err</string>

</dict>
</plist>

and the script

#!/bin/bash
function shutdown()
{

  # INSERT HERE THE COMMAND YOU WANT EXECUTE AT SHUTDOWN OR SERVICE UNLOAD

  exit 0
}

function startup()
{

  # INSERT HERE THE COMMAND YOU WANT EXECUTE AT STARTUP OR SERVICE LOAD

  tail -f /dev/null &
  wait $!
}

trap shutdown SIGTERM
trap shutdown SIGKILL

startup;

Unfortunately there is no tutorial for launchd which include very basic explanation. So for example the arguments of the key brackets are more than just strings they trigger something but I can't find a list of which words trigger which action.

I would like to understand the basic idea of launchd. Especially which are the commands for running a script when the systems starts and when the systems shuts down.

I think I would approach this differently to what you're doing, but then again my suggestion is a bit of a workaround compared to what you want.

My approach would be to have your script set up so that it triggers the shutdown as part of its code. In other words, instead of having the Shutdown trigger the script, have the script trigger the shutdown.

The advantage of this is that you can use this as your usual shutdown option if you want, but if you ever need to shutdown without also running your script you can (e.g. if you're having to shutdown multiple times for troubleshooting purposes, or if an installation automatically shuts down your Mac, etc).

If this is an acceptable option for you, then the Applescript code you need is as follows:

tell application "Finder" to shut down

In other words, you effectively need to add the above code to whatever your script is.

Once your script works as you want, I would then create an Automator Service that runs it. This isn't mandatory, but it does mean you'll be able to run your script from the Application menu of any application. And, it also means you can create a keyboard shortcut to trigger it.

If either or both of these options interest you, proceed below.

1. Create a service using Automator

Launch Automator (usually found within your Applications folder)
Go to File > New
Select Service and click Choose
In the top right hand of the window that appears, ensure that "No input" is selected from the Service receives drop-down list
Ensure the In drop-down list is showing "Any application"
In the second column containing the long list, find "Run AppleScript" and double-click on it
This will add the Run AppleScript window on the right
Now, replace the (* Your script goes here *) with your script
Save the service using a meaningful name (e.g. ShutMeDown).

Now you should be able to run the service (and therefore your script) from any application by going to the Services list within any Application menu (e.g. Finder > Services, Safari > Services, TextEdit > Services, etc) and select the service you just created.

If you'd also like to set a keyboard shortcut to trigger things, proceed below.

2. Creating a keyboard shortcut

Go to System Preferences > Keyboard > Shortcuts
Select Services from the sidebar
Find your service (it'll be in the list on the right-hand side)
Add a shortcut by double clicking on the service name
Now go to System Preferences > Security & Privacy > Privacy
Select Accessibility in the sidebar
Click on the + sign (you may need to unlock the padlock if it's locked)
Add Automator.
Add Finder (to find this you will need to navigate to /System/Library/CoreServices/Finder.app).
Exit your System Preferences.

Now you should be able to use the keyboard shortcut to run the service (and therefore your script).

NOTE: I am aware that for some users keyboard shortcuts do not seem to work even though they've been assigned to a service. This is a whole other topic, but if this happens in your case, at least you can run the service from within any application you're using.

If you decide to give this approach a go, feel free to comment me if you have any questions/problems.


How to access folder form a .tool application I can create a clickable script, by changing the .sh extension to a .tool (or .command) one. However when I do this, the paths that I have in my script break.

I am trying to run a dotnet core application and my shell script is simple:

#!/bin/bash
dotnet ${PWD}/OUTPUT/Calculator.dll

Where OUTPUT is the name of the folder with the dotnet release files in it.

if the script is a .sh file, the script runs, but then the end user has to go to the terminal and type in ./runscript.sh or whatever I call it.

The other thing I noticed was that it looks like the output of the app removes any spaces changing:

dotnet ${PWD}/OUTPUT/Calculator.dll

into:

dotnet-${PWD}/OUTPUT/Calculator.dll

How do I make it so that my paths in the script don't break when I change it into a .tool extension?

UPDATE:

As the answer suggested I have tried both:

dotnet ~/OUTPUT/Calculator

This results into:

  No executable found matching command "dotnet-/Users/jeff_mba/OUTPUT/Calculator"

and:

dotnet\ ~/OUTPUT/Calculator

which results into:

  /Users/jeff_mba/Projects/calctest/runcalc.command: line 3: dotnet ~/OUTPUT/Calculator: No such file or directory

So there is a spacing issue, but if I escape the space it still says the project is not found

But as per the screenshot it really does exist.

You simply have to supply the full path to the DLL in the script.

When you run the script from Terminal.app, the PWD environment variable contains the path to the folder where you're currently placed. I.e. if you use cd to move to other folders, the PWD environment variable is automatically updated to match.

When you're using the GUI and double-clicking an icon, you're not really "in" a specific folder at the time. So the same concept of a PWD environment variable tracking your movements do not make sense.

Instead simply supply the full path in the script, such as:

dotnet ~/OUTPUT/Calculator.dll

Here ~ means that currently logged in user's home folder.


Why does iPad Video App Not Group TV Shows Correctly? I have iTunes (10.6.1) running on a mac mini with home sharing enabled. It also syncs to 3 1st gen Apple TVs. On my Apple TVs, the shows are sorted properly by series name, with the episodes listed when I select a series. However on my iPad (1st Gen, running IOS 5.1), when looking at my shared Library, I see an image for each episode, which when I click it, shows a list of the episodes for that season of the series. I can select and watch an episode from there.

The problem is, I have way too many episodes to make this efficient, even to get to the Ds takes a lot of scrolling, and my list is cut off at the Ds.

I have seen other questions that sort of address this issue, but not quite directly, and none of the answers solve my problem, although they do point me at the meta data for the shows. I have removed artwork from each episode of several series and added the same image to each episode of a series and I still get multiple images for a given season of a series.

Any suggestions so I can group each series season under one (and only one) image when viewing the shared library on my iPad?

edit 4/9 07:40 I checked on a 2nd Gen Apple TV, accessing the the same home sharing library, all TV shows were grouped appropriately.
Most of my TV shows are ripped from DVDs. The ones purchased from iTunes do group correctly, There are a couple of ripped shows that seem to be grouped properly, but I have not yet figured out what is different about them.

It's all about the metadata ‚ the track information stored in each media file.

A while back I had this problem with TV Shows ripped from DVD not displaying correctly, or not in the proper sort order, on my iPad. When I compared the metadata for my home-brewed files with those from files of episodes purchased from the the iTunes store, I discovered some differences. The solution that worked for me was to correct the metadata using the info pane for the media files in iTunes.

To get started, open iTunes, select one of the TV episode files that's giving you problems, and press ⌘ + i (or choose Get Info from the file menu).

Start with the Info tab. Ideally your metadata will look something like this, with obvious differences (unless your file happens to be the same episode of The Big Bang Theory):

Note that the track number corresponds to the episode number

Not all devices use the Info metadata for sorting though, your next stop is the Video tab:

Episode ID could also be expressed as S2E8 but I prefer the cleaner, numerical method.

Next, visit the Options tab to confirm that the Media Type is set to TV Show:

.

To assure consistency, you can select multiple files and edit common fields, such as Album (in the Info tab) or Show (in the Video tab) all at once.

Finally, it's sometimes useful to make change the criteria that iTunes uses to sort your media. You have guessed by now that the Sorting tab is the key to this operation:

In the example above, alphabetical sorts by episode will place this episode with the L episodes, not in the T's. This is useful for Movies, shows or bands beginning with The.

The laborious process of manually entering  metadata for TV Episodes is the main reason for my using iVI to import DVDs.


Getting "Call using iphone failed" on incoming calls I have an iPhone 6 with iOS 9.2. I've recently frequently found that incoming calls frequently ring briefly and then the ring tone ends and I get an "Call using iphone failed" error on the screen. I do not have this problem with outgoing calls.

I've searched for this error and found a number of threads, but not with any clear suggestions or solutions.

I noticed that I only had the problem when my iPhone was near my MacBook pro. It turned out that the problem had to do with the Handoff featured introduced in iOS 8 and OS X Yosemite.

When I turned off Handoff and Facetime integration on my iphone, the problem went away. Here are a couple of threads with more details on how to deal with this:

https://discussions.apple.com/thread/6538204?start=0&tstart=0 (final post in thread)

And here's a possible fix that I haven't tried:

http://www.imore.com/continuity-fix


How do I find the version number of system libraries in different versions of OS X? My specific situation is that I am trying to find out whether Apple bumped the system version of libcairo to 1.12.16 in Yosemite from an earlier version of libcairo in Mavericks.

I can somewhat easily find the version on my current system by inspecting the header files, but I can't seem to find that information online.

Does there exist a reference online for all the files included in different versions of OS X, or a way to find versions of system libraries (short of having access to a computer running a specific version of OS X)?

Failing that, I'd appreciate someone running Mavericks taking a peek in /opt/X11/include/cairo/cairo-version.h and telling me the version listed there.

To answer the specific question, in newer releases, libcairo is part of cairo, which is part of XQuartz rather than the Apple-supplied X11 installation. You can find out the supplied version by checking the page for the release in question - for example, here for 2.7.7.

As has been answered by Mark, the Apple Open Source site provides listings of all of the open source software included in each release.


Permanently disable "beep" with volume change? Is there a way to permanently disable the "beeping" sound following volume changes?

Just in case, I use a Macbook Air with OSX 10.9.1.

Sytstem Pref -> Sound -> Uncheck Play Feedback when volume is changed


How to invoke a script when closing any file with a given extension Is it possible to automatically invoke a given applescript when closing -any- file with a given extension in a specified folder (and subfolders)?

If not in AS, is this possible in bash? (The AS I am considering simply calls a bash script.)

If the script could also be run when you open a file (or in other cases), you could use opensnoop.

~/test:

#!/bin/bash

while :; do
    opensnoop | grep -Ev ' (mdworker|mds|filecoordinatio|revisiond|Finder|Alfred) ' | grep -m1 '/Users/username/Folder/.*\.txt'
    say a
    sleep 1
done

/Library/LaunchAgents/test.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>test</string>
    <key>Program</key>
    <string>/Users/username/test</string>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

chmod +x ~/test, sudo chown root /Library/LaunchAgents/test.plist, and launchctl load /Library/LaunchAgents/test.plist.


Password in user settings is no longer valid I have a 2010 Macbook pro 13 " .. 7 .. The upgradable one .. It has 8 GB RAM and  new battery. It is running the latest version of the macOS --  High Sierra, and is running great, but it sort of slowed down a bit. The usual sign that someone is maybe trying something, so I re-started the machine. Put in the name and password and all went well!

After running OK for a while I discovered that it went into sleep mode, rather earlier than I normally have it set.

I went into energy saver preferences. Indeed it was now set to go to sleep quickly. To change anything I need to enter the administrator and the password.

I discovered that I no longer have a valid password for it!

That is quite a surprise! I tried all sort of past passwords to no joy!

Anyone have an answer to this problem??

When the machine is hot and you switch it off and then on again it will not charge the battery!

I read all sort of stuff about resetting whatever it was, but nothing worked!

Quite by accident I noticed that it started charging after cooling down a bit.

These days If I have been using it elsewhere I shove it in the freezer for 5 minutes and it works fine!

It seems with heat issues, you'll want to make a very good backup at night after it's been cool or off all day and then wipe it and test if you can rely on this hardware.

The software can't possibly work when the hardware is throttling or stopping the processing. Without charging circuitry - you can't really use a portable Mac. Also, it will be hard to separate a shut down due to SMC failing to sense proper charge / voltage and this might have nothing to do with normal sleep.

Looking at this from the outside, I'd start with a clean install to see if you can confirm all the symptoms are directly or related to hardware.


How do I access previous workouts recorded via Apple Watch? I want to see my detailed stats about my previous run.

I tried searching for a manual - https://support.apple.com/en-gb/HT204523 - but I don't seem to find such option.

On this occasion I was running with Apple Watch only (no iPhone, no GPS) but if I have the outline I manually set the starting point.

But first things first - how do I access data from my previous workout?

The historical data (other than the last summary data for each activity) is available in two places by default:

On the paired iPhone - you can use the activity app to review your workouts as well as going into health app to review data.
On the watch itself - you can look at today's workout(s) in the Activity app, but not go back in time as of Watch OS 2.0


How can I throttle bandwidth for iTunes ony? I saw a few questions asked and suggest Waterproof and a few other apps, but it seems to throttle everything outgoing on my Mac. I want to only throttle the download speed on iTunes. I normally use jDownloader to download things, and I am able to put a speed cap on my downloads, is there a way to do that for iTunes?

Try Throttled which should let you set a global or application specific speed limit


iOS App Distribution Private to specific organizations on Apple Business Manager I have created app on App Store Connect then selected Pricing and Availability there in bottom three options are available.

I need to deploy my app for an oraganization, also my application has frequent chnages.So need private distribution to specific organizations on Apple Business Manager  without any App Review Process.

But as i checked below option need to be selected --
Available for private distribution to specific organizations on Apple Business Manager or Apple School Manager

In my case above option selection button is disable. Is there any information missing from my side please suggest the solution for the same.

I read online the following, I hope it helps;

Source


RSS reader for iPhone with text-to-speech support? I have been using gReader for Android for a long time. Now, I would like to switch to iPhone and I need a replacement for this app.

Is there any RSS reader for iPhone that converts text-to-speech?

For RSS, I use Reeder 3, but you can probably use your favourite app, because…

iOS has built-in text-to-speech support system-wide for selectable or unselectable text.

Method 1: Select text and speak it

Open Settings → General → Accessibility → Speech and enable Speak Selection.

  A Speak button will appear when you select text.

In an app like Reeder, hold down on the text, make a selection or choose Select All, then tap Speak.

Method 2: Speak all text

Open Settings → General → Accessibility → Speech and enable Speak Screen.

  Swipe down with two fingers form the top of the screen to hear the content of the screen.

A HUD appears for controlling speech, which hide automatically or with the left arrow and unhidden with the right arrow.


"Unable to Download"/"Unable to Install" on iOS app update Whenever I try to update one of my apps, it downloads 79%, stops for a moment, then the progress bar resets and one of two dialog boxes appears:

  Unable to Download Item

  "App Name" cannot be downloaded. Please try again later.

  [Done]

or

  Unable to Download Application

  "App Name" could not be installed at this time.

  [Done] [Retry]

In the case of error #1, the app then returns to normal, but has not been updated. In the case of error #2, it sits at 0% and cannot be opened. Retrying simply repeats.

This does not happen with every app. Some apps simply install as expected.

I have a 4th generation iPod touch running the Evasi0n jailbreak of iOS 6.1. Rebooting does not resolve the problem, nor does launching in Safe Mode.

When this happens to me, I find it starts because a download was interrupted.

To correct, I find it easiest to use my computer to install the update, which corrects each app it updates.


Clicking on dock icon makes windows for other applications disappear I just began using a new Macbook Pro 15" Retina running Mountain Lion. After a couple of days transfering files (from my previous Macbook Pro (early 2011) running Snow Leopard) and generally setting it up the way I wanted, I started getting the following behavior: When I have a few applications open, if I switch to another application by clicking on that application's dock icon, all other application windows disappear.

After some searching, I found this discussion of a similar problem. The solution there was to select the "Show All" option in the application menu (the menu in the upper left corner just to the right of the Apple menu) for a given application. I tried that and all my application windows did indeed appear. But then the next time I clicked on a dock icon, all the other windows disappeared again and I'd have to click "Show All" again. I'm trying to figure out how to get back to "Show All" being the permanent default.

One other thing: Upon further checking, I discovered that when an application creates a second icon in the dock (for example, I currently have two Firefox and two R windows open, which has resulted in there being a second Firefox and a second R icon on the right side of my dock) only clicking on the "new" icons causes other windows to disappear. Clicking on the "original" icons just switches applications without making any other application windows disappear.

I never experienced this behavior before with my previous Macbook Pro. I'm trying to figure out why this is happening (did I accidentally change some setting?) and how to make sure it never happens again. If it would help to know more about the hardware/software configuration or settings of my Mac, please let me know what information to post.

It appears that Single Application Mode has been activated. Open /Applications/Terminal and copy the following command:

   defaults write com.apple.dock single-app -bool false killall Dock

To reverse this, replace false with true.

Alternate GUI Way

You can also Option + Click the app icon in the dock to reverse the behavior.


GarageBand Static when recording guitar using JAM 96k interface Does anybody know how to resolve the intermittent static problem when recording on the Mac using Garageband 10.0.1 on a Mavericks MAC and using Apogee JAM 96k? I've tried every configuration possible (different sample rates, different bit depths, removing effects, changing guitar and interface cables etc...) to no avail. Cannot get ride of this annoying static.

Check the bit rate of garage band verses your interface. If garage band is recording at 24 bit and your interface is 16 bit, you might get static, especially if you have a lots of tracks. AC


iOS 11 Safari: How to pass user/password in URL for Basic Authentication? I have one iPhone running iOS 9 and another iPhone running iOS 11.

On the iOS 9 iPhone, I can navigate to http://username:password@mywebsite.com in Safari, and the webpage will pull up without asking for my username and password. I can then add this full URL to my Home Screen as a direct shortcut.

On the iOS 11 iPhone, when I navigate to http://username:password@mywebsite.com, I am automatically redirected to http://mywebsite.com. I have to manually type my username and password in the pop-up form, no matter what. I cannot add http://username:password@mywebsite.com to my Home Screen because the URL is always changed to http://mywebsite.com. It seems that there is no way to edit or customize the URL of a Home Screen shortcut.

For my iOS 11 iPhone, is it possible to embed my website's username and password in the URL itself, so that I can add this URL to my iPhone's Home Screen, so I will never need to type in my username and password manually?

I understand that embedding the password in the URL may not be very safe, but this is not a "high security" application, so convenience is more important than high security in this case.

If the answer is no, can you suggest a way that I can re-write my website to produce the same effect, without relying on cookies? I cannot rely on cookies because the way that my website works is that it can't place any cookies. Maybe via PHP? I know this question would be a web design question and not an Apple Product question.

TL;DR: My aim is to hard-code a username and password in a URL somehow, so that I never have to manually type in my credentials in iOS 11.

I read this and this and this for help but did not find an answer that worked for iOS 11.

According to the RFC at https://tools.ietf.org/html/rfc3986#section-3.2.1 this feature is deprecated, so I'm pretty sure it is disabled on purpose.

Chrome also does this: https://bugs.chromium.org/p/chromium/issues/detail?id=504300

Remembering users is what cookies are for, not using them severely limits your options. I guess you could write a login token service that generates URL's like https://yoursite.com/login/236cq827hr6xqoxxrm9q9r which logs in the user immediately. I would make sure it did not work over regular HTTP first, though.


Why is my Mac in "Presentation Mode" after a clean reboot? I see the following in Notification Center after a clean reboot. Any idea if there's a way to tell why the Mac thinks it's in Presentation Mode?

Hmm. Looks like this was because of my newly connected USB-C Dell U3219. If I disconnect and restart, I'm not in Presentation Mode.

I was on 10.15.3. Since updating to 10.15.4, this is no longer an issue.

Update - this is still happening on 10.15.4. When this happens, the two-finger swipe from the right edge to the middle no longer opens the Notification Center.


Automator get first 3 letters of parent folder How do i get the first 3 letters of the parent folder im creating a folder in with automator

im designing a Automator service to create a project folder in the folder of a client and I want to append the first three letters of that clients folder name to the next folder.

Client folder: Coca-Cola > new project_COC
how do i append the first three letters of Coca-Cola (COC) in capital to the new folder.

As an Example on how to get the  3 chars.:

You can get the details from some unix code that gets the folder name from parents path and gets the first 3 letters and transforms it into upper case.

Passes it on to the storage var. to use in the Make folder or what ever you use.

for f in "$@"
do
    sufx=`basename "$f" |cut -c-3 | tr "[a-z]" "[A-Z]"`

echo _"$sufx"
done


How can I disable Finder notifications? Every time I disconnect my mac from its dock, I get a Finder notification about ejecting a drive before disconnecting. It's a drive I use for time machine backup, and I just don't think it's worth it to take the time to eject it every time I want to move my mac.
Is there a way to disable this notification? The Finder app does not appear in the Notification settings.

From what it looks like there isn't a decent way to do this without unloading the entire Notification Center and any other notifications alongside with it.
However, as @Tetsujin noted and as many other people would also concur, for the sake of your drive and how macOS uses it I'd personally recommend just ejecting it for the sake of your data and not to risk nuking that drive even if the chances are small; annoying but necessary with how the file system deals with write caching.


How to get UTF-8 locale when connecting via SSH to MacOSX from PuTTY (Windows) I have the following problem. When I connect to the server via ssh (client is PuTTY under Windows), I don't get UTF-8 locale. Here is what I see on MacOSX (Yosemite) after ssh connection:

$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

The thing is that I use the same settings for my Linux connections and on Linux I don't have these problems with locale. So, this might be a problem on the MacOSX side, not on the PuTTY's side.

Any ideas how to have UTF-8?

Solved my problem using Stack Overflow question: https://stackoverflow.com/questions/7165108/in-osx-lion-lang-is-not-set-to-utf8-how-fix

The most important part of the answer:

  Try adding or editing the ~/.profile file for it to correctly export
  your locale settings upon initiating a new session.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


Can't ssh into another mac on same network, wrong password I've got two macs on my home network, both are enabled for Remote Login.
From mac1 I open terminal and enter "ssh mac2.local". I am prompted for the password but the when I try the password I use everyday on mac2 I'm told that's the wrong password.

Is the password supposed to be some sort of RSA thingy? Is it not just my account login password? Where do I get the password?

thanks

Have you checked your System Preferences > Sharing to make sure that Remote Login is enabled and that your account is in the Allowed users list?


iTunes download all songs at once I can't find any way to download all my purchased songs at once.

I have a list of 100+ albums, so clicking on Downlod for each album is not viable.

I was hoping to show Account -> Purchased -> Not in my library. and select all albums and then download all at once, but I'm out of ideas.

Is this possible?

You can download an entire playlist with one click.

I just noticed that In your library: You can sort your music by "in the cloud" (the cloud logo). When you add the music which is only in the cloud to a playlist, iTunes will automatically download your added songs :-)


Moving large system directories to another drive and using symlink? I have a SSD (Boot Partition) and a HDD (Data) for my Mac.
I only bought a 128GB SSD thinking the boot partition wouldn't need a large drive, however I was mistaken.

I find that Mail and MobileSync folders in my Library directory take the majority of the storage on my SSD sometimes even bringing 'Low Disk Space' prompt if I don't watch it for a while and let it loose.

I wanted to know if I use symlinks to create the following directories in another location would they work correctly or cause problems?
~/Library/Mail
~/Library/MobileSync

I would recommend using mountpoints instead of symbolic links, but symbolic links will work.

For example, I have a small SSD as a boot drive and a PCIe SSD for my /Users partition on my Mac Pro.

I copied over the data and added the following to my /etc/fstab file.

LABEL=Users /Users  hfs rw,auto

"Users" is the name of the partition known to Disk Utility and "/Users" is the mount point.

This is a lot cleaner than symbolic links, as many tools will not follow symbolic links without being told explicitly to do so, to avoid cyclic links.

In your case, you might want to create a separate partition for ~/Library and move everything over.  You may also want to create separate partitions for Mail and for MobileSync.

All of that said, symlinks will very likely work in these two cases.  However, keep in mind that you're moving directories that have both a high rate of change and a lot of data, which is the worst case for a spindle.  Expect iOS backups to be slower and for Mail operations such as "search" and opening attachments to take a little longer.


How to enable 3-finger drag in Catalina? In Accessibility, I can't find any option for 3-finger drag in Trackpad settings.

Accessibility > Pointer Control > Trackpad options > Check "Enable dragging" > Select 3 fingers drag from the drop down


A way to change NIC's MAC-address except with CLI ifconfig's "ether" option? Some ISPs do MAC-address port locking or/and use DHCP to assign IP-addresses to clients' network interfaces. Assuming you don't wanna bother calling them, what are your options then? If ifconfig's is the only one, where should it be called from so early during boot time that no Ethernet frame would ever went to wire with its original MAC-address?

P. S. Alas, there's no 'mac-address' tag yet and you need at least 300 reps to create one.Thanks to @gentmatt, now we have one. ;-)

You won't be able to permanently change the MAC address of the card, as it is hard coded on the card itself.  However, as you have guessed, you could create a script and run it at boot in order to change it every time the computer boots.

This post details the steps it takes create the script and how to have it run when you want it to.  If you follow that, you should be good to go.


Is there a specific way to capture a part of your screen with QuickTime Player? When I open up QuickTime Player to record, where do I find the option to record a part of the screen? I have checked the little down arrow, nothing. I've been trying to find a way but no luck.

Recording a selected part of your screen is very easy.

Open Quicktime (if you get a Finder window, select Done)
Select File -> New Screen Recording
Click the Record button on the small popup window
You'll see a screen overlay message like this:

Drag the cursor around the part of the screen to record
Click Stop to end the recording.


Huawei E3372 Hi-Link doesn't work with macOS Catalina Since Catalina dropped 32-bit support my LTE router, Huawei E3372 Hi-Link, stopped working. Is there any 64-bit driver(?) available to make the device work again?

Before, after plugging in the stick an Apple Script was auto-run and router admin interface located at http://192.168.8.1 was opened automatically.

Now the Volume called HiLink is mounted but the app cannot be started since it's 32-bit.

The solutions to make Huawei work with Mojave don’t work for me.

Where can I find a workaround app or update?

Huwei has posted an update for mobile sticks drivers for Hilink products you can use this : https://consumer-tkb.huawei.com/tkbapp/downloadWebsiteService?websiteId=1697201

for the other devices (that use mobile partner or mobile wifi): visit this link https://consumer.huawei.com/en/support/search/ and then click software section you'll find the driver for your device


How do I create a file with a custom file extension? I've just been trying to create a .crt file, so I can copy the contents (text) from a web page in to it, but Mac OS doesn't seem to want to let me do it easily.

Normally in Windows I would right click > new file, or even open notepad and save as (as it lets you save with any extension), but TextEdit in mac forces me to save as RTF, and I seem to be unable to rename it in finder afterwards?!

I ended up opening the terminal and executing touch cert.crt just to create the file. I need to explain this process to some other users - there must be a simpler way.

I tried to recreate your Problem and noticed that you probably have not enabled the "Show all File Extensions" option in the Finder Preferences.

You can check by selecting the Finder and selecting "Preferences" from the Menubar. A small window should appear, titled "Finder Preferences". Select the "Advanced" Icon at the Top of that window. You should now see the option "Show all File Extensions", it should be checked. All files in your finder window should now show their extensions, like .txt or in your case .crt

You can now easily change all files to another extension.

If that does not work then the Fileextension is probably linked to another application. .crt-Files should link to the Keychain-Application which handels all certificates. You can check by selecting the crt-File and pressing "command" + "i". An information window should appear with additional information to that file. At the Entry "open with" should appear "Keychain.app".


Is the message "You must change your passcode within 60 minutes" valid / non-malware? A few minutes ago, after unlocking my phone (iPhone 4, iOS 7.0.1) I got a dialog over the home screen:

  Passcode Requirement

  You must change your passcode within 60 minutes

and it offered to let me do so.  I canceled.  I've never seen this dialog before and I am worried it may be a sign of malware fishing for my passcode. Even on iOS 9.1, this dialog still happens:

There is very little on Google about this message, but what there is is:

Someone else worried it may be malware, with no definitive answer (just "it can't be malware if it is not jailbroken", which is not true)
Someone suggesting the passcode may be "too common" (IMO, unlikely for mine.)
In both the above, a suggestion it may be related to a network profile, which I do not and never have had.

I changed my passcode manually, but am still worried about the source of the dialog and why it appeared.  Is there a definitive answer?

This message is the case when either:

Your device is enrolled under MDM and after deployment it will display something like image below.(https://www.apple.com/iphone/business/it/management.html)
Your passcode is too obvious and needs to be changed
Microsoft Exchange can force a passcode on your iPhone.

Obvious codes start with the following numbers:

196*
197*
198*
199*
200*
201*

But also include:

1234
0000 (or any 4 same number combination)
0001 or 0010 or 0100 or 1000 (or any number with this pattern)
1379
2580
2468


Mail App timing out and having trouble getting and sending mail I'm using El Capitan now...but this problem existed with Yosemite too.

I keep getting error messages that say either could not connect to server or the server returned the error: Connections to the server “imap-mail.outlook.com” on the default ports timed out...sometimes it's saying that my trash cannot be emptied, other times it says a piece of mail could not be moved to trash.

If I open connection doctor on my original account, it shows two types of connections for each (gmail and hotmail) of my webmail accounts (SMTP and IMAP); for this, I have no idea why! I set up each of these accounts though the mail app, so I did not add them manually that their should be two types of account for each, as I did not choose the type - they are predetermined by the app.

I spoke with Apple about this and a few other issues a couple weeks ago, and the tech suggested that when I had Apple transfer some files onto this new Macbook from a Windows 8 computer, that something potentially got transferred that was a WIN8 file, that ends up corrupting mail. Didn't make much sense to me sense these are webmail accounts and not discrete files, but what do I know.

He told me to open a new user on the Macbook (as guest user deletes upon shutdown), then open up the mail accounts the same way through the Mail app, and that should fix it. I've now done that, and still...same problem except now, it's not showing two types of webmail for each account, just IMAP. But it currently won't sent the mail I just drafted and i just got the server timed out message.

Since they are webmail accounts, I could just access them online, but I want the organizational features of having them in one place, merging calendars, etc.

Any help, even an affirmation that this is a bug that others are experiencing, would be much appreciated. I really thought this was an OS X problem and hoped it would be fixed with the release of El Capitan, but no love.

Debugging mail has become a bit cumbersome since the program is now designed to do all of the network requests on background threads and the main UI never blocks. Worse, I don't think there's any way to see important statistics like: What percentage of network requests time out or error? What is the response time for my mail server over time.

With that being said, here are the things I do to isolate and debug mail.

Ensure my Mac has accurate time by enabling Set date and time automatically and manually making the time wrong in the past by 1 minute or more and then enabling the check to ensure my clock will be close to the clocks on the Mail servers.
Make a new user account and only enter one Mail account in that user. This lets me log out of my main user and really focus on one mail server (actually two - one for receiving and another for sending) and makes the debug logs much easier to parse.
In the new account, I don't sign in to iCloud, and when I'm setting up the Mail account, I disable the check mark for Mail and only select Notes - I just want to test the log in and log out first without downloading all the mail initially.
Open up Connection Doctor (under the Window menu or use help to find it)
Enable Log Connection Activity
Press Show Logs

You will now have more data than you might like, but watch for the green light status of the Internet Connection and the status / errors of IMAP/SMTP and other items in the doctor window.

If I don't have a problem and all the lights are green, I quit make and use Finder to navigate up one folder from the logs and compress the entire Mail folder. That gives me a baseline of when things worked.

At that point, if there is an error, you can dig into the logs or post here. You could engage AppleCare or your mail provider for help - and now you have logs. Asking a follow on question with some error message from the logs might also be worth while here. (Or even ask what the various logs mean).

If there isn't an error on the new account, log out of the test Account on your Mac and log back in to your main account and repeat the connection doctor steps. Enable logs there if you find a problem.

TL; DR - your mail issues are the same as my Mail issues and I'm not using exchange, but I do use an IMAP mail server in France which is across the atlantic from where I typically work. My suspicion is that the network errors and time outs are happening and I don't get good feedback when these errors happen and instead Mail hides all the evidence, diligently re-trying a slow connection and in the end making me unhappy. I'm looking to see if I can gather mail statistics so that I can monitor health of my mail connections in aggregate and then choose a faster mail server based on evidence, but so far, I'm only able to find out when the servers are down as opposed to being too slow to effectively work, but up enough to answer Mail's patient requests within 2 minutes so I don't actually get a "failure to connect".


System stats on desktop wallpaper I am looking for an app similar to conky on Linux that will allow me to display various system stats and style them right on my desktop wallpaper.

I am only able to find things like iStats which have menubar interactive items but I don't really want that, but something that will allow me to put various stuff right on the Desktop. Does this exist? Something like this

GeekTool is what you need to accomplish this on the mac.

Addendum: Looks like Uebersicht is an another alternative.


Can I view my iTunes wish list in the browser? Can I view my iTunes wish list in the browser ?

Can I - for example - copy the link of my wish list ?

Just for Google folks, it is not currently possible to view your iTunes Wish List outside of iTunes.


Mac shifts desktops on maximizing Before maximizing an app (like google chrome for example)

After maximizing google chrome:

Why did it shift desktops? Its somewhat irritating when I use multiple desktops and an empty one is created in between. How can I turn this feature off?

You're simply confused as how to operate the system properly. When you think you're "maximizing" the window, you're really full-screening the application.

In order to "maximize" the window, you'll need to hold down the Alt-key while clicking the green "+" button in the top left corner of the Chrome window.

You can also maximize windows through other means - such as through an application such as SizeUp! or similar.


MacBook Stolen and locked remotely through Find My Phone but unable to locate it My MacBook got stolen and I put it in lost mode  in Find My Phone, locked it and got email it successfully locked, but the app couldn't get its location.

How is this possible?

Is it that the thief has disabled location services on my laptop? But I am wondering how can he disable the them if it's locked with a 6 digit code?

Macbooks don't have GPS chips, so they have to rely on less accurate information - namely, triangulating a position from nearby Wi-Fi's.

While that works great in many cases, there's no guarantee it will. If no Wi-Fi networks are in range, a Macbook may not be able to gauge a position at all.

If the E-Mail pointed out the IP address it was sent from (I've never used this service so I don't know how it works) law enforcement may be able to do something with that - but chances are probably slim, as an IP address can be used by many people at the same time.


Can I use or access the San Francisco font that comes with El Capitan? The new font San Francisco, introduced in El Capitan throughout OS X's Finder and contextual menus, is a beautiful font and proves that once again, Apple is on top of their game when it comes to defining the standards of UI and typography.

But when I try to find San Francisco in TextEdit or Keynote, it's not there.

The apps I use, whether Apple apps (Pages, Numbers, TextEdit...) or third-party apps (InDesign, Word...) do not display San Francisco as an option in their font menus.

Here's another example, from Apple's very own Keynote (whose default font is still Helvetica) - no San Francisco there either:

Obviously, this font is there, somewhere in the system, since it's used almost everywhere! And Apple computers are sold with lots of fonts pre-installed in their System Folder, so it seems like a mistake to me, that this one in particular would be unavailable.

So, how could I "unlock" it, or make it usable in other applications?

NOTE: This question was first assuming - wrongly - that San Francisco was made available in Yosemite, which was a mistake. Turns out I still can't find and use it in El Capitan, so I just edited it to say "El Capitan" instead, and add a few images, but some comments might seem irrelevant.

You can download it from here: https://developer.apple.com/fonts/

But there is this note in the license agreement:

  IMPORTANT NOTE: THE APPLE SAN FRANCISCO FONT IS TO BE USED SOLELY FOR CREATING MOCK-UPS OF USER INTERFACES TO BE USED IN SOFTWARE PRODUCTS RUNNING ON APPLE’S iOS OR OS X OPERATING SYSTEMS, AS APPLICABLE.


How do you encrypt a file or a single folder worth of data? Looking for a way to easily encrypt a file or a folder with a password without having to make up an encrypted read write image in Disk Utility?

There are plenty of utilities that will create a simple encrypted volume/image for you, I've used Exces, but I got it in a bundle, otherwise seems a little bit expensive. I know there are others. Exces does what it says and nothing more.

It creates a volume where you can drop anything (folders, files, etc.).

After you close it, you need the password to re-open it and access its contents. If you lose it, you're hosed.


Windows install from DVD or USB on El Captain I am learning about Mac more and more every day but I got stuck on this problem - trying to install Windows 7 or newer on El Captain.

I've been trying to put the .iso file on the USB but BootCamp would not recognise it. Now I have a clean DVD but I have no option in BootCamp to choose the installer disc as in this post.

I tried to edit the info.plist file from the BootCamp package but when I wanted to put it back it would not let me. Turns out, the folder permissions are set only to read despite being the user with admin access. When I try to change the permission to write/read, I get this error.

I am starting to think I will never be able to run Windows on this Mac. It is mid-2010 27-inch with El Captain 10.11.1, any advice what the next step would be? I am deliberately trying to use the BootCamp and not VMware.

Thanks

Reboot into Recovery Mode by pressing Command+R while the MacBook starts.
Navigate to Utilities and then Terminal.
Enter csrutil disable ; reboot which will disable System Integrity Protection (SIP) and restart the MacBook (Disabling SIP will allow us to replace the original Info.plist with the modified one).
Once booted back to normal mode, enter mv Desktop/Info.plist /Applications/Utilities/Boot\ Camp\ Assistant.app/Contents/ in Terminal to replace the old Info.plist with the modified one.
Reboot the machine back into Recovery Mode again (using Command+R).
Enable SIP using csrutil enable ; reboot.
All finished! Once Boot Camp Assistant launches again, the option “Create a Windows 7 or later version install disk” will appear.


How do I force my Mac to log in to an account remotely? It’s possible to restart a Mac from the command line (sudo shutdown -r now). It’s possible to log out from a Mac from the command line (sudo pkill loginwindow). But is it possible to force a Mac to log in from the command line? As in a full log in of an account, GUI-wise, not just logging in via SSH to the Mac via the Terminal.

I created something like this for Remote Desktop to signing a xServe. We had more than 1 account, and we had to sign un with both username and password. I ran this remotely through the terminal to prior to pulling up the screen.
`osascript -e 'tell application "System Events"' -e 'keystroke "USERNAME"' -e 'keystroke tab' -e 'delay 0.5' -e 'keystroke "PASSWORD"' -e 'delay 3.5' -e 'keystroke return' -e 'keystroke return' -e 'end tell'`

Just replace the USERNAME and PASSWORD and that should work.  I have not tested this on a more recent OS, but I hope this helps.


27" iMac SSD + HDD Migration from old iMac 10.7.3 I've just purchased a 27" iMac and am planning on installing a SSD (256 gig) to act as my boot drive.  I was wondering if it would be possible to:
1) Install Lion on to the new iMac
2) Create my user account
3) Move the new user account to the HDD that came with the iMac
4) Use Migration Assistant to migrate my old user account into my new iMac?

The current Home folder/Music/Photos and home movies is nearly 400 gigs of information.

I've read here where users utilize migration assistant twice (once for apps, then move home folder, then data) or manually move the data

Besides the obvious issue of you having too much information to load onto the SSD, I've done this basic procedure in the past.  However, it's much easier now using Time Machine, but you have a few options:

Time Machine

If you don't currently have a backup that can hold all your data, do yourself a favor and pick up a drive that can.  Time Machine should be built into the OS you're currently running.

Do the backup.  For 400 GB, you probably want to set it up before you go to sleep and let it run overnight.  Once  it's complete, unmount the drive and unplug it from the computer.  Go through with the drive install and then install Lion.  When the computer reboots, before you start to work with the setup assistant, plug in the new drive.  At some point it will prompt you for a location from which to migrate data.  Select your backup.  Let it run for a while and when you get back, it will contain all the data you backed up, in a usable form.  This is my current favorite method for cloning user workstations.

Super Duper

If you can't get an external backup, you can use SuperDuper to create a full-system backup from the active system disk.  You'll have the ability to trim the data to the size of the disk to which you're copying in the interface.  This route is a little more technical and requires a bit more time hands-on.

File Copy

I wouldn't recommend copying a user folder for a logged-in user due to open  preferences files.  You'll get all kinds of "File In Use" errors and it will probably exit the copy prematurely.  Instead (if you're dead-set on using this method - which I advise against) create a second admin user and copy the folder over into a temporary location before staging it into the actual /Users/ location.  You'll also need to make sure the permissions for the entire folder are set so that the user whose home you are copying can actually access and write to their files.  To do this, you can use the Finder's Get Info on the folder and then add the user to have full permissions.  Once it's staged into the /Users/ folder, you can log back in to the main user and delete the secondary admin.  You may have permissions issues in the future using this method.

All that said, it's totally worth it to get an external to back up to for Time Machine to clone your new SSD from.


Is it possible to manually buy an In-App Purchase from the Mac App Store? Let's say we have an app, and there's an in app purchase that unlocks something, let's say for example a pro subscription. You can't buy it from the app itself, because the app is glitched or broken. Is it possible to manually buy this in-app purchase through the App Store?

No.  You can only do an in-app purchase through the app (that's the 'in-app' part).

If there's a glitch in the existing app you can either fix it, create a new app, or direct users to your website to make the purchase (there's a bunch of Apple rules about doing that so be sure to check your Apple Developer agreement).


Multiple machine ssh client application for macOS In Windows there are applications such as mobaexterm that allow the user to control multiple remote ssh clients conveniently. For example, in order to run the same command on multiple machine, or save multiple session (so that it would be easy re-connect to those sessions simultaneously in the future).

Is it possible to achieve this goal from the macOS machine? Are there any relevant applications for this?

Yes, it is possible - there are a number of ways to do this.

You can install the program "csshx" from HomeBrew which is specifically designed for this purpose. First you'll need to have HomeBrew installed, and then run this command to install csshx:

brew install csshx

Then you can run csshx like this:

csshX server1 server2 server3

where serverX should be replaced with the actual hostnames of your servers.

That will display three graphical macOS windows with the output from each of the servers, and a fourth window with a red background, where you enter your commands. These commands are then sent to all three servers.

A different approach is to use "tmux". It is a common application for Terminal usage that have many advantages, and one of them is that it allows parallel execution. In general it allows for having multiple shell sessions within one Terminal tab - for example you can have three shells with connections to different servers each in their own pane, but all in the same macOS window/tab.

Again you'll need to have HomeBrew installed, and then run this command to install:

brew install tmux

You can then run tmux to start the program. Open a pane for each you want to connect to, and ssh into them as you would normally do. When you're ready to execute commands on all servers at once, press Ctrl-B and then:

:setw synchronize-panes

Now everything you write will be written to all the panes.

You need to press Ctrl-B and run:

:setw synchronize-panes off

to disable the feature again.


What are the risks having visited a counterfeit or phishing web page on iOS? I received from a regular colleague a sharing e-mail in iOS Outlook, and clicked the link. It opened a web page asking for my credentials, which I did not enter because I recognized the page as counterfeit.

Is there any way to tell whether simply visiting the page resulted in a drive-by injection?
Is there anything I should do to ensure my device is as clean as it was before clicking the link?
Is there a reason to uninstall and reinstall Outlook on the phone?

Technical Details

iOS 14.0.1 ;
Microsoft Outlook for iOS 4.57.2 ;
iPhone Xs Max

It's very unlikely that you were infected with anything or that anything negative happened overall if you did not enter your credentials. My reasoning for this is as follows:

It asked for your credentials, which indicates the goal was phishing not infecting your devices
Drive-by infections are not impossible, but they're also not easy. Unless you're a high profile target it's unlikely you would ever interact with one.

I don't believe there is any reason to be concerned based on how you described this.


Connect to an UPnP Server as guest I can connect to my UPnP file server (the server is my ASUS router actually) via Connect to Server (⌘+K) diagram in Finder (By the way this server don't show up in Network folder). I don't have write access on this server for huge files. I used to have write access for any size of files when it was connected as Guest.

Now I'm trying to connect to server as a Guest by disconnecting or ejecting the server and reconnecting using Connect to Server but it doesn't show me anything and just connect to server as my Mac user name.

Here is Finder connected to server as my Mac user name:

Here is connect to server diagram:

Here is the error I'm getting when I try to write big file in server:

I'm getting this error only on big file size. Small files copying fine. This file for example was more than 8GB.

How can I connect to this server as Guest? I know if I connect as a guest again, it will solve my problem because it used to have no problem before.

Environment Info:

OSX: 10.7 (Lion)
Router: ASUS (RT-N56U)
Mac: MacBook Air

Is there an entry for the server in Keychain Access? If so, try deleting it. That could prevent you from automatically logging in as your user name.


How to auto mount encrypted USB sticks after hibernate? I use 2 tiny USB sticks as extra storage space on my Mac. When I close the lid, I send the Mac to hibernate mode. Is there a way such that I auto mount the encrypted USB sticks right after I unlock the Mac?

What I currently do, is simply detach and put in again the USB sticks, so they are automatically mounted and decrypted. But that is obviously pretty annoying.

You can use a program called ControlPlane to automatically eject your USB drives when the system going to sleep.


Seeking a "softphone" app for iOS I'm moving towards IP-telephony and need a SIP-client for my mobile phone.

My first choice would've been Linphone, because that's what I use on my desktop, but it disconnects from the provider every time the phone goes into "standby"... I can make calls using it whenever I want, but, if somebody calls me on the VoIP-number, when my phone's screen is dark, they just get a message stating: "The subscriber is not available".

According to my VoIP-provider, this is a known problem -- I wonder, if there is a SIP-client, that solved it... Obviously, Skype and WhatsApp don't suffer from it...

If it matters, the VoIP provider only accepts UDP (sensible) traffic, and ZRTP is the sole means of encryption.

The family's iPhones are 5c, 5s, and 7 -- with the latest iOS at the moment.

I'm using Acrobits Softphone, and it is working very fine for me.

It supports many VoIP providers - here is a list: https://www.acrobits.net/about-us/partners#tab_verified-voip-operators.

ZRTP is supported too: https://doc.acrobits.net/general/secure_communication.html


Automatically connect to shared device when detected Here is my need : I want my media center to be mounted in the /Volumes of my Macbook as soon as I turn it on.
So, I need to automate the Connect as action.

Users & groups > Login items only resolve one part of the equation : mounting the macmini on laptop startup.
How to silently establish connection if I boot up macmini while laptop is already running ?
Update:
http://www.kristijan.org/2010/11/automount-afp-shares-in-osx/ explain how to mount a volume using automount command.
Still, is there an event "Share just appeared on network" emitted somehow by the system that I could plug into to trigger when to execute the automount command ?

You should definately check out google first.

I'm guiding you in the right direction:
This is a start click here.


Workout App Open Goal vs Calories question On the workout app, for all of my workouts except “Outdoor Hiking” the default setting under the little green figure says “Open Goal” in bright green.  Under the Outdoor Walk it shows “750 Calories” in red. When I start it, the countdown ring is in red. How do I reset this to Open Goal and countdown ring in green ?

The workout should show an ellipsis (3 dots) on the top right that you can tap. From there select open goal.

See this Apple Support article for more information on workouts.


Can I keep movies on my iPad and not on my hard disk? I want to keep movies on my iPad but not on my hard disk - I don't need both.

I normally keep the originals on an external USB drive, and put them on the iPad via iTunes.

That however seems to require that I keep a copy on the laptop hard drive - a waste of space.

How can I avoid this?

For me, the solution for avoiding duplicate storage is to keep all media files (movies, music, pictures) on a "networked storage" device, and then pointing the software app to that location.

To use iTunes as an example:

iTunes, Preferences..., Advanced tab

Click the Change... button next to the iTunes Media folder location

Use the "pop-up" Finder dialog to navigate to the folder on your network drive where your media files are located. Eventually, you will click the OK button to dismiss the dialog, and set iTunes on its slow grind to hoover up the contents of the media folder you've just specified. However, before you do that, please read the notes below; esp. the second one.

A couple of notes to conclude:

Note 1: iTunes is a willful child in that it doesn't "respect" your choice of a designated media folder location. I find that after some time has passed, or I've returned from travel, or... after other apparently random, unspecified and unknown events have occurred, iTunes will revert to its "default" media folder location. I gave up trying to understand this behavior years ago, but it still does behave this way. The only solution I know of is to... change the media folder location again - ad nauseum.

Note 2: There are several "other options" available in the Advanced dialog. In my experience, some of these options are unclear, and have proven counter-productive to my objectives. Rather than rant on this subject, I'll just provide the following screenshot that shows how I've chosen these options. Please also note that YMMV - these options may be perfectly clear to you, and work just as you wish; I'm only saying they don't for me.


Allow the Terminal.app to pass command key  based keystrokes to terminal programs I want to allow programs running in the terminal the ability to interpret the keyboard short cut  Cmd +  S

I have already Remapped the Terminals' default binding of  Cmd +  S to  Ctrl +  S via the Keyboard System Preferences in OS X Lion, so this has stopped the Terminal App itself from interpreting that key press, e.g. the save dialog no longer comes up when pressing  Cmd +  S . However something is still grabbing the key input before any terminal program can.

For example when running bash typing   Cmd +  S in the X11.app terminal results in:

$s

being printed to the screen.

When I perform the same  Cmd +  S in the Terminal.app nothing is printed and the OS plays an Error Sound. I am not really sure why the keystroke is not making it to the terminal as expected, how do I allow  Cmd +  S to pass thru.

For more information on what / why  I am trying to do this see question Bind <Cmd-S> in Vim

I have similar desires to yours. I solved it using a system-level modifier-key re-bind.

(Of course, this is a mess; but I find it worth it to maintain my MacVim-trained hybrid of OS-wide controls (save, new, copy, paste) within command-line vims.)

Here's how I did it:

Install Karabiner, which is a very, very powerful program (and an essential part of any poweruser's / programmer's OS X installation, IMHO)
Enable “Command_L to Control_L (only in Terminal)”:

Map ⌃-prefixed controls matching whichever MacVim commands you're most used-to in command-line vim. For instance, to support ⌘S,

noremap  <silent> <C-S>    :update<CR>
vnoremap <silent> <C-S>    <C-C>:update<CR>
inoremap <silent> <C-S>    <C-O>:update<CR>

Restore expected ⌘-sequences for Terminal.app itself, by special-casing them in System Preferences. For instance, if you want ⌘N to still control Terminal tabs, instead of mapping it to vim files, try:

Now, anything you don't add in this list, will be passed through verbatim to command-line vim (and, of course, any other command-line program you use.)

Caveats

This approach has several further subtle downsides, that I want to hilight for anyone considering taking it (as I do):

⌘␣ will no longer map to the system-wide Spotlight. (I've an open issue on Karabiner, and will come back here once I have a stopgap solution.)
For reasons I can't ascertain, even with the ⌃W exclusions set up in System Preferences, the tab-closing behaviour of Terminal.app changes with this setup: ⌘W will close individual tabs in a window; but if the current tab is the last tab, it will not close the window. Instead, it has no effect. I've had to re-train myself to use ⇧⌘W to close the window if there's only one tab left.
If you've trained yourself to use ⌃V in MacVim to do block-wise selection, then you'll have to re-train yourself to use the alternative, ⌃Q (or, now, ⌘Q). Additionally, you'll have to add stty -ixon in your shell's startup-script, as ⌃Q is consumed by default to preform an archaic shell-control function (one with no modern usage.)

Alternative ⌘W behaviour

In addition to the above, I decided to further override ⌘W as a universal ‘close this’ key, applicable to multiple applications.

Instead of mapping ⌘W to ‘Close Tab,’ as above; I personally map that to ⇧⌘W (to retain “immediately close this tab” semantics.) Then, in any given program, I map ⌃W to some sort of close-save-quit functionality.

For instance, in my .vimrc:

noremap  <C-W>    :confirm quit<CR>
vnoremap <C-W>    <C-C>:confirm quit<CR>
inoremap <C-W>    <C-O>:confirm quit<CR>

… or my .zshrc:

function close_tab { exit }
zle -N close_tab_widget close_tab
bindkey           '' close_tab_widget
bindkey -M vicmd  '' close_tab_widget

With those two snippets in place, and your Terminal configured to ‘Close if shell exits cleanly,’ a series of ⌘Ws will first quit vim, and then close the shell entirely.

In addition, now additional on-exit functionality of programs can be preserved: for instance, vim will ask before quitting if files are unsaved (just like MacVim); and zsh will ask before quitting if there are background jobs.

Postscript: Not directly related to your question; but you should also check out ‘Ubiquitous Vim Mode’ in Karabiner. It's “a bit much” for me to use everyday, but it's a very cool idea, and surprisingly-well implemented.


Do I need to upgrade my machine in order to release app updates on the App store? I've been developing using Xcode (10.1) on an iMac (21.5-inch, Mid 2010) running macOS High Sierra (Version 10.13.6).

The last time I updated my app on the App Store, I got a warning:

  ITMS-90725: SDK Version Issue - This app update was built with the iOS 12.1 SDK. As of June 30, 2020, updates to apps for iPhone or iPad must be built with the iOS 13 SDK or later.

I read that iOS 13 SDK comes bundled with Xcode 11.

But when I go to App Store → Updates, I don't see anything to update on my iMac. I can expose "1 incompatible Update", which is "Xcode Version 11.5", which should include iOS 13 SDK. This is what I would need in order to keep updating my app on the App Store, but it's "incompatible".

The problem seems to be confirmed by this compatibility chart. It looks like my current OS is as far as Apple is willing to take me on my current hardware (High Sierra, but not Mojave or Catalina).

My question is, is there any work-around that would allow me to use my current machine, but build using iOS 13 SDK?

I power-on this machine on three or four times per year, in order to make a tweak to the application, and then upload the new app to the App Store. I really don't need or want to buy another computer just to do this.

macOS High Sierra 10.13.6 is as far as your iMac can go and the last version of Xcode supported on this version of macOS is Xcode 10.1 which comes with iOS 12.1 SDK.

You can not install any app updates from the Mac App Store that have a minimum OS version number requirement that is later that the one you have installed.

  My question is, is there any work-around that would allow me to use my current machine, but build using iOS 13 SDK?

Sadly no. It's not possible to run Xcode 11.x or later which includes the iOS 13.x SDK on macOS High Sierra 10.13.6.

Depending on your machine configuration, you may explore the possibility of running a virtual machine on your iMac that can then run macOS Mojave or macOS Catalina which in turn could run Xcode 11.x. That's the only way you can build an app with iOS 13 SDK and submit it on the App Store. But again that's neither a convenient or a future proof approach.

  I power-on this machine on three or four times per year, in order to make a tweak to the application, and then upload the new app to the App Store. I really don't need or want to buy another computer just to do this.

You can look into the possibility of renting a Mac temporarily, export your identity onto it, set it up for development, and build and submit your app update.

MacinCloud is an online cloud based Mac rental service that you can use for precisely this purpose. I have used the service in the past and found it to be satisfactory. Once you have set it up, you can start a screen sharing session to the computer and use it as you'd normally use a Mac. Check the linked website for more details.

P.S.: No affiliation with MacinCloud. Have used their services in the past and found them satisfactory.


Resetting admin password which is tied to an Apple ID? An employee recently got a new company mac, then left the company. We've reset plenty of mac passwords in the past by using recovery mode > utilities > terminal > 'resetpassword' > select admin > type in new password.

Instead now, it asks for an Apple ID login. We don't know the login.

Is there any other way to reset this password?

If it's locked by an AppleId, the only chance you have is to contact the owner of the AppleID or contacting Apple support for companies.


Recover contacts etc from old iCloud account after iPhone reset I reset my iPhone 6, meaning I lost all my information, contacts, photos. When my phone turned on again, I had to enter my iCloud, and because I had forgotten my iCloud password, I had to put in a new login and password, and create a new iCloud account.

Unfortunately I have no backup.

I am wondering if there is some way I can recover my contacts and other information from my old iCloud account?

You must try and reset your old iCloud accounts password.
If you have ever synced or made a backup on iTunes on your computer then try to get it back from there.


Stolen Mac - Help Finding Serial Number? My apartment was broken into yesterday and my Mac (Mavericks) is gone. I'm trying to dig up the serial number for the police, but I'm having zero luck. Here's what I've done so far, to no avail:

Checked Find iPhone through my iPhone and iCloud.com (didn't iCloud show the serial number at one time?)
Checked https://supportprofile.apple.com/
Searched my emails for one from Apple from purchase (found an email with an almost 3 year old Order Number and a Crucial email with some specs)
Searched for the box my Mac came in

Here are some things I still have that may help:

An external drive used for Time Machine
My iPhone used the Mac for iTunes syncing
Programs connected to the Internet, like Dropbox and TeamViewer

The police have been here already and I've contacted my renter's insurance. I have the Mac Locked and on Notify When Found. But I would really love that serial number. Any ideas I haven't thought of or found online?

Someone stole my iPads last week and I didn't have the serial numbers. I found the serial numbers on appleid.apple.com. Once, logged in, scroll down to Devices and click view details. You will need to answer your security questions, but any of your devices that are linked to Apple ID will be shown with their serial numbers. I hope this helps someone.


Alternative to pressing home button to stop rearranging apps? To stop rearranging apps (i.e. after holding the finger down on an app so that they all start to shake, make them stop shaking again), the home button is used. Is there a gesture that does the same?

On iOS 5 to 8: Pull Down the Notification-Center!

You should swipe down just a little, else you get the notifications!  Still stops the wobble, bit not what you want.

So a little swipe from Top to the Button solves your problem!

Source: http://www.macbug.de/2012/01/22/ios-5-geste-zum-beenden-des-app-bearbeitungsmodus-2/


Erased Windows partition with Disk Utility still can see the EFI boot on the boot screen This the setup I had

iMac 21 inch
HDD (500GB) for macOS installation
SSD (256GB) for Windows 10 installation

This was working perfectly, until I upgraded to High sierra.

After upgrading to High Sierra, macOS stuck at the booting process and shows the spinning wheel all the time. Therefore I used the recovery mode and re-installed high sierra again but no luck. During that time I have erased the Windows 10 SSD via Disk Utility as well.

Then I used a Time Machine back up (2 years old) and reinstalled OS X El Captain. After three and half hour installation process, it booted and shows the white screen with the cursor. In safe mode it worked, but when I use normal mode it didn't.  Then I followed these steps:

Tried to reset the NVPRM, in the restart process Windows BSOD came
up and displays the recovery options. In startup disk the boot volume was set to Macintosh HD.
Then used the Internet recovery, opened the terminal and entered diskutil list. It shows disk0 as Windows partition, disk1 as
Macintosh and disk2 as recovery partition.

But I can see partitions up to disk20 each having ~1 MB allocated space.

Checked diskutils cs list, it shows no CoreStorage logical volume groups found

Now I am running out of idea about how to recover the system.
I have created an image of the Macintosh HD before using Internet recovery therefore I'm not worrying data loss.

The image below was taken after I erased the Macintosh partition to install macOS again – I haven't installed it yet.

The drives shown as (disk image) are temporary drives stored in RAM. These drive will disappear when you leave Recovery mode.

Chasing Ghosts

You have successfully removed all windows partitions from your disks, but you have not yet removed all files added during your installation of Windows. What is left are files in your EFI partitions. The ghost is being caused by the file efi/boot/bootx64.efi stored in one of the EFI partitions.

Open a Terminal window and enter the following command.

sudo diskutil mount /dev/disk0s1

From a Finder window, open the EFI disk. Next open the EFI folder. Remove any folders named Boot or Microsoft
When finished, enter the command below.

sudo diskutil unmount /dev/disk0s1

Enter the following command.

sudo diskutil mount /dev/disk1s1

From a Finder window, open the EFI disk. Next open the EFI folder. Remove any folders named Boot or Microsoft
When finished, enter the command below.

sudo diskutil unmount /dev/disk1s1

If you booted to Recovery Mode or wish to just use a Terminal window, then enter the commands given below.

sudo  diskutil  mount  disk0s1
cd  /Volumes/EFI
rm  -fr  EFI/Windows
rm  -fr  EFI/Boot
cd  /
sudo  diskutil  unmount disk0s1
sudo  diskutil  mount  disk1s1
cd /Volumes/EFI
rm  -fr  EFI/Windows
rm  -fr  EFI/Boot
cd  /
sudo  diskutil  unmount  disk1s1


AppleScript add new filename and path in mail only when files extension are .pdf and .doc I have a Mac running macOS Mojave.

this script sends a mail to multiples user when someone adds a new file in my folder.

How can I add the filename in the mail Subject and the path file in the mail body?
How can I apply this action only when the file extension are .pdf or .doc?

here is my script:

property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.

on adding folder items to this_folder after receiving added_items
try
    tell application "Finder"
        --get the name of the folder
        set the folder_name to the name of this_folder
    end tell

    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
    if the item_count is greater than 1 then
        set alert_message to alert_message & (the item_count as text) & " new items have "

    else
        set alert_message to alert_message & "One new item has "
    end if

    set recipientName to "New file added"
    set recipientAddress to "user1@gmail.com, user2@gmail.com"
    set theSubject to "new file" & fileName
    set theContent to "¡Hello! new file added: pathName fileName"

    tell application "Mail"

        ##Create the message
        set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}

        ##Set a recipient
        tell theMessage
            make new to recipient with properties {name:recipientName, address:recipientAddress}

            ##Send the Message
            send

        end tell
    end tell

end try
end adding folder items to

I try many times to use this example, but was impossible:
Applescript to return name of new file added to folder

Thanks so much in advance!

This works for me using the latest version of macOS Mojave.

I made some adjustments for you and added a few items to your code. You may need to adjust a few things to better suit your needs, but for now I think the following code should put you back on the right track:

property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
property name_extensions : {"pdf", "doc"}

on adding folder items to this_folder after receiving added_items
    set files_added to {}
    set file_names to {}
    tell application "Finder" to set folder_name to the name of this_folder
    repeat with i from 1 to count of added_items
        set this_Item to item i of added_items
        tell application "Finder"
            if name extension of this_Item is in name_extensions then
                set end of files_added to (this_Item & linefeed)
                set end of file_names to " " & name of this_Item & " "
            end if
        end tell
    end repeat

    -- find out how many new items have been placed in the folder
    set the item_count to count of added_items
    --create the alert string
    set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text

    if the item_count is greater than 1 then
        set alert_message to alert_message & (the item_count as text) & " New items have been added"
    else
        set alert_message to alert_message & "One new item has been added"
    end if

    if files_added is {} then
        activate
        display alert alert_message giving up after dialog_timeout
        return
    else
        try
            set recipientName to ""
            set recipientAddress to "user1@gmail.com, user2@gmail.com"
            set theSubject to "new file: " & file_names
            set theContent to "¡Hello! new file added: " & linefeed & linefeed & files_added

            tell application "Mail"
                ##Create the message
                set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
                ##Set a recipient
                tell theMessage
                    make new to recipient with properties {name:recipientName, address:recipientAddress}
                    ##Send the Message
                    send
                end tell
            end tell
        end try
        activate
        display alert alert_message giving up after dialog_timeout
    end if
end adding folder items to

UPDATE:

In this following version of the updated code, I removed all of the “Display Alert” commands and variables.  This version will send an email to you with the names of all of the files and the path of the files.  It will also send an email to the addresses of your recipient list, with the name of the files and the path of the files (only if the file extensions are .pdf or .doc)

property myEmail : "fireDevelop@gmail.com" -- Replace With Your Email Address
property sendToEmailAddress : "user1@gmail.com , user2@gmail.com"
property name_extensions : {"pdf", "doc"}

on adding folder items to this_folder after receiving added_items
    set files_added_filtered to {}
    set file_names_filtered to {}
    set files_added to {}
    set file_names to {}

    repeat with i from 1 to count of added_items
        set this_Item to item i of added_items
        tell application "Finder"
            set end of files_added to (this_Item & linefeed)
            set end of file_names to " " & name of this_Item & " "
            if name extension of this_Item is in name_extensions then
                set end of files_added_filtered to (this_Item & linefeed)
                set end of file_names_filtered to " " & name of this_Item & " "
            end if
        end tell
    end repeat

    if files_added_filtered is {} then
        try
            set recipientName to ""
            set recipientAddress to myEmail
            set theSubject to "new file: " & file_names
            set theContent to "¡Hello! new file added: " & linefeed & linefeed & files_added

            tell application "Mail"
                set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
                tell theMessage
                    make new to recipient with properties {name:recipientName, address:recipientAddress}
                    send
                end tell
            end tell
        end try
        return
    else
        try
            set recipientName to ""
            set recipientAddress to sendToEmailAddress
            set theSubject to "new file: " & file_names_filtered
            set theContent to "¡Hello! new file added: " & linefeed & linefeed & files_added_filtered

            tell application "Mail"
                set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
                tell theMessage
                    make new to recipient with properties {name:recipientName, address:recipientAddress}
                    send
                end tell
            end tell
        end try
        try
            set recipientName to ""
            set recipientAddress to myEmail
            set theSubject to "new file: " & file_names
            set theContent to "¡Hello! new file added: " & linefeed & linefeed & files_added

            tell application "Mail"
                set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
                tell theMessage
                    make new to recipient with properties {name:recipientName, address:recipientAddress}
                    send
                end tell
            end tell
        end try
    end if
end adding folder items to


Boot Camp Assistant Missing? I was trying to modify boot camp assistant info.plist in order to boot from usb and then it suddenly disappeared.
Macbook A1342 Unibody
10.8.5

If any one at least share boot camp assistant app with me. I do not have start up dvd to reinstall.

You can use the Recovery partition to reinstall OS X. This will keep your user account but reset all system files.

To reinstall OS X, boot with ⌘R and select the Reinstall OS X option, then follow the instructions.

Additionally, this file is normally backed up to the local time machine store, so try entering Time Machine even if you don't have your drive connected to see about restoring that file.

Worst case, have some trusted people MD5 check sum the app on 10.8.5 if you want to risk downloading it from a stranger instead of from a friend's backup or Mac.


How do I get the actual ip address of a printer in OSX Yosemite I need to know the ip address of my printer from OSX to be able to configure it in my daughters Windows laptop. I tried the solution suggested in How do you get a printer's IP in lion? but I only get: dnssd://AL-CX11-08F61E._printer._tcp.local./auto, and I cannot ping AL-CX11-08F61E._printer._tcp.local. because it does not resolve. Still, I can print. How do I get the actual IP address?

Edit: why doesn't it resolve from the commandline, but still OSX can print?

Use http://localhost:631/printers/ to see the list of printers available. The page shows both printer model and its IP/name under the Printers tab.
To enable the cups page, run cupsctl WebInterface=yes in terminal.

If it does not directly show an IP address, click on the printer, where usually there is a connection entry like in this example:

Afterwards run cupsctl WebInterface=no in the terminal.

If the above still does not resolve to an IP-address, then try dns-sd as explained in How can I list the IP addresses of all the AirPrint printers on a network?; search for "_ipp._tcp" in that post.

For that to work you MUST be on the same network as the printer: it does not work if you are on a different network (for instance when on the road and the discovered printer is at home).

Example of a printer not showing the IP address:


Cell formula based on finding an index on another sheet I have a numbers file with a first sheet like this:

Then a second sheet that looks like this:

For each row in sheet 1 I need to find if there is a matching SKU on sheet 2 (sheet 1, col N with sheet 2, col B).  Then, if there is a match, get Mark down value (Sheet 2, col D) and apply that discount on Sheet 1, col T.
I've been trying with this approach here...

...but didn't get there yet.
Is this possible in Mac Numbers?  If possible, what would be the way to achieve it?
Sheets don't have the same records nor rows in the same order so I can't just copy and paste a column to use a formula with relative cell positions.

So match() will do this.
MATCH() has three arguments:
Search_for : the sku you want to check from col N sheet 1
Search_where : column B on sheet 2
type of match : need 0 for exact match
Not built an example as your data is in images.