Re: Spotlight and /Volumes
- From: Sensei <senseiwa@xxxxxxx>
- Date: Mon, 28 Nov 2005 21:26:24 +0100
On 2005-11-28 11:36:33 +0100, J Stewart <cfnzrpu@xxxxxxxxxxx> said:
That could be accomplished easily with a shell script or an Applescript. Here's one I did that checks the status of one, some or all connected drives. This could be easily modded to turn Spotlight on or off. If you contact me offlist I'll see about doing it. Note: this script as written requires Mac OS X 10.4 or later.
Watch out for line wrap.
--> cut <-- set targ to choose from list (get list disks) with multiple selections allowed -- wrapped if targ is false then error number -128 set pw to text returned of (display dialog "Enter your Admin password:" default answer "" with hidden answer) -- wrapped set stats to {} set scpt to "mdutil -s /volumes/" repeat with aDisk in targ set temp to quoted form of contents of aDisk set end of stats to {do shell script scpt & temp password pw with administrator privileges} -- wrapped end repeat
set pw to "" set newline to ASCII character 10 set temp to ""
repeat with x from 1 to count of stats set temp to temp & item x of stats & newline end repeat
tell application "TextEdit" activate set doc to make new document set text of doc to temp end tell --> cut <--
Thanks! I tweaked it and it's ok (watch out the /volumes/ because it's /Volumes/, I use case sensitive FSs).
Thank you! I'll seek the next version of osx also :)
-- Sensei <senseiwa@xxxxxxx>
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest. (Isaac Asimov)
.
- References:
- Re: Spotlight and /Volumes
- From: J Stewart
- Re: Spotlight and /Volumes
- Prev by Date: Re: G5 iMac Problem...
- Next by Date: Re: Spotlight and /Volumes
- Previous by thread: Re: Spotlight and /Volumes
- Next by thread: Damaged iLife 05 DVD
- Index(es):
Relevant Pages
|
Loading