Monday, December 6, 2021

Recent Questions - Ask Different

Recent Questions - Ask Different


Adobe Bridge Javascript works on Windows but not Mac

Posted: 06 Dec 2021 05:55 AM PST

I have a bridge script here that I have been running on Adobe Bridge 2022 for Windows but when I tried to run it on an imac it did not work. I have never had issues with using photoshop scripts on both machines, but this bridge one doesn't seem to take?


function re() {      rplcd = fle.path + '/' + decodeURI(fle.name)      .replace(/ .+(?=\.jpg)/, '_' + bdefgh.shift())      return File(rplcd).name != nme && rplcd  }    rnmng = new MenuElement('command', 'Batch Renaming',  'at the end of Thumbnail'), rnmng.onSelect = function() {      fls = File(pP = app.document.presentationPath).getFiles(/\.jpg$/i), cde = ''      while(fls.length) ((slc = (nme = (fle = fls.shift()).name).slice(0, 17)) != cde) &&      (cde = slc, bdefgh = 'bdefgh'.split('')), (rslt = re()) && fle.rename(rslt)  }  

How do I automate connecting network drives once the mac connects to specific networks?

Posted: 06 Dec 2021 05:17 AM PST

We have some network drives (smb) that I can only connect to when (1) connected by ethernet at my workplace or (2) connected via VPN.

The only reason I'd ever connect via VPN (or cable at the office, really) is to mount these drives. So it would make sense to mount the drives automatically whenever I connect to the VPN. I just can't figure our how to do it.

My first thought was Automator, but I can't find anything that I think would work as the condition. Though I'm also not really sure what to look for...

Is there a way to do this?

How to turn off kernel_task on Big Sur?

Posted: 06 Dec 2021 05:03 AM PST

I would like to turn off kernel_task.

Where is kernel_task?

As discussed here, it is prelinked with KEXTs. So by changing KEXTs, it can be turned off?

Could anybody show me how to turn off kernel_task on Big Sur?

How to record audio with Quicktime, when I have a meeting i.e. with Facebook Messenger and I use headset?

Posted: 06 Dec 2021 03:13 AM PST

If no headset is used I can select the external microphone as audio source, and I can hear the talking on recorded video, mine and the partner's also. But not when headset is plugged. I have 3 option

  • None
  • External microphone
  • Macbook external microphone

but none of them record the voice of the partner in call. I can hear only myself.

How to record that also?

Popup/prompt screens not showing after update to OSX Monterey

Posted: 06 Dec 2021 01:30 AM PST

After upgrading to OSX Monterey, none of my popup or prompt screens are being shown.

ie. if I want to download a file in Chrome/Safari/Firefox I can't see a screen that allows or choose the location where to store the file.

Another situation is that I want to save a file using Save As function in Office Excel and need to choose where to store it I can't see the prompt screen.

Using MacBook Pro (16-inch, 2019)

Please advise if anyone has similar issues?

create a new Microsoft word document Inside a folder by creating an app through apple script [closed]

Posted: 06 Dec 2021 12:41 AM PST

facing difficulty in creating a new ms-word document by creating an app using AppleScript, can anyone help out

Can I use 1600 MHz RAM in Macbook Pro Early 2015? [closed]

Posted: 06 Dec 2021 12:00 AM PST

MacBook Pro Early 2015 use 1867 MHz. Is it possible to downgrade to 1600 MHz? Want to put in 2x8 SK Hynix PC12800 modules. Thanks!

How can I list only hidden accounts with terminal command

Posted: 06 Dec 2021 01:24 AM PST

I can list any local accounts on terminal with dscl commands and parameters. But I want to list only hidden account(s) with one single command. Can someone help me ?

#!/bin/bash    Username="testaccount"  Password="123456"    sudo sysadminctl -addUser $Username  sudo dscl . -passwd /Users/$Username $Password  dscl . create /Users/$Username IsHidden 1    List1=$(dscl . -search /Users  Ishidden 1 )  List2=$(dscl . -list /Users  Ishidden 1 )    echo $List1  echo $List2  

But results return as blank.

How to setup 'Scale to fit below built-in camera' for executable file?

Posted: 05 Dec 2021 11:02 PM PST

Apple offered an option to hide the notch in new MacBook Pro but there is no same option for executable files that I can run from the terminal. I need to run my app under wine that is a simple executable file.

Screenshot

Is there any solution to make it?

Turn a M1 MackBook Pro on automatically upon connecting AC power without opening the lid

Posted: 05 Dec 2021 11:00 PM PST

I always use my M1 MacBook Pro connected to an external display with bluetooth mouse and Keyboard, so I don't need to open lid each time I want to startup.

I want the MacBook to automatically startup when I connect it to AC power? how can I do this?

Factory reset from terminal

Posted: 06 Dec 2021 05:30 AM PST

I am wondering if there is a way to trigger a factory reset with terminal.

My osx install is damaged after some disk operations and now I can't charge the laptop. It will die soon.

I have tried rebooting into safe mode and it just hangs at the white apple logo indefinitely.

Thank you for any input C

I have a Time Machine backup server on a Raspberry PI using the latest Samba, One Mac works fine, two others do not

Posted: 06 Dec 2021 12:32 AM PST

I have a 2017 iMac running : System Version: macOS 11.6 (20G165) Kernel Version: Darwin 20.6.0 (Big Sur) and a 2021 Macbook Pro (M1 Pro) System Version: macOS 12.01 (20G165) Kernel Version: Darwin 21.1.0 (Monterey) The iMac is backing up just fine! (only 20 hours left)

The Samba server is on a Raspberry Pi4 called silver running Samba 4.13.13 with a share called TimeMachineBackup finder from the M1 mac connects using smb://pi@silver/TimeMachineBackup it then prompts for name and password - I enter the smb password, it displays a dialog There was a problem connecting to the server "silver". you do not have permission to access the server

Windows VMs on both Macs can connect ok. An older 2018 MacBook pro is similarly affected

the smb.conf is:

    [global]     workgroup = WORKGROUP  ;   interfaces = 0.0.0.0/8 eth0  ;   bind interfaces only = yes       log file = /var/log/samba/log.%m     max log size = 1000     logging = file     panic action = /usr/share/samba/panic-action %d     server role = standalone server     obey pam restrictions = yes     unix password sync = yes     passwd program = /usr/bin/passwd %u     passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .     pam password change = no     map to guest = bad user     ntlm auth = yes  min protocol = SMB2  fruit:nfs_aces = no  vfs objects = catia fruit streams_xattr     fruit:aapl = yes  fruit:metadata = stream  fruit:model = MacSamba  fruit:posix_rename = yes   fruit:veto_appledouble = no  fruit:wipe_intentionally_left_blank_rfork = yes   fruit:delete_empty_adfiles = yes   map to guest = bad user  spotlight = yes  unix extensions = no  browseable = yes  read only = no  inherit permissions = yes  ;   logon path = \\%N\profiles\%U  ;   logon drive = H:  ;   logon script = logon.cmd  ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u  ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u  ; add group script = /usr/sbin/addgroup --force-badname %g  ;   include = /home/samba/etc/smb.conf.%m  ;   idmap config * :              backend = tdb  ;   idmap config * :              range   = 3000-7999  ;   idmap config YOURDOMAINHERE : backend = tdb  ;   idmap config YOURDOMAINHERE : range   = 100000-999999  ;   template shell = /bin/bash  usershare max shares = 100     usershare allow guests = yes  [TimeMachineBackup]  path = /mnt/piraid/timemachine  vfs objects = fruit streams_xattr  fruit:time machine = yes  fruit:time machine max size = 3T  [homes]     comment = Home Directories     browseable = yes     path = /mnt/piraid/home/%S     read only = no     create mask = 0775     directory mask = 0775     valid users = pi, paddy  ;[netlogon]  ;   comment = Network Logon Service  ;   path = /home/samba/netlogon  ;   guest ok = yes  ;   read only = yes  ;[profiles]  ;   comment = Users profiles  ;   path = /home/samba/profiles  ;   guest ok = no  ;   browseable = no  ;   create mask = 0600  ;   directory mask = 0700  [printers]     comment = All Printers     browseable = no     path = /var/spool/samba     printable = yes     guest ok = no     read only = yes     create mask = 0700  [print$]     comment = Printer Drivers     path = /var/lib/samba/printers     browseable = yes     read only = yes     guest ok = no  ;   write list = root, @lpadmin  root@silver:~# grep -v ^# /etc/samba/smb.conf  [global]     workgroup = WORKGROUP  ;   interfaces = 0.0.0.0/8 eth0  ;   bind interfaces only = yes       log file = /var/log/samba/log.%m     max log size = 1000     logging = file     panic action = /usr/share/samba/panic-action %d     server role = standalone server     obey pam restrictions = yes     unix password sync = yes     passwd program = /usr/bin/passwd %u     passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .     pam password change = no     map to guest = bad user     ntlm auth = yes  min protocol = SMB2  fruit:nfs_aces = no  vfs objects = catia fruit streams_xattr     fruit:aapl = yes  fruit:metadata = stream  fruit:model = MacSamba  fruit:posix_rename = yes   fruit:veto_appledouble = no  fruit:wipe_intentionally_left_blank_rfork = yes   fruit:delete_empty_adfiles = yes   map to guest = bad user  spotlight = yes  unix extensions = no  browseable = yes  read only = no  inherit permissions = yes  ;   logon path = \\%N\profiles\%U  ;   logon drive = H:  ;   logon script = logon.cmd  ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u  ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u  ; add group script = /usr/sbin/addgroup --force-badname %g  ;   include = /home/samba/etc/smb.conf.%m  ;   idmap config * :              backend = tdb  ;   idmap config * :              range   = 3000-7999  ;   idmap config YOURDOMAINHERE : backend = tdb  ;   idmap config YOURDOMAINHERE : range   = 100000-999999  ;   template shell = /bin/bash  usershare max shares = 100     usershare allow guests = yes  [TimeMachineBackup]  path = /mnt/piraid/timemachine  vfs objects = fruit streams_xattr  fruit:time machine = yes  fruit:time machine max size = 3T  [homes]     comment = Home Directories     browseable = yes     path = /mnt/piraid/home/%S     read only = no     create mask = 0775     directory mask = 0775     valid users = pi, paddy  ;[netlogon]  ;   comment = Network Logon Service  ;   path = /home/samba/netlogon  ;   guest ok = yes  ;   read only = yes  ;[profiles]  ;   comment = Users profiles  ;   path = /home/samba/profiles  ;   guest ok = no  ;   browseable = no  ;   create mask = 0600  ;   directory mask = 0700  [printers]     comment = All Printers     browseable = no     path = /var/spool/samba     printable = yes     guest ok = no     read only = yes     create mask = 0700  [print$]     comment = Printer Drivers     path = /var/lib/samba/printers     browseable = yes     read only = yes     guest ok = no  ;   write list = root, @lpadmin  

The iMac is working just fine backing up to the TimeMachineBackup share as user:pi The MacBook pro M1 Pro can browse the pi but will not connect to pi's home or TimeMachineBackup.

How do I diagnose the issue folks? (smb logs contain no meaningful messages)

Remove Apple Music in the Music App

Posted: 05 Dec 2021 11:01 PM PST

I have my own music saved in a folder, which I imported into the music app in macOS Monterey. They can be found in this section:

image

However, I have a problem. I don't want the Apple music section to be there:

enter image description here

There is also a iTunes Store header, which I also want removed:

enter image description here

How can I make it so I only see my own music, and not bothered by all the paid subscriptions Apple offers?

How do I prevent a crash when interacting with Blu-Ray videos?

Posted: 06 Dec 2021 01:37 AM PST

I have a new M1 Pro Mac and I installed ffmpeg using brew. I also have a Blu-Ray ISO (contains .m2ts files) on standby to be converted to .mkv.

Previously on a Intel mac, I used this command and it worked fine, shrinking the size of the original file by a lot:

ffmpeg -i file.m2ts -c:v copy -crf 28 -c:a flac ~/desktop/mynew.mkv  

When I do this on my M1; where I expect the 'encoding' to be faster, I get an astounding KERNEL PANIC!

I'm pretty sure ffmpeg isn't corrupted. I used homebrew to install it on macOS 12.0.1 (21A559). The same command with a mp4 in place (test.m2ts -> test.mp4) does not crash. Performing cp on said .m2ts file (cp test.m2ts ~/desktop/a.m2ts) causes a panic. I have discovered that the problem is how each computer handles the .m2ts file. Same file on Intel and M1, except it causes a crash on M1.

So, what can I do in this situation? Do I wait for another Monterey update to fix this? I've also read that playing an HDR video causes a panic, however playing a Blu-Ray disc in VLC causes no crash.

For those interested in the Panic Log, here is a pastebin link of a crash caused by FFMPEG: https://pastebin.com/f1gemPQ2

Monterey not mounting encrypted volumes

Posted: 06 Dec 2021 05:43 AM PST

I cannot get Monterey to decrypt volumes at boot on my M1 MacBook Pro. I have this working on another Mac running Catalina where I'm using BootUnlock. I initially installed it directly from the download but that was the x86 version, so I rebuilt it, cleaned down the remnants of the x86 version and re-installed the dual-architecture version:

root@samhain ~ # file /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/*  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock:   Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock (for architecture x86_64):     Mach-O 64-bit executable x86_64  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/BootUnlock (for architecture arm64e):     Mach-O 64-bit executable arm64e  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/diskutil.xsl: ASCII text  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/helper.sh:    Bourne-Again shell script text executable, ASCII text  /Library/PrivilegedHelperTools/au.com.openwall.BootUnlock/update.sh:    Bourne-Again shell script text executable, ASCII text  root@samhain ~ #  

It had set the access to the volumes correctly:

enter image description here

However when I rebooted it and logged in it was asking for permission to access the Keychain:

enter image description here

Any ideas to get BootUnlock working or suggestions of an alternative tool or method?

Update

I set up a Monterey VM on my Mac Pro (2019, x86) and installed BootUnlock—and it works. On the face of it this is an M1 problem. The log (/var/log/BootUnlock.log) on the MacBook Pro M1 has entries like this:

Trying to unlock volume "sTimeMachine" with UUID ED793E20-4F9D-4A8E-9185-B2735A1164B0 ...  NOTICE: could not find the secret on the System keychain, skipping the volume.  

Is there a way to open tabs in the background? I don't want new tabs grabbing focus

Posted: 06 Dec 2021 04:17 AM PST

I often like to open several folders in new tabs, but keep the focus on the parent folder I'm selecting from. My ADHD brain gets distracted by the OS auto-switching the focus to the latest new tab This constantly breaks my train of thought because the system keeps wiping away the list I am concentrating on.

Are there any modifier keys or right-click options to open new tab in background?

Organizing "Sent" mail

Posted: 06 Dec 2021 01:04 AM PST

Operating system: macOS Monterey version 12.0.1.

In Apple Mail, I use Smart Mailboxes to organize incoming mail. I'd like to better organize Sent mail. Does any means exist within Apple Mail to organize Sent mail by directing sent mail into specific folders?

If possible, how do I do it?

Alternatively, does mail have any other capacity (such as Numbers ability or organize data by category) to address the issue.

Run Mac Shortcut on a schedule

Posted: 06 Dec 2021 03:22 AM PST

Is there a way to run one of the new (in macOS 12) Shortcut tasks on a schedule? It seems you can do it manually in a few different ways, but I'm not seeing a way to automate it.

It doesn't seem to hook up to the old Automator app, which I believe is probably going to go away at some point anyway. It doesn't seem to be available as an alert action in the calendar.

Specifically I'm looking at the shortcut to send a daily agenda email - this is pretty much a perfect case for scheduling something, since iCloud Calendar doesn't have it as an option - but it's pretty useless if I have to remember to click a button every morning.

Opening PDFs in the same window using Preview not working with Monterey?

Posted: 06 Dec 2021 05:02 AM PST

On Big Sur, I had no issues opening multiple PDFs in tabs under the same Preview window. However, ever since I upgraded to Monterey, Preview seems to be opening separate windows for each PDF I open. Is anyone else experiencing this problem and found a fix for it yet? I have checked Settings > General and my "Prefer tabs" says "always", just as it did when I was on Big Sur, so I assume it is a bug in Monterey.

I also know that I can "forcefully" merge all windows when I am actually in Preview, but I am talking about having this automatically done when I open multiple PDFs, which was possible until Big Sur.

P.S. Not sure whether this is relevant, but I am using an M1 iMac.

How to delete burst photos stuck in Recently Deleted folder?

Posted: 06 Dec 2021 12:01 AM PST

I have a known bug (outlined here, here, here, here, and here) where burst photos won't delete.

I suspect instructions here would help, except my problem is more complicated since the bursts are not in Photos, but in 'Recently Deleted'.

Also, I have Emptied 'Recently Deleted' many times, so the files are still there, but they appear blank, so I cannot tell which of the 25000 files are bursts (there are 17 sets of bursts among the 25000 files).

Attempts to 'Delete' the files from 'Recently Deleted' results in them simply reappearing after exiting and reentering 'Recently Deleted'. Attempts to restore them results in blank files going back into Photos, with no way of distinguishing the bursts from the regular photos.

Ensure emptying 'Recently Deleted' succeeds?

Posted: 06 Dec 2021 06:02 AM PST

I have deleted ~25,000 photos and videos from iPhone. They're now in 'Recently Deleted', and I want them permanently gone so I can transfer the remaining contents of the iPhone to a new iPhone.

When I click 'Empty' from settings, it takes some time, but the photos don't go anywhere, and the storage level of the iPhone doesn't indicate deletion.

How can I be sure 'Recently Deleted' is emptied properly?

How to prevent Macbook from bluetooth reconnecting to lost connections?

Posted: 06 Dec 2021 04:02 AM PST

I have an Macbook Pro mid-2017 and a pair of Bluetooth ear-buds.

When I turn bluetooth off and on again on the Macbook, the ear-buds do not reconnect automatically, but when I just put the ear-buds in its case, so they turn off and I take them out again, they reconnect automatically.

When I get home and take the ear-buds out they still do reconnect, but when I take them out on the next morning, they don't.

It seems like there is an timeout or something for "lost Bluetooth connections".

I already tried this command:

sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices 1  

Like I described it works, when I turn Bluetooth off and on again, but not when I only turn the ear-buds off.

Any iPhone app crashes whenever time radio dial is pressed

Posted: 06 Dec 2021 03:02 AM PST

Problem

A few weeks ago, I noticed that I could not add any new alarms on my iPhone. Eventually, I figured out what was going on:

  • Whenever I press any button that launches a time-based radio dial (one of the pop-up context menus that has you choose a time or date), the app crashes.

Attempts to Fix It

  • I thought this was just a problem with the Clock app (I just use the standard iPhone clock), but when I tested other apps that have the datetime radio button, like the transit app I use, the same problem occurred.
  • I don't seem to have any other problems, other than this time-radio-button. No other problems on other apps, and the phone otherwise is working fine.
  • I have tried all of the standard means of trying to fix something while in ignorance:
    • reboot the phone
    • reset all of the settings (that was a pain, but I did it)
    • uninstall and reinstall the offending apps
  • None of those efforts worked, and Google searching, I couldn't even find anyone who had a similar problem.
  • There was even an iOS update recently, and after the update, the problem was still there.

Any ideas on what could be causing the problem and what I might be able to do to fix it?

My iPhone details:

  • iOS version 14.2
  • iPhone Xs (model #: MT9J2QN/A)
  • 256 GB, with 214 GB free

Sharing MacBook internet to iPad via USB

Posted: 05 Dec 2021 11:06 PM PST

I was sharing my MacBook LAN connection to my iPad using the internet sharing feature. But after the most recent update, I cannot find the iPad USB and iPhone USB option to share the internet. How do I fix this problem?

How to take photo using Terminal?

Posted: 06 Dec 2021 01:03 AM PST

Is it possible to take a photo or record a short video with the MacBook's webcam using Terminal?

sh-3.2# system_profiler SPSoftwareDataType   Software:        System Software Overview:          System Version: macOS 10.13.4 (17E199)        Kernel Version: Darwin 17.5.0        Boot Volume: lily        Boot Mode: Normal        Computer Name: lily's MacBook Air        User Name: System Administrator (root)        Secure Virtual Memory: Enabled        System Integrity Protection: Enabled  

Stop Xcode from Hijacking my File Associations

Posted: 06 Dec 2021 02:24 AM PST

I typically associate certain file types with certain editors and IDEs. You know R with RStudio, Java with JetBrains, and all the other goodies with Sublime Text.

But every time I install an Xcode update, Xcode takes over every code-related extension imaginable, and I have to associate my files manually.

Is there anyway to prevent Xcode from taking over my file associations?

remove duplicate emails

Posted: 06 Dec 2021 02:04 AM PST

I have, due to aborted imports, many duplicate emails. How can I find these duplicate emails and delete them, the best would be to archive them first, just to be safe.

I found http://www.nickshubin.com/articles/mac/remove_mail_duplicates.html - does Araxis still do the job? Also: Any experiences with the script at http://bohemianboomer.com/2015/02/free-how-to-remove-duplicate-email-messages-in-os-xs-mail-app/ ?

Any recommendations how I can solve this mess? I don't feel like exporting to a local imap server, using Thunderbird to delete duplicates and to re-import them.


Aditional info:

The duplicate emails are in my local mail folder, so no imap et al involved.

What I did so far:

  1. Switched of Mail
  2. moved the local filestorage out of the mail folder
  3. restarted Mail and deleted it from there again, as it was still there
  4. used Gemini duplicate remover to remove all duplicane messages (any other should have worked as well
  5. I did not touch the attachments!
  6. Will import the mail again and I hope that the duplicates are gone

Any comments to this procedure? If it works, I will post it as an answer.

Where can I find the installed package path via brew

Posted: 06 Dec 2021 01:23 AM PST

I installed some packages via brew. But I can not find where they are.

I can not get access by typing hping on terminal

% brew install hping  (git)-[master]   Warning: hping-3.20051105 already installed  

Pipe sound output to file?

Posted: 06 Dec 2021 05:25 AM PST

Is there a way to either pipe the sound output of the computer to a file or record what the computer puts out? I know I could use a headphone to microphone cord, but I was hoping for a more elegant solution. Google doesn't give very good results.

No comments:

Post a Comment