Removing an OSX dock icon

Scott Morrow scott at elementarysoftware.com
Fri Jul 18 07:44:13 EDT 2008


With the following I'm able to add an icon to the OSX dock.  I'm  
wondering if anyone knows (or would care to guess) how to remove an  
icon from the dock... besides dragging it off  :  )

-- line 1 is really long
put "defaults write com.apple.dock persistent-apps -array-add  
'<dict><key>tile-data</key><dict><key>file-data</ 
key><dict><key>_CFURLString</key><string>/Applications/ 
MyRevStandalone.app/</string><key>_CFURLStringType</key><integer>0</ 
integer></dict></dict></dict>';" into tCmd


-- line 2
put shell(tCmd)

-- line 3
  get shell("killall Dock")


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web       http://elementarysoftware.com/
email     scott at elementarysoftware.com




More information about the use-livecode mailing list