___ “is an application downloaded from the Internet. Are you sure you want to open it?” is a warning dialog that appears when you open an application that you downloaded from the Internet. When you install those software titles with automation, you can clear the attribute that causes the prompt, so you don’t get a lot of confusion from end users. TO do so, use the xattr command, using -d to delete the com.apple.quarantine attribute. Here, we’re going to do so recursively, using the -r option and finally defining the application: sudo xattr -d -r com.apple.quarantine /Applications/iExplorer.app
-
-
Reindex Spotlight from the Command Line
Spotlight is really a simple tool. Spotlight consists of mds, a command that is the metadata server, mdworker, the pawn that mds sends to scan objects and index them and then the three command lines of mdutil (manage the indexes), mdls (list metadata of an object) and mdfind, which as the name implies, finds things. All of this is used to keep a database called .store.db nested under .Spotlight-V100 at the root of each volume that’s been indexed. To reindex Spotlight from the command line, we’ll use mdutil. From a command prompt, enter the following to index your boot volume. sudo mdutil -E / Or an external drive named krypted:…
-
Command Line Finder Tags
Neat. So you can associate a file with a tag by dragging it into the appropriate TAGS section of a sidebar. You can tag a file while you’re saving it. You can also Tags are kept in Extended Attributes. In com.apple.metadata:_kMDItemUserTags to be exact. xattr /Users/krypted/Desktop/Test.pdf The output of xattr with no options is as follows: com.apple.FinderInfo com.apple.metadata:_kMDItemUserTags com.apple.quarantine Or use -l to get a more detailed output: xattr -l /Users/krypted/Desktop/Test.pdf The output of which would include the tag: com.apple.FinderInfo: 00000000 00 00 00 00 00 00 00 00 00 1C 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00…
-
Holy Cow, Batman, My Xsan Volume Is Invisible!
No one could see the Xsan volume. Logged into Xsan Admin, the volume was unmounted for everyone. Mounted the volume and Xsan Admin said it mounted for everyone. No errors in the logs. In a nice place mentally, I stepped away from my desk. The phone rings, no one has access to the volume. Crap, what now? Log in, shows mounted. Log into a client, well, isn’t there. The other volumes are on the desktop. Go to /Volumes and it doesn’t appear there. Go to /Volumes/VOLUMENAME and viola, it’s there. But in the sidebar it’s hidden?!?!?! There aren’t any options in the volume.cfg file in /Library/Preferences/Xsan that deal with this…