Mac OS X

13K

Solutions

11K

Contributors

Mac OS X is the desktop operating system from Apple Inc., found on Macintosh computers. OS X consists of a Mach/BSD-based kernel, operating system interfaces primarily based on FreeBSD and additional frameworks (written in C, C++ and Objective-C providing user interface and application-level services.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have this script which return me a list for selection with the correct information

#!/bin/bash
choices=('Cancel Restore')
choices+=('Delete Older Instances')
choices+=($(aws rds describe-db-snapshots --db-instance-identifier rdsinstance | awk -F'"' '/"DBSnapshotIdentifier": "testvar",/ { print $4 }'))

select choice in "${choices[@]}"; do
...

Open in new window


however, I want to dynamically replace the tesvar by a variable pushed from the command line

I'm trying the following:

> /location/mybash.sh testvar
#!/bin/bash

variable=$1

choices=('Cancel Restore')
choices+=('Delete Older Instances')

variable=$1
choices+=($(aws rds describe-db-snapshots --db-instance-identifier rdsinstance | awk -v var="$variable" -F'"' '/"DBSnapshotIdentifier": "var",/ { print $4 }'))

select choice in "${choices[@]}"; do
...

Open in new window


but is not working, I have tried several combinations but without success.
the idea is to filter the below result into a selection list only when the line matches "DBSnapshotIdentifier": "testvar",

{
    "DBSnapshots": [
        {
            "DBSnapshotIdentifier": "testvar",
            "DBInstanceIdentifier": "rdsinstance",
            "SnapshotCreateTime": "2018-05-23T14:32:50.955Z",
            "Engine": "sqlserver-ex",
            "Status": "available",
            "EngineVersion": "11.00.2100.60.v1",
            "SnapshotType": "manual",
            "DBSnapshotArn": "arn:aws:rds:xxxxxxxxxxxxxxxxxx:snapshot: testvar",
        }
    ]
}

Open in new window


If I use the testvar in the script, I will obtain a choice testvar (the name of the instance) if I try to pass it from the command line, it will not work.

how can I filter the value using an input?
0
Cloud Class® Course: C++ 11 Fundamentals
LVL 12
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

When a send a meeting request from my calendar on my Mac,  using an Exchange account, the meeting requests are not delivered
0
  • Photoshop CC
  • Macbook

Whenever I save my file on Photoshop CC, my artboard turns upside down. I use a Macbook which is hooked up to two other monitors and this seems to happen when I disconnect it from the monitors (when I need to work elsewhere), then reconnect it to the monitors (when I'm back at my desk). I presume it's some resolution issue. The issue happens when my Macbook is reconnected to my two monitors. When I use my Macbook on its own, it doesn't happen.

What fixes it is minimizing and expanding the Photoshop program but the fix is temporary and the next time I save the file, it turns upside down again. A better fix is restarting Photoshop altogether, but the next time I disconnect/reconnect my Macbook to the monitors, it happens again.
0
I have an AppleScript that is used to programmatically create a test script file in one of these Office 2016 app folders:

~/Library/Application Scripts/com.microsoft.Excel
~/Library/Application Scripts/com.microsoft.Word
~/Library/Application Scripts/com.microsoft.Powerpoint

This is the test.scpt file content which is programmatically generated:

on handlerTest(thisPhrase)
	say thisPhrase
end handlerTest

Open in new window


This test.scpt file contains a single handler which speaks the phrase passed to it.

When the script is created in one of these folders, I cannot see the content of the script file in Finder and calling the handler from a Microsoft Office app using the new VBA AppleScriptTask causes the Office app to crash. I think the script is being created as a byte-compiled file because it cannot be viewed in Finder as plain text.

If I then copy the script file generated programmatically by my script creator script to the Documents folder, the plain-text content of the script is viewable in Finder.

Now, if I copy the script file from the Documents folder back to the corresponding com.microsoft folder (without modifying it), I can now see the plain-text content in Finder and calling the handler using the VBA AppleScriptTask function works as expected. I don't understand how the format is apparently changing due to copy/paste actions?

How can I programmatically create the script file in the com.microsoft.xyz folder in plain text format?

Here is my VBA procedure:


Open in new window

0
Hi - I am trying to setup bootcamp for a client's mac and dual booting with Windows 10 . I have done this often enough without a glitch. This time i am getting the same error all the time during the partition stage , it just comes up with the attached error. I tried repairing the disk, upgraded it to High Sierra. Beyond that i am not sure what the next step is beyond reformating (which will be a pain). This mac currently has Parallels running on it, but i cant see why this should make a difference, thought i would mention anyway.
Some tips would be most welcome.

Thanks
D
Bootcamp-error.PNG
0
Has anyone encountered an issue with Outlook 2016 on a Mac running High Sierra, where certain email are not automatically downloading images? I've updated the IOS to High Sierra, attempted to update the Office product but no updates are available. I've already checked, Preferences -> Reading -> Security, and checked "in all messages" for automatic download pictures from the Internet, and some emails show images while others do not.
0
Since I've pretty much owned my 2010 MacPro it's had slowdowns when accessing any network functions.  When doing file transfers I can't do anything else otherwise pretty much all the apps freeze and I have to wait for the file transfer to finish.  When I remote control it with ARD, it responds very sluggishly.  File transfers themselves are relatively fast as is browsing the Internet however some local pressure is being put on some internal hardware component when doing network intensive tasks.  Any ideas?  I've gone through a number of operating system and PRAM resets.
0
Anyone know how to get rid of the following messages in Outlook? I like it where Outlook shows all the messages from top to bottom with newest on top. Now I have to select "Show Reply" and it opens in a separate window. Annoying and too time consuming.
embed
0
When user does a screenshot, there is a delay before it appears on the desktop, it normally appears once he has deleted something else.  
Also, if user drags a file from an email or somewhere else on to the desktop or in to a folder, it again does not appear straight away, but will after some other form of action is taken.

This has been observed on couple of Macs: 10.10.5 and 10.9.5.
We have older Macs that do not have this problem.

Do you have any idea what may be going on there?
0
I've not really asked Mac questions on EE, so here goes ...

I've successfully set up stunnel for Windows and Linux clients. Now to set up for Mac. I've gone to the website http://macappstore.org/stunnel/ and followed the instructions there which are:
1. Press Command+Space and type Terminal and press enter/return key.

2. Run in Terminal app:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
    and press enter/return key.
    
3. Run:
    brew install stunnel

Open in new window

 
And then it says, "Done! You can now use stunnel."

Well, not exactly. Where do I put my stunnel.conf and certificate.pem? How do I make stunnel run automatically at boot time?

After going through the installation steps shown below, I have new files in /usr/local/etc/stunnel, including stunnel.pem, etc. I've copied my stunnel.conf and certificate files to this folder, but again, not sure how to get stunnel to start as a service at boot-time with MAC.

The web instructions aren't very complete. Need additional assistance.
0
Introducing Cloud Class® training courses
LVL 12
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

MacOS High Sierra install
mac
I am trying to install MacOS High Sierra , however when I get to the page shown in the screenshot. I click "Install" nothing happens.

Any idea ?
0
How can I pull the short name of user 502 (on a Mac) in a script to set the computer name?  For example, one laptop has user 502 w/ short name of msmith, I need msmith to be used in the following where $502-short-name would be msmith.  I tried the id command, but it returns too much info.


sudo scutil --set ComputerName-$502-short-name
sudo scutil --set LocalHostName $502-short-name
dscacheutil -flushcache

thanks
0
i have a mac server.
i have a group of users that are listed as share only.
I can't change them to standard or admin.

i need to change their status
0
haproxy unable to bind to port specified in the haproxy.cfg

the error is as below..

WARNING] 121/142016 (21239) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 121/142016 (21239) : config : log format ignored for proxy 'sensu' since it has no log address.
[WARNING] 121/142016 (21239) : config : log format ignored for proxy 'kibana' since it has no log address.
[ALERT] 121/142016 (21239) : Starting proxy sensu: cannot bind socket [0.0.0.0:81]
[ALERT] 121/142016 (21239) : Starting proxy kibana: cannot bind socket [0.0.0.0:84]

➜  ~ cat /usr/local/etc/haproxy.cfg
global
    pidfile     /var/run/haproxy.pid
    maxconn     50000
    spread-checks 4


defaults
    mode                    http
    maxconn                 500
    log                     global
    option                  httplog
    option                  redispatch
    retries                 2
    timeout queue           1m
    timeout connect         15s
    timeout client          1m
    timeout server          1m
    timeout check           10s
    timeout http-request    15s
    timeout http-keep-alive 301s # DEVOPS-258 Suggested Setting by Akamai


listen stats
    bind :1936
    http-request del-header Proxy
    bind-process 1
    mode http
    stats enable
    stats hide-version
    stats realm Haproxy\ Statistics
    stats uri /


listen sensu
    bind :81
    server sensu sensu.test.net:50001 check
listen kibana
    bind :84
    server kibana 

Open in new window

0
What is a smb violation on a mac.

I see a few errors regarding a violation
0
My boss send me a CSV file with all the contacts of our clients. I have send them quotations to them for their projects. I am using iPad for my works and not able to save the contacts from that .csv file. Can anyone help how to open csv file contacts in iPad? Urgent solution needed.
0
Do macOS come with any full disc encryption and option for encrypting inserted USB before they can be written too, similar in fashion to bitlocker and bitlocker to go on later releases of windows OS. If they do can you provide details, and any tips on how you could verify that these encryption controls (FDE and USB) have been applied to all devices in the environment? we need some assurances from a partner for security audit and are aware they run macos.

out of interest are there any major providers of anti virus for macOS or does the OS itself have any inbuilt AV similar to windows defender?
0
How can certain usernames be hidden from the Mac OS X logon screen window when the login window is displayed as a list of users?

We want to keep the list of users view (and not switch to the "Name and password" option and want to simply be able to hide certain usernames from appearing in this list.

How can this be done?

This needs to be done within a macOS High Sierra version 10.13.4 OS.
0
I have old church records that were indexed back in 1988 on a Tandy 100SX computer using PFS Professional File. Now in 2018, I had the stack of 5 1/4  floppy disks transferred to a flash drive. The message I get when I try to open basically says "There is no application set to open the document" Can you suggest anyway I can open these files on a Mac using High Sierra?
0
Free Tool: IP Lookup
LVL 12
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I'm new to android app development. I need a suggestion to choose which OS should I follow.
0
I am trying to confirm a backup with Time Machine to a WD MyCloud network drive. I am a PC girl not a Mac girl. The backup does not seem to be backing up the contents of his Mac...he has much more than 12MB of information which was the total amount of files backed up. How do I confirm the backup has worked...it says it has but I can not see what was backed up...simply says - mini which as been just modified.
0
Hello!

I have some problems with Macs at my job. People use Apple Mail to send their emails. OS X El Capitan 10.11.6

Everyhing worked fine until last week. If she wrote a email and put her cursor back in a sentence, the letters are writing at the end of it.

She cannot put her letters where she want, they always go at the end of the sentence even if she place the cursor everywhere in it.

Do you have an idea of what is the problem? I did the command trick to put the encoding to UTF-8 as default. It works 2 days and the problem came back.

Thanks!
0
Hi, I downloaded and installed visual studio for mac and created a new Web Form Project.  I've noticed a couple of differences, but the biggest one is that I see no tools in my toolbox.  I also can't open a design view.  I've tried to check for updates and I'm still unable to see anything.  Has anyone experienced this?  Does anyone have a solution?
Screen-Shot-2018-04-07-at-9.34.31-AM.png
0
I have a mac and office 2016 is installed and configured with Exchange 2016 account.

While connecting through LAN or internal wifi it works well, but when connected from outside LAN many times it asks for username and password and it gives error "syncing pending for this folder"

the credentials are correct
0
I have a Sarbent Hard Drive Docking Station (DS-UBLK) and it was working perfectly fine. A few days after I updated OSX (10.13.3), I no longer see the icon. I can't find it anywhere.

I talked to the support at Sarbent and they just sent me another docking station which doesn't work either.
They have a driver for windows, nothing for mac.

I borrowed another docking station (Thermaltake BlacX): nothing.

Could there be a problem with the new OSX update? Or maybe that's not the problem at all. Could my harddrive just be dead?

I found a similar question here: https://www.experts-exchange.com/questions/26572667/Why-doesn't-my-laptop-recognize-the-Thermaltake-Blacx-hard-drive-docking-station.html

But I'm not computer literate enough to know if I have the same problem.

Also, I tried to downgrade the OS to before the update. And you need Time Machine for that.
The problem is that the hard drive I use for my docking station IS the Time Machine.

Thank you.
0

Mac OS X

13K

Solutions

11K

Contributors

Mac OS X is the desktop operating system from Apple Inc., found on Macintosh computers. OS X consists of a Mach/BSD-based kernel, operating system interfaces primarily based on FreeBSD and additional frameworks (written in C, C++ and Objective-C providing user interface and application-level services.