Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
When i just tried piping mdfind, it says that the command I am trying to pipe it to doesn't exist, not matter what I try and pipe it to. Everything else works as it should, but for some reason, pipes don't play well with mdfind for some reason.... Although maybe... I'll just try something

Hm, can't reproduce this.

Code:
chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe

chucker@SNK-L-4 ~> mdfind qweqweqweqweqweqwe 

/Users/chucker/qweqweqweqweqweqwe

chucker@SNK-L-4 ~> mdfind qweqweqweqweqweqwe | xargs ls -l

-rw-r--r--@ 1 chucker  staff  0 Jan 26 11:48 /Users/chucker/qweqweqweqweqweqwe
[doublepost=1516963908][/doublepost]
I can get correct results by using mdfind or mdls -name finename commands but I can't pipe the result to xargs -0 open

Wait… are you perhaps calling mdfind without -0 and xargs with it?
[doublepost=1516964175][/doublepost]
And for Recents, arrange the documents in Date Last Opened. And then try opening few files from Finder and see if the Finder updates the data about opening of these files.

Can't reproduce this either.

Code:
chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe2

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe3

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe4

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe5

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe6

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe7

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe8

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe9

chucker@SNK-L-4 ~> mdfind -0 qweqweqweqweqweqwe | xargs -0 open

Finder updated the Date Last Opened column for those files within a few seconds.

This isn't a problem specific to my iMac or rMBP, I have seen it on my friends Mac too and it exists since Yosemite.

Maybe so, but it clearly isn't that easy to reproduce.
 
Hm, can't reproduce this.

Code:
chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe

chucker@SNK-L-4 ~> mdfind qweqweqweqweqweqwe

/Users/chucker/qweqweqweqweqweqwe

chucker@SNK-L-4 ~> mdfind qweqweqweqweqweqwe | xargs ls -l

-rw-r--r--@ 1 chucker  staff  0 Jan 26 11:48 /Users/chucker/qweqweqweqweqweqwe
[doublepost=1516963908][/doublepost]

Wait… are you perhaps calling mdfind without -0 and xargs with it?
[doublepost=1516964175][/doublepost]

Can't reproduce this either.

Code:
chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe2

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe3

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe4

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe5

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe6

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe7

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe8

chucker@SNK-L-4 ~> touch qweqweqweqweqweqwe9

chucker@SNK-L-4 ~> mdfind -0 qweqweqweqweqweqwe | xargs -0 open

Finder updated the Date Last Opened column for those files within a few seconds.



Maybe so, but it clearly isn't that easy to reproduce.

In HS it seems to be fixed though I'm still having troubles from time to time. I guess I need to clean-install HS. But this problem can be easily reproduced from Yosemite to Sierra. Spotlight is still broken. mdfind can find all the files but GUI version of Spotlight doesn't find always all the files. I was using xargs -0 open but someone else figured it out that it xargs works if one has x terminal not the Apple terminal. So one needs x11.
 
Hm, can't reproduce this.


Interesting that it works properly for you. An identical series of commands still produces "command not found" for the command that mdfind is piped to, within Terminal, for me, however, works as expected in the X Terminal.
Hold on... I'll just try something



OK, confirmed. I also cannot reproduce my own issue on my MacBook Pro, only on my iMac. There's definitely something about the way my iMac is setup that's the culprit. - The MacBook Pro has also received a clean install more recently and is actually running the 10.13.4 beta right now (also APFS vs HFS+), though I doubt any of the latter two are the culprit.
 
In HS it seems to be fixed though I'm still having troubles from time to time. I guess I need to clean-install HS. But this problem can be easily reproduced from Yosemite to Sierra. Spotlight is still broken. mdfind can find all the files but GUI version of Spotlight doesn't find always all the files. I was using xargs -0 open but someone else figured it out that it xargs works if one has x terminal not the Apple terminal. So one needs x11.

Just tried it on El Capitan, with Terminal.

touch qweqweqweqwe
mdfind qweqweqweqwe: works
mdfind qweqweqweqwe | xargs open: file opens
⌘ space, qweqweqweqwe: file is found in Spotlight

If you're using xargs -0, you also need to use mdfind -0, and your error message sounds to me like that's what you were missing.
 
Just tried it on El Capitan, with Terminal.

touch qweqweqweqwe
mdfind qweqweqweqwe: works
mdfind qweqweqweqwe | xargs open: file opens
⌘ space, qweqweqweqwe: file is found in Spotlight

If you're using xargs -0, you also need to use mdfind -0, and your error message sounds to me like that's what you were missing.


Thanks! You were right. I should have used -0 for mdfind too. If I remember correctly I often used mdls without -0 and opened them by xargs on Mavericks and it worked. Today I clean installed HS and now GUI version of Spotlight returns all the results. However, the tabs in Finder still have the same problems as before e.g. after a while files are not shown in a tab and one has to go to another tab and then come back to see them. I'm using tex and before opening a tex file will record an entry in Recents but now after the clean install it doesn't. It's all very confusing...
 
Same issue although I'm just getting a blue box when using preview. Has no one else noticed this?

Yes, it seems as all apps using quartz are effected? I can open Pixelmator for example, open a thumbnail and see the picture for a split second before the whole image turns to a solid colour. Preview the same as it Photos and iPhoto.
 
Yes, it seems as all apps using quartz are effected? I can open Pixelmator for example, open a thumbnail and see the picture for a split second before the whole image turns to a solid colour. Preview the same as it Photos and iPhoto.


I cannot replicate this issue on any of my HS machines.
 
You don’t have to wait.

You can turn the 32 bit ones off yourself in terminal:

sudo nvram boot-args="-no32exec"

Then restart computer.

If you don’t like it you can turn them back on with

sudo nvram boot-args=""

and then restart.

Has *anyone* gotten this to work?
Both myself and a colleague get the following error when trying this on machines running 10.13.4 Beta (17E139j):

nvram: Error setting variable - 'boot-args': (iokit/common) general error
 
Dang...updated to 10.13.4 by mistake lol Should've stuck to 10.13.3 GM. Now I either have to wait for 10.13.4 GM or backup files manually and reinstall 10.13.3. Don't want to backup 10.13.4 beta to TM because it's beta. And don't want to use an earlier 10.13.3 GM TM backup because it won't have all my files. GRRrr Hope final release of 10.13.4 is soon!
 

Attachments

  • blue.png
    blue.png
    33.9 KB · Views: 106
Has *anyone* gotten this to work?
Both myself and a colleague get the following error when trying this on machines running 10.13.4 Beta (17E139j):

nvram: Error setting variable - 'boot-args': (iokit/common) general error

Figured it out: You need to be in Recovery Mode (booted from Recovery partition), and access the Terminal from the Utilities menu.
sudo nvram boot-args="-no32exec"
returns an error (sudo: command not found), but
nvram boot-args="-no32exec"
works. After rebooting, 64-bit apps launch without issue.
32-bit apps display an error window saying, for example, The application "BBEdit" can't be opened.
32-bit command line tools yield even less informative errors, for example:
2018-02-01 13:31:21.520 bbedit[698:12037] Error Domain=NSCocoaErrorDomain Code=256 "The application “BBEdit” could not be launched because a miscellaneous error occurred (OSStatus -36)." UserInfo={NSURL=file:///Applications/BBEdit.app/, NSLocalizedDescription=The application “BBEdit” could not be launched because a miscellaneous error occurred (OSStatus -36)., NSUnderlyingError=0x7f995e513680 {Error Domain=NSOSStatusErrorDomain Code=-36 "ioErr: I/O error (bummers)"}}

bbedit: error: -4960
 
Example attached, preview thumbnail OK but main screen blue.

I am getting the exact same issue. Preview and Photos are both displaying as a solid colour, Photos is also no longer playing videos.

Does anyone have any ideas, this is making my work with my photos and drawings very difficult.
 
Example attached, preview thumbnail OK but main screen blue.

I am getting the exact same issue. Preview and Photos are both displaying as a solid colour, Photos is also no longer playing videos.

Does anyone have any ideas, this is making my work with my photos and drawings very difficult.

Peculiar. Works fine on my 2014 MBP as well as my iMac. What systems are you two on? Let's see if there are any shared factors.
 
When displaying a screenshot in Preview, this is what I get.

Using Shift-Command-4 to make a screen snapshot in 10.13.4 beta 1 the result is a garbled png file.

To render correctly in preview change the screen snapshot filetype in terminal like this:

defaults write com.apple.screencapture type PDF;killall SystemUIServer

Now Shift-Command-4 will make a pdf screen snapshot instead and this time will render correctly in preview.
 
Using Shift-Command-4 to make a screen snapshot in 10.13.4 beta 1 the result is a garbled png file.

To render correctly in preview change the screen snapshot filetype in terminal like this:

defaults write com.apple.screencapture type PDF;killall SystemUIServer

Now Shift-Command-4 will make a pdf screen snapshot instead and this time will render correctly in preview.
Peculiar. Works fine on my 2014 MBP as well as my iMac. What systems are you two on? Let's see if there are any shared factors.

Mine is MacBook Pro 15 inch late 2011 Processor 2.4 GHZ intel Core i7 16 GB 1333 MHz DDR3 Graphics
AMD Radeon HD 6770M 1024 MB

Intel HD Graphics 3000 512 MB
Screen Shot 2018-01-29 at 11.27.13 AM.png
 
Figured it out: You need to be in Recovery Mode (booted from Recovery partition), and access the Terminal from the Utilities menu.
sudo nvram boot-args="-no32exec"
returns an error (sudo: command not found), but
nvram boot-args="-no32exec"
works. After rebooting, 64-bit apps launch without issue.
32-bit apps display an error window saying, for example, The application "BBEdit" can't be opened.
32-bit command line tools yield even less informative errors, for example:
2018-02-01 13:31:21.520 bbedit[698:12037] Error Domain=NSCocoaErrorDomain Code=256 "The application “BBEdit” could not be launched because a miscellaneous error occurred (OSStatus -36)." UserInfo={NSURL=file:///Applications/BBEdit.app/, NSLocalizedDescription=The application “BBEdit” could not be launched because a miscellaneous error occurred (OSStatus -36)., NSUnderlyingError=0x7f995e513680 {Error Domain=NSOSStatusErrorDomain Code=-36 "ioErr: I/O error (bummers)"}}

bbedit: error: -4960


Yeah. Thanks for that. That was clever. The beta 2 notes have been updated with corrected instructions.

I have also gone back and corrected my posts.
 
Mine is MacBook Pro 15 inch late 2011 Processor 2.4 GHZ intel Core i7 16 GB 1333 MHz DDR3 Graphics
AMD Radeon HD 6770M 1024 MB

Intel HD Graphics 3000 512 MBView attachment 750117

I now have 10.13.4 Beta (17E150g) and problem with Preview, RAW and Photos is fixed.
[doublepost=1518207213][/doublepost]
Same issue although I'm just getting a blue box when using preview. Has no one else noticed this?

I now have 10.13.4 Beta (17E150g) and problem with Preview, RAW in finder and Photos is fixed. Videos also play OK in preview too. I had a personal message from Apple via Feedback Assistant.
[doublepost=1518207262][/doublepost]
Example attached, preview thumbnail OK but main screen blue.

I now have 10.13.4 Beta (17E150g) and problem with Preview, RAW in finder and Photos is fixed. Videos also play OK in preview too. I had a personal message from Apple via Feedback Assistant.
 
I remember the days when there were reasons to be excited about macOS releases. Even the lowly tvOS got new features, but the Mac just gets maintenance mode now.

MacOS needs to get back on track and get as stable and good as Snow Leopard, won't happen if they keep adding new features instead of fixing things that are broken, it has been needed for too long now for them getting into maintenance mode. It's really awesome that they have chosen to stop adding new features and only fix vulnerabilities and fix bugs.
 
Thanks! You were right. I should have used -0 for mdfind too. If I remember correctly I often used mdls without -0 and opened them by xargs on Mavericks and it worked. Today I clean installed HS and now GUI version of Spotlight returns all the results. However, the tabs in Finder still have the same problems as before e.g. after a while files are not shown in a tab and one has to go to another tab and then come back to see them. I'm using tex and before opening a tex file will record an entry in Recents but now after the clean install it doesn't. It's all very confusing...

After clean installing HS for three weeks, I started seeing again the problems with Spotlight not returning the results and Finder hanging. So I was right and in HS there seem to a problem with Spotlight and Finder though it has gotten better with each version.
 
Just a quick update on my issues with Preview not displaying correctly. I pulled out of the Beta program and dropped back to the official release version of High Sierra and the problems went away so it was obviously something in the Beta that caused the issue.

Now running 10.13.3 final release and things are still ok, at least as far as Preview is concerned. I have though noticed my fan is now running almost all the time where it wasn't before :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.