Wednesday, January 26, 2022

Recent Questions - Ask Different

Recent Questions - Ask Different


Extract Finder tags for multiple files? [duplicate]

Posted: 26 Jan 2022 08:00 AM PST

I have hundreds of videos that have been tagged in Finder with various keywords. I'm moving to a proper Media Asset Management system now so I'm looking to mass extract these tags into a text or csv file somehow. Is there an easy way to do that?

Restoring Silicon Mac in enterprise environment

Posted: 26 Jan 2022 06:48 AM PST

Is there some way to do a full IPSW restore in an enterprise environment?

In our case this means no DHCP and behind a proxy. Other machines all have a fixed IP and proxy certificate installed. But last time I tried this won't work with a Silicon Mac because it wants to fetch some stuff from Apple before you even get to the point where you can install certificates.

Or is there maybe some way to auto-deploy them during a restore?

hidutil mapping a key to two, possible?

Posted: 26 Jan 2022 05:22 AM PST

Here are some information on hidutil:

https://rakhesh.com/mac/using-hidutil-to-map-macos-keyboard-keys/

I was wondering if it is possible to register two or more keys for one key?

I know Karabiner does but unable to use it at work.

Apple Script: Website: Get all values from a class which is used mutliple times (loop/iterate)

Posted: 26 Jan 2022 05:34 AM PST

I made a script to get the class "asin" and truncate it to the last 9 digits needed.

But now I need to get all "asins" available from the website opened. Tried it with iterate and loop, but could not get it to work. Any idea why?

to getInputByClass(theClass, num)      tell application "Safari" --tells AS that we are going to use Safari          set input to do JavaScript "          document.getElementsByClassName('" & theClass & "')[" & num & "].innerHTML;" in document 1      end tell            return input  end getInputByClass    getInputByClass("asin", 0)    set xx to getInputByClass("asin", 0)  set xx to text -10 through -1 of xx  

Show notifications on lockscreen

Posted: 26 Jan 2022 04:04 AM PST

My iPhone has always been in do not disturb mode.

Before the most recent iOS update, to 15(.2.1), it used to be the case that notifications would show on my lockscreen. Now they never do.

How can I get notifications to appear on my lockscreen again?

How to add "Open in Safari" to Chrome right-click menu?

Posted: 26 Jan 2022 03:56 AM PST

When I'm in Chrome, I'd like to be able to right-click on some links and choose "Open in Safari" from the Services submenu.

As a security precaution, how can this be done without relying on any Chrome extensions or 3rd party apps?

What would throttle Ethernet speed on a Mac?

Posted: 26 Jan 2022 03:56 AM PST

I am using a Mac mini for playing media from a local network media server connected by cable (Ethernet). This Mac stays on 24/7 and is prohibited from accessing the Internet (router firewall).

Recently I noted that 4K movie playback had become jerky. Upon investigation I found out that the top speed at which the Mac could retrieve data from the media server was only about 11 MB/s (whereas other computers on the network were getting x10 faster speeds).

I simply rebooted the Mac and — bingo — the speed skyrocketed to 110 MB/s, and 4K movies started playing fine again.

What was that? How can I investigate what was throttling the speed?

If it matters, this is 2020 model (M1), Big Sur 11.5.1.

Small Mac Server Overwrites Permissions when Saving Directly to the Server

Posted: 26 Jan 2022 03:31 AM PST

I have instances where I have files open on Photoshop and if I try to save them my Permissions are revoked I have to manually go change the read/Write permissions for that Enclosing folder and apply to all enclosed but as soon as someone els or me Saves the File again it goes back to revoking permissions.

Both of us use the same user that has the server OS on it to do this. This wasnt a Issue previously but Something im running into now. Not sure if anyone can walk me through why this would happen? Or maybe a better way to setup an Account for us to use to Read/Write Without being able to change permissions as well

Voice control command to play/pause media [closed]

Posted: 26 Jan 2022 03:14 AM PST

I often find myself watching something on youtube, and wanting to take notes on what I'm watching in another application. This entails a lot of changing the focus between the applications (mouse click in each window), because in order to play/pause youtube, the web browser needs to be in focus, not the application you're taking notes in.

The solution to this of course is the play/pause key, which works system wide, and will play/pause youtube in chrome, even when the focus is another application.

However, since I'm using voice control, and want to minimise keyboard and mouse usage, I find that voice control does not have a command to play/pause.

I'm not using Siri, and have no particular wish to.

Hence, what I think I need is a workflow/AppleScript which I can trigger using a custom voice control command such as "play media".

I can probably find the right AppleScript to do this in a couple of hours of trial and error, but I'm posting the question here for discussion and sharing until I get around to it.

Are Slide Layout changes saved in the Theme?

Posted: 26 Jan 2022 02:14 AM PST

If make changes to a Slide Layout (using the Edit Slide Layout button), is it also changed in the currently used Keynote Theme?

In other words, if I later create a new presentation based on the same theme, will it reflect the changes made in the Slide Layout of the earlier presentation?

Is there a way of toggling dark mode using the Shortcuts app?

Posted: 26 Jan 2022 01:58 AM PST

I've come across ways (AppleScript to toggle dark mode with fading and How to toggle dark mode on and invert colors using Automator) of toggling dark mode using Automator and AppleScript, but haven't managed to do it using the new Shortcuts app. Is there a way of doing it?

MacBook Pro won’t boot in any mode. Stuck on loading bar

Posted: 26 Jan 2022 01:04 AM PST

I have a MacBook Pro 15" mid 2014 (running Mojave) which has been stuck for a day on loading bars. It all started after the computer shut down despite being at around 60% of the charge.

I have tried to boot in every possible mode unsuccessfully:

  • In recovery mode it gets stuck on apple logo at 1/3 of the bar.
  • In internet recovery mode, it gets stuck immediately after passing the waiting with the globe. It stays on the apple logo stuck at the beginning of the bar.
  • In safe mode (shift + power button) it gets stuck at 100% of the bar in the user entry page. after option + power button, I can select the drive but after that it gets stuck again on the bar.
  • In single user mode I typed /sbin/fsck -fy and got the message that the volume is okay. After typing reboot nothing changed though.
  • I also ran verbose mode. I can't upload a picture for the moment but I got few messages with written: failed to get apfs volume keybag and failed to initialize volume keybag.

I also ran diagnostic and got Reference Code: PPT002. About the battery that needs to be replaced soon.

In all the modes except when I am trying to log in normally, after being stuck for around 20 minutes or more, the computer turns off despite being charging.

I also tried resetting SMC and PRAM. I can hear the fans working, keyboard's light and its commands are working too. I really don't know what else to do. Hope someone can help.

thanks a lot!!

How do I make applescript perform an operation ONLY on a specified application?

Posted: 26 Jan 2022 03:41 AM PST

I am trying to make something that types a word automatically on Google Chrome. However, when I run my code, it types the specified word on any open application with an available textbox. How do I make it so that my code runs ONLY on google chrome and so that I don't have to keep the chrome window open all the time. Here's what I have so far:

tell application "System Events"   set texttosay to "apple"   repeat     activate application "Google Chrome"     delay 2     repeat 100000000 times          keystroke texttosay          keystroke return          delay 40     end repeat   end repeat  end tell   

Homebrew: How to ignore formula on `brew upgrade`? (since `pin` was removed)

Posted: 26 Jan 2022 01:51 AM PST

How is it possible to ignore a formula by name while upgrading packages in Homebrew with brew upgrade?

Is there a command equivalent to this?:

brew upgrade --ignore <FORMULA>  

This Stack Overflow question from 2014 has multiple answers that mention brew pin as a solution, but that feature has since been removed:

How to summon credentials from Keychain Access?

Posted: 26 Jan 2022 01:22 AM PST

The website: https://ritx-fl-sales.bswa.net has username / password fields:

enter image description here

For some reason the fields do not prompt Keychain access. Is there a work-around to summoning the password manager to type a selected username/pw credential into their respective fields?

Explicitly tasking Keychain Access to sync

Posted: 26 Jan 2022 01:36 AM PST

It is not clear to me if Keychain Access syncs up with peer devices on the network or if the username/password data is stored in iCloud (yikes, vulnerability).

From macOS Catalina or newer, is there a GUI method or terminal command (preferable) to prompt Keychain Access to sync up with a source?

Guidance from Apple forums is iffy / spotty: https://discussions.apple.com/thread/250193336 in the sense recommendation is to toggle iCloud Keychain.

enter image description here

Is there a way to automatically backup my iPhone call history to a csv or otherwise

Posted: 26 Jan 2022 07:02 AM PST

Is there a way to automatically backup my iPhone call history to a csv etc, and that this file will also stay on my iPhone or maybe be transferred into the cloud. There are many Mac apps that can do call history backups, but all of them (1) require me to connect my phone to the computer, (2) make an iTunes backup of my entire iPhone to my computer first before I can extract my calls (my Mac does not have enough space, I need 250GB for my iPhone backup which is literally my entire Mac SSD! And this process I so slow!) (3) require me to manually make the backup (I need an automatic solution). I am hoping to avoid these.

Btw the iPhone in question is an iPhone 6, with iOS 12.5.5.

Separate keyboard layout for each window in macOS Monterey

Posted: 26 Jan 2022 06:41 AM PST

Is there a way to set up keyboard layouts preferences to have a separate layout for each window?

Use case described step by step:

  • I use two keyboard layouts: English and non-English one.
  • I often open Terminal, where I use English layout.
  • And I often chat in another app using my native language.
  • I am tired of switching global keyboard layout back and forth.
  • I would like macOS to remember, which layout was last-used in each window.

Especially interesting, if it is possible to do with native tools or settings in Monterey rather than 3rd party app. Just like it is possible to do in Linux with a single click in Input methods settings.

PS: there is the same question here, but the answer is outdated. There is no such setting anymore. At least in Monterey.

New Family Sharing account does not create shared Photos/Reminders/Calendar

Posted: 26 Jan 2022 06:22 AM PST

The official landing page for the Family Sharing feature states the following:

https://www.apple.com/family-sharing/

When you set up your family, a shared album is created automatically in the Photos app on all family members' devices. Everyone can add photos, videos, and comments to the album whenever they like and get notified when something new is added. Family Sharing also sets up a family calendar where everyone can view, add, or change events and appointments, and get an alert when something changes. And anyone can use the Reminders app to send time or location reminders to the family. So when it's picture day, pizza night, or just a trip to the beach, everyone's in the know.

My household is new to the Apple ecosystem and did not set up the Family Sharing feature on our devices until after iOS 15 was released. After Family Sharing was set up between both Apple IDs, I found that the apps mentioned in the marketing text above did not create the shared objects in these apps automatically. There is no shared photo gallery for the family, no shared calendar, and no shared reminders list. It is still possible to create these objects manually and share them the old fashioned way, but the feature is not working as advertised above.

It looks like either 1) the shared objects are not being generated, or 2) none of the devices are able to see them due to a bug. A few internet searches show others reporting a similar problem, but none ever reported a solution. None of these were terribly recent.

Devices used to set up family sharing

  • Family member 1 (Organizer)

    • iPhone 13 Pro Max, iOS 15.1
    • iPad Air 4th Generation, iPadOS 15.0.2
  • Family member 2 (Adult)

    • iPhone 13, iOS 15.1

Attempted troubleshooting

  • Powered off all devices and powered them back on again.
  • Verified that all devices were signed in to the correct Apple ID accounts, and that other family members were visible under Settings -> Apple ID -> Family Sharing.
  • Verified that Location Sharing for family members was able to be set up between these three devices and worked without any issues.
  • Removed family member #2, removed family member #1 (effectively disbanding the family), and restarted Family Sharing from scratch. Re-invited family member 2, set up Location Sharing again, verified that the feature was still working in the Find My app. Still no change within the Calendar, Photos, and Reminders apps.

macOS Monterey: Bluetooth mic issues when Mute/Adjust input volume

Posted: 26 Jan 2022 03:21 AM PST

Whenever I try to mute my Bluetooth audio input (mic) by either applying a shortcut with the following code set volume input volume 0 or by manually minimizing the sound to 0 on Sound Preferences -> Input, I receive unwanted behavior: All my audio (both input and output) is muted, then if I modify the output audio, I got immediately unmuted.

Also, from the additional observations:

  1. This only happens when I got both Input and Output set to my Bluetooth headphones and mic
  2. Mute works fine when applied to the MacBook Pro Microphone input source
  3. When I navigate to Sound Preferences -> Input, while listening to music, the audio quality degrades dramatically.
  4. It all started happening after I upgraded to macOS Monterey and worked completely okay in macOS Big Sur

Could you please advice of how this issue can be resolved?

Thank you!

UPD as of 12/14/2021

The issue still exists in the Monterey 12.1.

How to get rid of remnants of a user profile in /var/folders?

Posted: 26 Jan 2022 06:04 AM PST

I created a user, TestUser1, via System Preferences > Users and Groups on 22 April 2021, deleted it, didn't let it create a backup (since it was a test profile), but I noticed in /var/folders possible remnants of it.

This is on Catalina 10.15.7, 2020 Macbook Pro.

Would disabling SIP temporarily and/or sudo'ing to remove the files be a way to get rid of this?

I'm not sure what to do about this, and how to, in future, deal with remnants of user accounts created.

AMSupportURL* "is implemented in both"?

Posted: 26 Jan 2022 03:50 AM PST

I get the below error message when I run git for the first time after a reboot:

objc[728]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eff3a7a0) and ?? (0x1188402b8). One of the two will be used. Which one is undefined.  objc[728]: Class AMSupportURLSession is implemented in both ?? (0x1eff3a7f0) and ?? (0x118840308). One of the two will be used. Which one is undefined.  

It doesn't happen with other commands like go. Any idea what it means?

This is on a new M1 MBA.

How to find tagged files/folders using the command line in Terminal? [duplicate]

Posted: 26 Jan 2022 08:00 AM PST

What commands do we have for finding tagged files/folders using find on the command line?

I have done a search and looked on this site and found nothing.

which certificate/identifiers/profilers should be used for python script to be distributed as a pyinstaller build/bundle outside the app store?

Posted: 26 Jan 2022 08:08 AM PST

My program works as follows

In a while loop, it checks for the active window change - AppKit library used

from AppKit import NSWorkspace    active_window = (NSWorkspace.sharedWorkspace().activeApplication()['NSApplicationName'])  

if the active window changes to from some other window to google chrome, I need get the url from the chrome's current tab using apple script as :

url="""tell application "System Events"          tell application "Google Chrome" to get the URL of the active tab of window 1 as string          end tell"""  

This script is running fine, I can able to get the current window name and also url

I need to know which kind of identifier, provisioning profile, certificate should be used for the same

Im confused of choosing the certificate

I don't have any idea if I need to have a provisioning profile

Im not going to place this app in mac app store, I just wanted to use this app to support another electron application

Any help is appreciated

detaching a chrome tab on catalina causes a jump to a different workspace

Posted: 26 Jan 2022 05:08 AM PST

It is my habit to have dozens of chrome tabs open across a dozen workspaces in macOS. Often I want to to re-organize these tabs. For example, I may have an instance of chrome on workspace 5 with 10 tabs. Let's say that I want to detach 3 of these to a separate instance of chrome on the same workspace.

This has worked fine for years. However, after the upgrade to macOS Catalina, when I detach the first tab, I and the tab are forced to a completely different workspace containing a completely different instance of chrome. This is extremely disorienting and annoying and it happens every single time that I detach a single tab from an instance of chrome.

I've tried these commands in the terminal as suggested here:

 $ defaults write com.apple.dock workspaces-auto-swoosh -bool YES   $ killall Dock  

But when I detach a tab now, the tab just seems to disappear. It is actually transported to one of my 12 workspaces but I am not. Now I have to go searching for it.

This is driving me insane. Anyone have a work-around?

UPDATE: I've confirmed this is a bug in chrome not macOS mission control

This is so annoying that I switched to firefox and firefox does NOT experience the same issue.

OSX tags from terminal/console

Posted: 26 Jan 2022 08:00 AM PST

Is it possible to create some script to show all the finder-tagged items in terminal/shell?

I'd like to create something like this:

ls-tag "Music" to display all the items of Music tag

Is it possible to include a shared calender from Exchange in the calendar app on Mac OS X?

Posted: 26 Jan 2022 02:58 AM PST

I am trying to add a shared Exchange calendar to my Mac Calendar app. The shared calendar shows up in the Outlook calendar, but how do I add it to the Mac Calendar?

Configure macOS Notification Center Banner self-dismiss time

Posted: 26 Jan 2022 12:58 AM PST

How can I reduce the amount of time before a macOS / OS X Notification Center banner dismisses itself?

Mavericks input source is set to US keyboard in login screen

Posted: 26 Jan 2022 06:34 AM PST

I'm from Belgium, and on my own user account, the input source is set to a Belgian (actually French) keyboard. The input sources menu is enabled in the menu bar, so I can switch it to the Belgian keyboard before entering my password, but how can I permanently change the input source used for login? I'm the system admin, and I know how to get root access if necessary.

It worked perfectly in Mountain Lion.

Convert a number of zip file to rar?

Posted: 26 Jan 2022 02:23 AM PST

Any suggestion of how to convert tens of zip files to rar format? App or command line tool are welcome.

No comments:

Post a Comment