|
|
10.4: More expressive saved searches
Weird mix you've got there; surely:
would be better?
10.4: More expressive saved searches
Yes, that's much cleaner. I noticed this too a few hours after submitting the hint. ObHint: To figure out the type of a particular file, you can just do
mdls on the file from the terminal.---
10.4: Using Unix 'mdfind' and spaces in names different from old 'find' syntax, but how?
Okay here is the Script, which does not work because of the spaces in filenames and paths:
Result:cp: Tiger: No such file or directory cp: 2005/3908497213.psd: No such file or directory cp: /Volumes/Macintosh: No such file or directory I know it must be possible, but how? I am totally stuck. How am I supposed to write a script with mdfind and use the results for cp or mv? The pathnames do have a lot Spaces and mdfind & xargs do not behave the same as find & xargs did before. Thanks, Matt
10.4: Using Unix 'mdfind' and spaces in names different from old 'find' syntax, but how?
Try putting double quotes around the $i, thus:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|