Widget Search

jarednichols
Honored Contributor

Extension attribute. I'll assume that your folks appropriately used the info.plist in the widget bundle. Return the value of your CFBundleVersion in there and then scope off of that Extension attribute.

j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

2 REPLIES 2

dhowell
Contributor

echo "<result>ls ~/Library/Widgets | grep <name of widget></result>" SHOULD BE echo "<result>`ls /Users/$3/Library/Widgets | grep <name of widget>`</result>" or I ususally do this so it works on all platforms

user=logname
userHome="eval echo ~echo $user"
userHome=$userHome
echo "<result>`ls $userHome/Library/Widgets | grep <name of widget>`</result>"

D. Trey Howell ACMT, ACHDS, CCA
trey.howell at austinisd.org
Desktop Engineering
twitter @aisdmacgeek

jarednichols
Honored Contributor

That'd be running as your casper admin user on the box. You'll need to gain the logged in user and run that through.

j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436