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
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
I can get correct results by using mdfind or mdls -name finename commands but I can't pipe the result to xargs -0 open
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.
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
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.
Hm, can't reproduce this.
[doublepost=1516963908][/doublepost]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
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.
Hm, can't reproduce this.
Well, Preview is screwed up. Displays images as scrambled.
Also noticed something new after installing like below.
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.
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.
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.
Example attached, preview thumbnail OK but main screen blue.I cannot replicate this issue on any of my HS machines.
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
Example attached, preview thumbnail OK but main screen blue.
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.
My iMac is iMac (21.5-inch, Mid 2011),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.
I am having the same issueExample attached, preview thumbnail OK but main screen blue.
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.
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.
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
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
Same issue although I'm just getting a blue box when using preview. Has no one else noticed this?
Example attached, preview thumbnail OK but main screen blue.
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.
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...