[futurebasic] Re: [FB] X-FB: Dock problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2007 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Thu, 2 Aug 2007 23:20:06 -0400
In this thread, Stu asked:

> I no longer can add items to or remove items items from the Dock. I  
> am using OS-X 10.4.8 and in the main admin account.


Stu,

To check the integrity of your Dock's plist, you can run this one- 
liner from the Terminal:


plutil ~/Library/Preferences/com.apple.dock.plist


Alternatively, you can run this code in FB:

begin globals
dim as container gC
end globals

local fn UnixCommand( cmd as str255 )
dim as str255 tmp

open "Unix", 2, cmd
do : line input #2, tmp
gC = gC + tmp
until eof (2) : close  2

end fn

window 1

dim as str255 s
s = "plutil ~/Library/Preferences/com.apple.dock.plist"
fn UnixCommand( s )
print : print gC

do
handleevents
until gFBQuit


Ken