Mac OS

Param2Clipboard

A MacOS application to grab an argument and set system Clipboard as per argument text.

How it works?

Under the hood it’s invoking pbcopy as below:

The script has been wrapped into MacOS app using Platypus:

Flow

Eventually, registered required URL Types in Info.plist. Unfortunately, it was a manual process which has to be repeated every time when a new app is created using Platypus:

Flow

Why created?

Created to improve workflow when opening Microsoft Skype or Lync meetings.

Flow I’m using:

Flow

Broswer Fairy configuration

In order to capture opening of Skype/Lync URLs, I’m using Browser Fairy which is registered as a default app to open all URLs. Each URL is matched against defined list of patters and if a Skype URL is detected, the URL is passed to Param2Clipboard app.

Flow
Flow

References

Shrinking VirtualBox VMs

This article is note to self, as I just gather information from other sites:

PlantronicsHub – major memory leak?

I’ve noticed that process SpokesUpdateService  is promoted to the top of my Memory list. Here an example which I captured today (just 24hrs after my last reboot) but on the other day I’ve seen 2.4 GB wasted:

It turned out to be part of PlantronicsHub software. I will disable to for a while an see how it will behave.

Note: need to find out how to prevent starting this after every reboot.

References to other guys reporting very same:

  • http://forums.macresource.com/read.php?1,2266926
  • https://arstechnica.com/civis/viewtopic.php?f=19&t=1430655
  • I’ve opened Plantronics Case 06390520: ref:_00D507IyW._50038xj5MQ:ref

 

Update 2018-08-21

This message I got from Plantronics Support:

Dear Jaroslaw,

 

Please update the hub to 3.11.2 this should solve the issue you were experiencing.

Please let me know how it goes.

The case number for your reference is 06390520. If you need any further assistance, please let us know.

Kind regards

Angela

Technical Support

I’ve upgraded to 3.11.2, will see 😀

How to workaround MacBook Pro 2017 scroll lag

Another embarrassing problem with my MBP: when scrolling in e.g. Chrome, Safari or actually – any other window, there is annoying lag. When you scroll continuously, it’s more or less fine, but when you pause to read and then want to scroll, it stutters.

After a bit checking here and there, it turned out that if I increased keyboard backlight timeout from 5 seconds to 1 minute, the problem has been worked around!

Well done Apple, well done‼

 

Prevent Mac hidden files being written to a shared storage

MacOS tends to trash mounted disks with number of useless hidden files (e.g.  ._* or .DS_Store ). There were number of recipes in the Internet, some of them were working at some of time but are not anymore.

Below notes from my fights (at a moment of writing, on MacOS High Sierra 10.13.4 (17E199).

Removing the files when they are created

I used to apply a find . -name ... -print0 | xargs rm -0  combo but found that there is an built-in command to deal with these files:

From the man:

Preventing creating the files

On the MacOS side

NOTE: None of these solutions worked for me!

As I wrote, this didn’t work at all to me.

On the SMB server side

It actually turned the only working solution for me. Just add to the share configuration section a veto file parameter, e.g.:

And restart:

Note, after applying this change you will not be able anymore to use dot_clean  command from your Mac as any requests towards these files (including deletion) will be silently ignored by your SMB server hence files will remain untouched!