Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
DetectX - Run automatically?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ratsima" data-source="post: 1819627" data-attributes="member: 402210"><p>The following shell script runs DetectX in the background and sends the results via email:</p><p></p><p>[CODE]#!/bin/sh</p><p></p><p>/Applications/DetectX\ Swift.app/Contents/MacOS/DetectX\ Swift vsearch | mail -s "DetectX" xxxxxxx@mac.com[/CODE]</p><p></p><p>The following launchd Property List runs the above shell script every day at 4:00 AM</p><p></p><p>[CODE]<?xml version="1.0" encoding="UTF-8"?></p><p><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"></p><p><plist version="1.0"></p><p><dict></p><p> <key>Disabled</key></p><p> <false/></p><p> <key>EnvironmentVariables</key></p><p> <dict></p><p> <key>PATH</key></p><p> <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/sbin</string></p><p> </dict></p><p> <key>Label</key></p><p> <string>com.mgnewman.detectx</string></p><p> <key>ProgramArguments</key></p><p> <array></p><p> <string>/bin/sh</string></p><p> <string>/Users/mnewman/bin/com.mgnewman.detectx.sh</string></p><p> </array></p><p> <key>RunAtLoad</key></p><p> <false/></p><p> <key>StartCalendarInterval</key></p><p> <array></p><p> <dict></p><p> <key>Hour</key></p><p> <integer>4</integer></p><p> <key>Minute</key></p><p> <integer>0</integer></p><p> </dict></p><p> </array></p><p></dict></p><p></plist></p><p>[/CODE]</p><p></p><p>The email message generated by the above looks like this:</p><p></p><p>[CODE]Search func called with arg 0: /Applications/DetectX Swift.app/Contents/MacOS/DetectX Swift</p><p>Search func called with arg 1: vsearch</p><p>Without a Pro or Commercial license, this CLI tool can only be used for a limited period of 20 days.</p><p>There are 20 days of use remaining.</p><p>Initiating search...</p><p></p><p>Requested search for users:</p><p>/Users/mnewman</p><p></p><p></p><p>DetectX Swift 1.087</p><p>2019-04-26T05:17:01+0700</p><p>Spotlight indexing: Enabled</p><p>Searching...</p><p></p><p>Nothing found.</p><p>Elapsed search time: 38.45 secs[/CODE]</p><p></p><p>Unfortunately, running DetectX from the command line this way requires a license that costs fifty bucks. Not sure if it's worth it.</p></blockquote><p></p>
[QUOTE="Ratsima, post: 1819627, member: 402210"] The following shell script runs DetectX in the background and sends the results via email: [CODE]#!/bin/sh /Applications/DetectX\ Swift.app/Contents/MacOS/DetectX\ Swift vsearch | mail -s "DetectX" xxxxxxx@mac.com[/CODE] The following launchd Property List runs the above shell script every day at 4:00 AM [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/sbin</string> </dict> <key>Label</key> <string>com.mgnewman.detectx</string> <key>ProgramArguments</key> <array> <string>/bin/sh</string> <string>/Users/mnewman/bin/com.mgnewman.detectx.sh</string> </array> <key>RunAtLoad</key> <false/> <key>StartCalendarInterval</key> <array> <dict> <key>Hour</key> <integer>4</integer> <key>Minute</key> <integer>0</integer> </dict> </array> </dict> </plist> [/CODE] The email message generated by the above looks like this: [CODE]Search func called with arg 0: /Applications/DetectX Swift.app/Contents/MacOS/DetectX Swift Search func called with arg 1: vsearch Without a Pro or Commercial license, this CLI tool can only be used for a limited period of 20 days. There are 20 days of use remaining. Initiating search... Requested search for users: /Users/mnewman DetectX Swift 1.087 2019-04-26T05:17:01+0700 Spotlight indexing: Enabled Searching... Nothing found. Elapsed search time: 38.45 secs[/CODE] Unfortunately, running DetectX from the command line this way requires a license that costs fifty bucks. Not sure if it's worth it. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
DetectX - Run automatically?
Top